/* One visual stage for product cards. Artwork and labels remain untouched. */
body:not(.wp-admin) .extrait-card-photo,
body.extrait-catalog .wd-product-thumb {
    position: relative !important;
    height: auto !important;
    aspect-ratio: 1 / 1.12;
    padding: 0 !important;
    overflow: hidden;
    background: transparent;
}
body.extrait-catalog .product-image-link {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
}
body.extrait-catalog .extrait-brand-entry-photo {
    position: relative !important;
    overflow: hidden;
}
body.single-product .extrait-product-gallery .woocommerce-product-gallery__image {
    height: clamp(300px, 38vw, 600px) !important;
    overflow: hidden;
}
body.single-product .extrait-product-gallery .woocommerce-product-gallery__image > a {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    display: block !important;
}
/* The thumbnail stage is independent of the Swiper slide width. */
body.single-product .extrait-product-gallery .wd-gallery-thumb .wd-carousel-item,
body.single-product .extrait-product-gallery .extrait-normalized-thumb {
    position: relative;
    height: 110px !important;
    overflow: hidden;
}
body:not(.wp-admin) img.extrait-normalized-image {
    position: absolute !important;
    inset: auto !important;
    left: var(--ex-image-left) !important;
    top: var(--ex-image-top) !important;
    width: var(--ex-image-width) !important;
    height: var(--ex-image-height) !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    object-fit: contain !important;
    mix-blend-mode: normal !important;
    transition: none !important;
    vertical-align: top;
}
/* Transparent native zoom must not reveal a second bottle underneath it. */
body.single-product .extrait-product-gallery .woocommerce-product-gallery__image.extrait-native-zoom-active > a > img.extrait-normalized-image {
    opacity: 0 !important;
}
@media (max-width: 767px) {
    body.single-product .extrait-product-gallery .woocommerce-product-gallery__image {
        height: min(380px, calc(100vw - 48px)) !important;
    }
    body.single-product .extrait-product-gallery .wd-gallery-thumb .wd-carousel-item,
    body.single-product .extrait-product-gallery .extrait-normalized-thumb {
        height: 82px !important;
    }
}
