/* Full photos (Sean, 28 Nov 2026).
   Every content picture is shown whole and centred in its frame.
   Width and height attributes on each img still reserve the box, so the page does not jump.
   A neutral cream background shows only if the frame is a different shape from the photo.
   Do not crop doors, frames, windows or houses. See seo-crew/brain/rules.md. */

html body img {
  object-fit: contain !important;
  object-position: center !important;
}

html body .card .ph,
html body .choice-card,
html body .ba-row figure,
html body .card > .ba-row figure,
html body .pic,
html body .pic-grid figure,
html body .guide-fig,
html body .pg-pic,
html body .phimg,
html body .ph-hero,
html body .rd-himg,
html body .rd-slotimg,
html body .jpair figure,
html body .tc-grid figure,
html body .xh-strip li,
html body .xh-real-grid a,
html body .sc-hero-fig,
html body .colour-card,
html body .body-fig,
html body .bro-cover,
html body figure.card {
  aspect-ratio: auto !important;
  height: auto !important;
  background: #f4f1ea !important;
}

html body .card .ph img,
html body .masters .card img,
html body .masters .card .ph img,
html body .masters .choice-card img,
html body .masters .ba-row img,
html body .masters #york-door img,
html body .choice-card img,
html body .choice-card > a > img,
html body .ba-row img,
html body .ba2 img,
html body .pic img,
html body .pic-grid img,
html body .guide-fig img,
html body .gprose .guide-fig img,
html body .gprose .guide-pair img,
html body .pg-pic img,
html body .pg-hero img,
html body .phimg img,
html body .phero img,
html body .ph-hero img,
html body .rd-card img,
html body .rd-himg img,
html body .rd-slotimg img,
html body .jcard img,
html body .jpair img,
html body .tc-grid img,
html body .colour-card img,
html body .card-img,
html body .body-fig img,
html body .range-card .img-frame img,
html body .work-item img,
html body .product-shot img,
html body .popular-card img,
html body .split .media img,
html body .thumbs img,
html body .qo-pic img,
html body .qo-grid img,
html body .bro-cover img,
html body .cg-tile img,
html body .cg-hub-mosaic img,
html body .sc-hero-fig img,
html body .sc-hub-card img,
html body .xh-strip img,
html body .masters .xh .xh-strip img,
html body .xh-real-grid img,
html body .masters .xh .xh-real-grid img,
html body .masters .xh .xh-journey img,
html body .xh-journey img,
html body .xh-photo .ph,
html body .masters .xh .xh-photo .ph {
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  object-position: center !important;
  background: #f4f1ea !important;
}

/* Sliders and full-bleed heroes keep their frame. The photo inside is whole and centred. */
html body .xh-ba img,
html body .masters .xh .xh-ba img,
html body .hero img,
html body .hero picture img,
html body .bleed img,
html body .rd-fimg img,
html body .qh-img,
html body .img-hero .hero-bgimg {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  object-position: center !important;
  background: #f4f1ea !important;
}

html body .xh-strip.xh-strip-2 {
  max-width: 720px;
  margin-left: auto !important;
  margin-right: auto !important;
}
@media (min-width: 1000px) {
  html body .xh-strip.xh-strip-2 {
    grid-template-columns: 1fr 1fr !important;
  }
}

/* Small UI marks stay transparent and keep their own size. */
html body .th-logo img,
html body .logo img,
html body img.xi,
html body .th-xmark {
  object-fit: contain !important;
  object-position: center !important;
  background: transparent !important;
}

html body .dg-item img,
html body .masters .dg-item img {
  object-fit: contain !important;
  object-position: center !important;
  background: transparent !important;
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: 220px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

html body .xh-vis-done img,
html body .masters .xh .xh-vis-done img {
  object-fit: contain !important;
  object-position: center !important;
  background: #f4f1ea !important;
}
