/* CDM-116: desktop post detail only. Limit very large images without cutting text.
 * Do not alter mobile, editor, feed, videos, or image originals. */
@media (min-width: 1024px) {
  /* Gallery images and images embedded directly in article text. */
  .discovery-app-shell .page .post-detail-images > img,
  .discovery-app-shell .page .post-body-blocks .post-body-media > img,
  .page .post-detail-images > img,
  .page .post-body-blocks .post-body-media > img {
    display: block;
    box-sizing: border-box;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: min(76vh, 760px);
    object-fit: contain;
    margin-left: auto;
    margin-right: auto;
  }
  /* Limit eyecatch's overall display width while retaining the authored ratio/crop. */
  .page .post-eyecatch {
    max-width: min(100%, 920px);
    margin-left: auto;
    margin-right: auto;
  }
  .page .post-eyecatch-ratio-original img {
    max-height: min(76vh, 760px);
    width: auto;
    height: auto;
    max-width: 100%;
    object-fit: contain;
  }
  .page .post-detail-images,
  .page .post-body-media {
    max-width: 100%;
    min-width: 0;
  }
}
