/* High-resolution image rendering pass. Loaded after all historical polish layers. */

img {
  image-rendering: auto;
  -webkit-font-smoothing: antialiased;
}

/* Founder and production photography must preserve the full frame. */
.founder-shared-frame,
.about-collage--shared,
.founders-common-photo > img,
.farmers-preview figure,
.farmers-link-grid > img,
.farmers-hero figure,
.farmers-gallery__grid > img,
.review-editorial > img,
.reviews-poster-grid > img {
  overflow: hidden;
  background: var(--paper-light);
}

.founder-shared-frame > img,
.about-collage--shared > img,
.founders-common-photo > img,
.farmers-preview figure > img,
.farmers-link-grid > img,
.farmers-hero figure > img,
.farmers-gallery__grid > img,
.review-editorial > img,
.reviews-poster-grid > img {
  display: block;
  width: 100%;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center !important;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Do not enlarge portrait sources beyond a sensible editorial width. */
.founder-shared-frame,
.about-collage--shared {
  width: min(100%, 560px);
}

.farmers-preview figure,
.farmers-hero figure {
  width: min(100%, 620px);
}

.founders-common-photo > img {
  width: min(100%, 680px);
  justify-self: center;
}

.farmers-gallery__grid > img {
  width: 100%;
  align-self: start;
}

/* Review poster and jasmine decoration remain crisp without billboard scaling. */
.review-editorial > img,
.reviews-poster-grid > img {
  width: min(100%, 520px) !important;
  justify-self: center;
}

.page-hero--reviews > .container > img,
.boutique-card > img {
  height: auto !important;
  object-fit: contain !important;
  image-rendering: auto;
}

.page-hero--reviews > .container > img {
  width: min(36vw, 520px);
}

.boutique-card > img {
  width: min(34%, 460px);
}

@media (max-width: 900px) {
  .page-hero--reviews > .container > img {
    width: min(62vw, 420px);
  }

  .boutique-card > img {
    width: min(64%, 380px);
  }
}

@media (max-width: 640px) {
  .founder-shared-frame,
  .about-collage--shared,
  .farmers-preview figure,
  .farmers-hero figure,
  .founders-common-photo > img,
  .review-editorial > img,
  .reviews-poster-grid > img {
    width: 100% !important;
    max-width: 100% !important;
  }

  .page-hero--reviews > .container > img {
    width: min(72vw, 340px);
  }
}
