
@media (min-width:768px) and (max-width:1199px), (min-width:1200px) and (max-width:1366px) and (pointer:coarse) {
    body.single-product .product-top .gallery-shell {
        align-self:start !important;
        height:auto !important;
        min-height:0 !important;
        container-type:inline-size;
    }
    body.single-product .product-top .gallery-shell > .gallery {
        height:clamp(400px,calc(90cqw + 80px),570px) !important;
        min-height:0 !important;
        max-height:none !important;
    }
    body.single-product .product-top .gallery > p:has(> #main-image) {
        position:static !important;
        inset:auto !important;
        margin:0 !important;
        padding:0 !important;
    }
    body.single-product .product-top .gallery #main-image {
        position:absolute !important;
        inset:28px 16px auto !important;
        width:calc(100% - 32px) !important;
        height:calc(100% - 137px) !important;
        margin:0 !important;
        max-height:none !important;
        object-fit:contain !important;
        object-position:center !important;
        transform:none !important;
    }
    body.single-product .product-top .gallery .thumbnails {
        position:absolute !important;
        inset:auto 16px 54px !important;
        flex-direction:row !important;
        justify-content:center !important;
        align-items:center !important;
        gap:6px !important;
        width:auto !important;
        height:46px !important;
        padding:0 !important;
        margin:0 !important;
        transform:none !important;
    }
    body.single-product .product-top .gallery .thumbnails .thumbnail {
        flex:0 1 42px !important;
        width:42px !important;
        height:42px !important;
        min-width:0 !important;
        max-height:42px !important;
    }
    body.single-product .product-top .gallery .gallery-arrows {
        inset:auto 16px 12px auto !important;
    }
    body.single-product .product-top .gallery .watch-note {
        inset:auto auto 21px 16px !important;
    }
}
@media (min-width:900px) and (max-width:1199px) and (min-height:690px),
       (min-width:1200px) and (max-width:1366px) and (pointer:coarse) and (min-height:690px) {
    body.single-product .product-top > .gallery-shell {
        position:sticky !important;
        top:calc(104px + var(--wp-admin--admin-bar--height,0px)) !important;
    }
}
