/* Victor Scientific — immediate product gallery paint.
 * The primary gallery is native scroll-snap; it does not wait for Owl Carousel.
 * Page reveal stays off. The only allowed image motion is a 130ms image-only
 * opacity entrance and a desktop pointer-following hover zoom.
 */
body.product-refresh-page .product-gallery-column,
body.product-refresh-page .product-gallery-column .details_slider,
body.product-refresh-page .product-gallery-column .dimage_item,
body.product-refresh-page .product-gallery-column .indicator_thumb,
body.product-refresh-page .product-gallery-column .indicator-item {
    opacity: 1 !important;
    visibility: visible !important;
    animation: none !important;
    transition: none !important;
}

body.product-refresh-page .product-gallery-column > .details_slider.vsc-product-gallery {
    display: flex !important;
    flex-flow: row nowrap !important;
    align-items: stretch;
    width: 100%;
    height: clamp(390px, 42vw, 590px);
    min-width: 0;
    margin: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: auto !important;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--site-border, #dce7f5);
}
body.product-refresh-page .product-gallery-column > .details_slider.vsc-product-gallery::-webkit-scrollbar {
    display: none;
}
body.product-refresh-page .product-gallery-column .vsc-product-gallery > .dimage_item {
    display: flex !important;
    flex: 0 0 100% !important;
    width: 100% !important;
    min-width: 100% !important;
    height: 100%;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    background: #fff;
}
body.product-refresh-page .product-gallery-column .dimage_item img.block__pic {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: 100%;
    object-fit: contain;
    background: #fff;
    cursor: zoom-in;
    -webkit-user-drag: none;
    user-select: none;
}
body.product-refresh-page .product-gallery-column .product-gallery-video-item {
    height: 100%;
    min-height: 0;
}
body.product-refresh-page .product-gallery-column .product-gallery-video,
body.product-refresh-page .product-gallery-column .product-gallery-youtube-launch,
body.product-refresh-page .product-gallery-column .product-gallery-youtube {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    background: #fff;
}
body.product-refresh-page .product-gallery-column > .indicator_thumb {
    display: flex;
    gap: 10px;
    overflow: auto;
    scrollbar-width: thin;
}
body.product-refresh-page .product-gallery-column .indicator-item {
    cursor: pointer;
    flex-shrink: 0;
    border: 1px solid #e0e5ec;
    box-shadow: none !important;
    outline: none;
}
body.product-refresh-page .product-gallery-column .indicator-item.is-active,
body.product-refresh-page .product-gallery-column .indicator-item[aria-current="true"] {
    border-color: #0a438e !important;
    box-shadow: 0 0 0 2px rgba(10,67,142,.12) !important;
}
body.product-refresh-page .product-gallery-column .indicator-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* The previous 420ms reveal code targeted these product-detail blocks.
   Keep this hard override after every global stylesheet so stale reveal classes
   can never hide or move the gallery on a fresh page load. */
body.product-refresh-page .vsc-bazario-reveal,
body.product-refresh-page .vsc-bazario-reveal.vsc-bazario-visible,
html.vsc-bazario-motion-ready body.product-refresh-page .vsc-bazario-reveal,
html.vsc-bazario-motion-ready body.product-refresh-page .vsc-bazario-reveal.vsc-bazario-visible {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    filter: none !important;
    animation: none !important;
    transition: none !important;
}

@media (max-width: 767.98px) {
    body.product-refresh-page .product-gallery-column > .details_slider.vsc-product-gallery {
        height: min(82vw, 390px);
        min-height: 260px;
        border-radius: 12px;
    }
    body.product-refresh-page .product-gallery-column .dimage_item img.block__pic {
        height: 100% !important;
    }
    body.product-refresh-page .product-gallery-column > .indicator_thumb {
        flex-direction: row;
        width: 100%;
        max-height: none;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 1px 1px 5px;
        gap: 8px;
    }
    body.product-refresh-page .product-gallery-column .indicator-item {
        flex: 0 0 68px;
        width: 68px;
        height: 68px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.product-refresh-page .product-gallery-column,
    body.product-refresh-page .product-gallery-column *,
    body.product-refresh-page .product-gallery-column *::before,
    body.product-refresh-page .product-gallery-column *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
