/* Approved portrait companions. Product galleries always show the complete
   image, including the ten compositions that forbid cover cropping or zoom. */
.floating-photo > picture[data-presentation-picture],
.discover-category-image > picture[data-presentation-picture],
.dusk-planning-photo > picture[data-presentation-picture],
.menu-photo > picture[data-presentation-picture] {
  display: block;
  width: 100%;
  height: 100%;
}
/* Short phone screens keep the photograph continuous and the controls apart. */
@media (max-width: 1100px) and (max-height: 600px) and (orientation: landscape) {
  body[data-catalogue="supplier"] .opening-brand {
    top: 7%;
    left: 4%;
    right: auto;
    width: min(60vw, 520px);
  }
  .opening-bottom {
    left: 4%;
    right: 4%;
    bottom: 88px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
  }
  .opening-bottom h1 {
    font-size: clamp(26px, 4vw, 38px);
    max-width: 370px;
    line-height: 1.08;
  }
  .dusk-hero-link {
    margin: 0;
    min-height: 44px;
    flex: 0 0 auto;
    padding: 11px 18px;
  }
  .scroll-cue {
    left: auto;
    right: 4%;
    bottom: 24px;
    font-size: 9px;
  }
}
#detail-dialog .detail-stage > picture[data-presentation-picture] {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}
#detail-dialog .detail-stage > picture[data-presentation-picture].is-leaving {
  pointer-events: none;
}
.catalogue-media-list picture[data-presentation-picture] {
  display: block;
  width: 100%;
}
@media (max-width: 900px) {
  body[data-catalogue="supplier"] .opening-camera picture[data-presentation-picture] > img,
  .room-panel > picture[data-presentation-picture] > img,
  .table-frame > picture[data-presentation-picture] > img {
    object-position: var(--presentation-mobile-position, 50% 50%);
  }
  .floating-photo > picture[data-presentation-picture],
  .discover-category-image > picture[data-presentation-picture],
  .dusk-planning-photo > picture[data-presentation-picture] {
    height: auto;
    aspect-ratio: var(--presentation-mobile-aspect);
  }
  .discover-category-grid .discover-category .discover-category-image[data-approved-scene] {
    aspect-ratio: auto;
    height: auto;
  }
  .floating-photo > picture[data-presentation-picture] > img,
  .discover-category-image > picture[data-presentation-picture] > img,
  .dusk-planning-photo > picture[data-presentation-picture] > img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
    object-position: var(--presentation-mobile-position, 50% 50%);
    transform: none;
  }
  .menu-photo:has(> picture[data-mobile-natural-aspect-only="true"]) {
    height: auto;
    min-height: 0;
  }
  .menu-photo > picture[data-mobile-natural-aspect-only="true"] > img {
    display: block;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
    transform: none;
  }
  #detail-dialog .detail-gallery .detail-stage:has(> picture[data-presentation-picture]:not(.is-leaving)),
  #detail-dialog .detail-gallery .detail-stage:has(> .detail-film[data-mobile-poster]:not(.is-leaving)) {
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: auto;
  }
  #detail-dialog .detail-gallery .detail-stage > picture[data-presentation-picture]:not(.is-leaving) {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    aspect-ratio: var(--presentation-mobile-aspect);
  }
  #detail-dialog .detail-gallery .detail-stage > .detail-film[data-mobile-poster]:not(.is-leaving) {
    position: relative;
    inset: auto;
    height: auto;
    aspect-ratio: var(--presentation-mobile-aspect);
  }
  #detail-dialog .detail-gallery .detail-stage > .detail-film[data-mobile-poster] > .detail-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  #detail-dialog .detail-gallery .detail-stage > picture[data-presentation-picture]:not(.is-leaving) > .detail-image[data-scene-id],
  .catalogue-media-list picture[data-presentation-picture] > img[data-scene-id] {
    position: relative;
    inset: auto;
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    margin: 0;
    padding: 0;
    aspect-ratio: auto;
    object-fit: contain;
    object-position: var(--presentation-mobile-position, 50% 50%);
    transform: none;
    mix-blend-mode: normal;
  }
  #detail-dialog .detail-gallery .detail-stage > picture[data-presentation-picture].is-leaving {
    position: absolute;
    inset: 0;
  }
}
