/* The scene fills the masthead. The sample has its own tightly fitted frame and opens at source size. */
section[data-material-scene] {
  --shade-direction: 90deg;
  color: white;
  background-color: #48473f;
  background-image: linear-gradient(var(--shade-direction), rgb(19 20 18 / 78%), rgb(23 24 20 / 50%) 48%, rgb(20 21 17 / 12%) 85%), var(--hero-scene);
  background-position: center, center 50%;
  background-size: cover;
  background-repeat: no-repeat;
  padding-block: clamp(7rem, 10vw, 9rem) clamp(2rem, 4.5vw, 4.4rem);
}
[dir="rtl"] section[data-material-scene] { --shade-direction: 270deg; }
section[data-material-scene] :is(h1, p) { color: inherit; }
.material-scene-title { min-inline-size: 0; }
.material-scene-label { display: block; margin-block-start: .7rem; font-size: .83rem; line-height: 1.5; font-weight: 500; }
.product-media-header[data-material-scene] > div, .roof-product-intro[data-material-scene] .roof-intro-layout {
  min-height: clamp(9rem, 16vw, 15rem);
}
.product-media-header[data-material-scene] a, .roof-product-intro[data-material-scene] a.roof-portrait {
  display: grid; place-items: center; width: fit-content; height: auto; padding: 0; min-height: 0;
  max-width: 38%; flex: 0 1 auto; justify-self: end; border-radius: .45rem;
  background: transparent; overflow: hidden; box-shadow: 0 .2rem 1.1rem rgb(0 0 0 / 18%);
}
.product-media-header[data-material-scene] a img, .roof-product-intro[data-material-scene] a.roof-portrait img {
  display: block; width: auto; height: auto; max-width: 100%; max-height: min(25vh, 16.5rem); object-fit: cover;
}
.roof-product-intro[data-material-scene] .roof-intro-layout { display: flex; align-items: center; justify-content: space-between; }
.roof-product-intro[data-material-scene] .roof-portrait { order: 1; }
.roof-product-intro[data-material-scene] p { margin-block-start: .5rem; }
@media (max-width: 640px) {
  section[data-material-scene] {
    background-image: linear-gradient(90deg, rgb(20 21 18 / 77%), rgb(20 21 18 / 38%)), var(--hero-scene);
    padding-block: 6.1rem 1.65rem;
  }
  .product-media-header[data-material-scene] > div, .roof-product-intro[data-material-scene] .roof-intro-layout {
    display: flex; flex-direction: column; align-items: start; justify-content: center; gap: 1rem; min-height: 10rem;
  }
  .product-media-header[data-material-scene] a, .roof-product-intro[data-material-scene] a.roof-portrait { max-width: 74%; }
  .product-media-header[data-material-scene] a img, .roof-product-intro[data-material-scene] a.roof-portrait img { max-height: 8rem; }
}
/* Thumbnails show the central texture or scene edge to edge. The original remains available from its detail page. */
#catalog-results[data-compact-catalog] :is(.section-c06-element-img, .section-c13-element-img),
.page-template-page-mallas .section-c13-element-box-img > .section-c13-element-img,
.section-c01-swiper .swiper-c01-slide[data-catalog-portrait] > .swiper-c01-slide-img,
.search-rec-product img, .mf-sample .mf-photo-box img {
  object-fit: cover; object-position: center; background: transparent;
}
.mf-sample .mf-photo-box img { width: 100%; height: 100%; }
.studio-viewer [data-original] { overflow: hidden; }
.studio-viewer [data-photo] { object-fit: cover; }
.section-banner .section-banner-fond-swiper-slide-img { width: 100%; height: 100%; object-fit: cover; }
/* Roof card styles were historically marked important; keep technical originals available in the lightbox. */
#catalog-results img[data-roof-picture], .section-c01-swiper img[data-roof-picture],
body[data-roof-detail] #section-despiece-1 .swiper-c12-slide-box-img img {
  object-fit: cover !important;
}
.floor-stage { width: fit-content; max-width: 100%; margin-inline: auto; background: transparent; }
.floor-stage img { width: auto; height: auto; max-width: 100%; max-height: min(64dvh, 650px); }
