/* REAL46 000.040.017: intrinsic-size containment for fullscreen photographs only.
   Keep the gallery-stage fullscreen so navigation controls remain available. */
.rs-product-detail .rs-gallery-stage:fullscreen {
  box-sizing:border-box!important;
  width:100vw!important;
  height:100vh!important;
  width:100dvw!important;
  height:100dvh!important;
  max-width:none!important;
  max-height:none!important;
  min-width:0!important;
  min-height:0!important;
  aspect-ratio:auto!important;
  padding:0!important;
  margin:0!important;
  overflow:hidden!important;
  background:#101819!important;
}
.rs-product-detail .rs-gallery-stage:fullscreen .rs-gallery-view {
  position:absolute!important;
  inset:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  height:100%!important;
  min-width:0!important;
  min-height:0!important;
  overflow:hidden!important;
}
.rs-product-detail .rs-gallery-stage:fullscreen .rs-gallery-view > img {
  display:block!important;
  position:static!important;
  flex:0 1 auto!important;
  width:auto!important;
  height:auto!important;
  max-width:100%!important;
  max-height:100%!important;
  max-width:100dvw!important;
  max-height:100dvh!important;
  min-width:0!important;
  min-height:0!important;
  object-fit:contain!important;
  object-position:center center!important;
  transform:none!important;
  margin:auto!important;
}
/* The video path introduced in 000.040.016 and photo navigation stay intact. */
