/* Only regenerated product assets; workshop/Hero photographs keep their scene.
 * Match the product asset marker across revisions, not one historical date. */
.mp-design-0799 .mp-catalog-hero-media[data-mp-illustration="transparent-product"] {
    background: transparent;
    --mp-illustration-native-width: 1086px;
}
.mp-design-0799 .mp-catalog-hero-media[data-mp-illustration="transparent-product"] > img {
    object-fit: contain !important;
    object-position: center !important;
    mix-blend-mode: normal !important;
    width: 100%;
    max-width: min(100%, var(--mp-illustration-native-width));
}
.mp-catalog-hero-media[data-mp-illustration="transparent-product"] > .mp-catalog-media-context {
    background: transparent;
}
img[src*="-transparent-"] {
    object-fit: contain !important;
    object-position: center !important;
    mix-blend-mode: normal !important;
}
/* The legacy white-background subject detector adds a vertical translation.
 * These alpha cutouts already have a controlled canvas; retain entrance scale
 * and opacity while keeping the image frame inside its stationary media box. */
.mp-selected-home .mp-slide-media > img[src*="-transparent-"] {
    translate: none !important;
}
.mp-slide-media:has(> img[src*="-transparent-"]),
.mp-selection-media:has(img[src*="-transparent-"]),
.mp-catalog-card-media:has(img[src*="-transparent-"]) {
    background: transparent !important;
}
/* Portrait cutouts need enough vertical room on narrow screens. */
.mp-catalog-main:has([data-mp-illustration="transparent-product"]) .mp-catalog-facts li {
    min-width: 0;
    overflow-wrap: anywhere;
}
.mp-catalog-main:has([data-mp-illustration="transparent-product"]) .mp-catalog-detail-card:nth-of-type(3) {
    grid-column: 1 / -1;
}
/* Product text determines rail height; long localized names must keep their CTA. */
@media (min-width: 901px) {
    .mp-selected-home .mp-product-section:has(img[src*="-transparent-"]) {
        height: auto !important;
        grid-template-rows: auto auto;
    }
    .mp-selected-home .mp-product-section:has(img[src*="-transparent-"]) .mp-slider-shell,
    .mp-selected-home .mp-product-section:has(img[src*="-transparent-"]) .mp-slider {
        height: auto !important;
    }
    .mp-selected-home .mp-slide:has(img[src*="-transparent-"]) {
        height: auto !important;
        min-height: 540px;
    }
    .mp-selected-home .mp-slide-media:has(img[src*="-transparent-"]) {
        height: clamp(440px, 38vw, 620px) !important;
        align-self: center;
    }
}
@media (max-width: 900px) {
    .mp-design-0799 .mp-catalog-hero-media[data-mp-illustration="transparent-product"] {
        height: min(125vw, 540px) !important;
        min-height: 0 !important;
        max-height: none !important;
    }
}
