/* The server renders img directly; the browser may then wrap it in picture. */
#interviewPageList .feature-thumb,
#reviewPageList .album-cover,
#composerPageGrid .feature-thumb {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 280px;
  margin-inline: auto;
  aspect-ratio: auto 4 / 3;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#reviewPageList .album-cover { max-height: 180px; }

/* Reserve the portrait area while loading without imposing its ratio on the photo. */
#composerPageGrid .composer-page-card > a:first-child {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: clamp(210px, 23vw, 300px);
}

#composerPageGrid .feature-thumb { height: 100%; max-height: 100%; }

@media (max-width: 640px) {
  #composerPageGrid .composer-page-card > a:first-child { height: 144px; }
  #interviewPageList .feature-thumb { max-height: 230px; }
}

/* Older articles specify a crop inline alongside their editorial height limit. */
:is(#albumDetail, #articleDetail) .article-body img[style*="object-fit" i][style*="cover" i] {
  object-fit: contain !important;
}

#articleDetail #nr-profile .nr-portrait a {
  aspect-ratio: auto;
  background: transparent;
}

#articleDetail #nr-profile .nr-portrait img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(80vh, 700px);
  margin-inline: auto;
  object-fit: contain;
  transform: none;
}

#articleDetail #sar-review .sar-news-card img {
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}
