/* Apply after the existing site.css. Scoped to imagery; no portrait/logo changes. */

/* The present stylesheet already uses contain in these slots.
   Keep that behavior explicit for new full-subject images. */
#range .pcard .media img,
.pgallery .pg-view img,
.pgallery .pg-tab img,
.gc-main img,
.gc-thumb img {
  object-fit: contain;
  object-position: center;
}

/* Hover enlargement inside clipped wrappers can still trim an otherwise
   complete source. Retain the full composition on hover and keyboard focus. */
main .zoomable:hover img,
main .zoomable:focus-visible img,
main .apps button:hover img,
main .photos button:hover img,
main .card:hover .media img,
main .card:focus-visible .media img,
main .sector-card:hover .media img,
main .sector-card:focus-visible .media img,
main .doc:hover .doc-media img,
main .release-card:hover .rc-media img {
  transform: none;
}

/* Apply only to newly bound standalone images, not to genuine team portraits. */
img.whole-subject,
.whole-subject > picture > img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
}

/* Home range and brochure overview: separate complete products, no raster
   catalogue collage. Each item links to its matching product detail page. */
.range-product-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(12px, 2vw, 24px);
}
.range-product-strip.is-compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.range-product-strip a {
  display: flex;
  flex-direction: column;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}
.range-product-strip picture {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #fff;
}
.range-product-strip img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transform: none;
}
.range-product-strip .product-name {
  display: block;
  margin-top: 10px;
  font-weight: 600;
}
@media (max-width: 900px) {
  .range-product-strip,
  .range-product-strip.is-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 380px) {
  .range-product-strip,
  .range-product-strip.is-compact {
    grid-template-columns: 1fr;
  }
}

/* New standalone renders retain their full canvas in existing media wrappers. */
.media > img.whole-subject,.pg-view > img.whole-subject {height:100%;object-fit:contain;background:#fff;}
.hero-media > img.whole-subject {height:auto;object-fit:contain;background:#fff;}
.image-note {display:block;font-size:.78rem;line-height:1.4;color:var(--muted,#626860);margin-top:8px;}
.card .image-note {padding:0 4px;}
.kit-thumb img.whole-subject,.doc-media img.whole-subject {width:100%;height:100%;object-fit:contain;}
.range-image-collection {min-width:0;}
.range-image-collection .range-product-strip {margin:0;}
.doc > .range-image-collection {align-self:center;padding:16px;}
body[data-single-product-gallery="true"] .lb-arrow {display:none!important;}
.next-generation .st {font-weight:600;}
