/* Use the active photograph as the source of the gallery palette. */
.product-layout #pictureArea {
 --image-height: clamp(265px,60svh,660px);
 --image-surround: linear-gradient(165deg,#f8f7f3,#e8e7e3);
 isolation: isolate;
 overflow: hidden;
 background: var(--image-surround) !important;
 border-color: color-mix(in srgb,currentColor 14%,transparent) !important;
 box-shadow: none !important;
}
.product-layout #pictureArea > .image-surround {
 position:absolute;inset:0;display:none;width:100%;height:100%;pointer-events:none;
}
.product-layout #pictureArea[data-image-surface="studio"] > .image-surround {display:block}
.product-layout #pictureArea[data-image-surface="photo"] {
 padding: 0;
 background: transparent !important;
 border-color: transparent !important;
}
.product-layout #pictureArea > #mainImage {
 position:relative;
 z-index:1;
 width: min(100%,calc(var(--image-height) * var(--image-ratio,1)));
 height: auto;
 max-height: var(--image-height);
 background: transparent !important;
 border-radius: 0 !important;
 box-shadow: none !important;
 filter: none !important;
 mix-blend-mode: normal !important;
}
.product-layout #pictureArea[data-image-surface="photo"] > #mainImage {border-radius: 12px !important}
body[data-detail-dusk] .product-layout #pictureArea {
 --image-surround: radial-gradient(ellipse at 50% 40%,#5c6571,#303946);
}
.product-layout #pictureArea :is(#zoom,.detail-light) {z-index: 2}
@media(max-width:640px) {
 .product-layout #pictureArea {
  --image-height: clamp(180px,37svh,355px);
  }
}
