/* Phase05X40 (2026-11-23): ONLY CMS content detail Gallery thumbnail crops.
   All PublicCmsContentDetail modules share this renderer. Fancybox still opens original.
   The frame is 3:2, e.g. approx 373 x 249 at current desktop grid width.
   Landscape: fill frame, center-crop horizontal excess and top-align vertical excess.
   Portrait: retain natural ratio at full frame height; no stretching or grey matte.
   Phase05X39 list covers and Phase05X38 Home/TikTok are intentionally untouched. */
.content .body .qs-cms-gallery-section .qs-cms-gallery-cell .image {
  box-sizing: border-box !important;
  display: block !important;
  position: relative !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 3 / 2 !important;
  overflow: hidden !important;
  padding: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
}
.content .body .qs-cms-gallery-section .qs-cms-gallery-cell .image > img.qs-cms-gallery-photo {
  box-sizing: border-box !important;
  position: absolute !important;
  display: block !important;
  top: 0 !important;
  bottom: auto !important;
  left: 0 !important;
  right: auto !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center top !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
  background: transparent !important;
}
/* Portrait photo: centered within the frame at full height and genuine width. */
.content .body .qs-cms-gallery-section .qs-cms-gallery-cell .image > img.qs-cms-gallery-photo.qs-cms-portrait-photo {
  top: 0 !important;
  left: 50% !important;
  width: auto !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center top !important;
  transform: translateX(-50%) !important;
}
