.dook-native-gallery {
    position: relative;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 22px;
}
.dook-native-gallery__main {
    order: 1;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #fff;
    overflow: hidden;
    display: block;
    border: 0;
    box-shadow: none;
}
.dook-native-gallery__slide {
    width: 100%;
    height: 100%;
    display: none;
    background: #fff;
}
.dook-native-gallery__slide.is-active {
    display: grid;
    place-items: center;
}
.dook-native-gallery__slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.dook-native-gallery__dots {
    order: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: -4px;
}
.dook-native-gallery__dot {
    width: 22px;
    height: 3px;
    border: 0;
    border-radius: 999px;
    background: #d1d5db;
    padding: 0;
    cursor: pointer;
}
.dook-native-gallery__dot.is-active {
    background: #4b5563;
}
.dook-native-gallery__thumbs {
    order: 3;
    display: flex;
    flex-wrap: nowrap;
    gap: 14px;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
}
.dook-native-gallery__thumb {
    flex: 0 0 112px;
    width: 112px;
    border: 0;
    background: #fff;
    padding: 0;
    aspect-ratio: 1 / 1;
    cursor: pointer;
    overflow: hidden;
    transition: border-color .15s ease, opacity .15s ease;
}
.dook-native-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
@media (max-width: 767px) {
    .dook-native-gallery { gap: 14px; }
    .dook-native-gallery__thumb { flex-basis: 82px; width: 82px; }
    .dook-native-gallery__thumbs { gap: 10px; }
}


html.dook-native-gallery-non-main-active .main-product-glasses .dook-glass-left,
html.dook-native-gallery-non-main-active .main-product-glasses .dook-glass-right,
html.dook-native-gallery-non-main-active .main-product-glasses .dook-frame-left,
html.dook-native-gallery-non-main-active .main-product-glasses .dook-frame-right,
html.dook-native-gallery-non-main-active .bde-div-415-317 .dook-glass-left,
html.dook-native-gallery-non-main-active .bde-div-415-317 .dook-glass-right,
html.dook-native-gallery-non-main-active .bde-div-415-317 .dook-frame-left,
html.dook-native-gallery-non-main-active .bde-div-415-317 .dook-frame-right {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}
/* Native gallery alignment fixes */
.dook-native-gallery__main {
    position: relative;
}
.dook-native-gallery__main .dook-native-main-overlay,
.dook-native-gallery__main .bde-div-415-317 {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    display: block !important;
    pointer-events: none !important;
    z-index: 10 !important;
}
.dook-native-gallery__main .dook-native-main-overlay img,
.dook-native-gallery__main .bde-div-415-317 img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    margin: 0 !important;
}
@media (max-width: 767px) {
    .breakdance .bde-section-415-311 .section-container {
        padding-top: 54px !important;
    }
    .breakdance .bde-div-415-315 {
        margin-bottom: 28px !important;
    }
    .dook-native-gallery {
        gap: 12px !important;
    }
}
/* Disable sticky product image column on mobile */
@media (max-width: 767px) {
    .breakdance .sticky_column_left,
    .breakdance .bde-column-415-314 {
        height: auto !important;
        min-height: 0 !important;
    }
    .breakdance .sticky_product,
    .breakdance .bde-div-415-315 {
        position: static !important;
        top: auto !important;
        height: auto !important;
    }
}
/* Native gallery must occupy normal layout space; old WPGS template used absolute positioning plus overlay spacer. */
.breakdance .bde-wooproductimages-415-316:has(.dook-native-gallery),
.breakdance .bde-wooproductimages-415-316.breakdance-woocommerce:has(.dook-native-gallery) {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
}
.breakdance .bde-div-415-315:has(.dook-native-gallery) {
    height: auto !important;
    min-height: 0 !important;
}
@media (max-width: 767px) {
    .breakdance .bde-column-415-314:has(.dook-native-gallery),
    .breakdance .sticky_column_left:has(.dook-native-gallery) {
        height: auto !important;
        min-height: 0 !important;
    }
}
/* Fallback: this stylesheet only loads for the native renderer, so the gallery element can be normal flow globally. */
.breakdance .bde-wooproductimages-415-316,
.breakdance .bde-wooproductimages-415-316.breakdance-woocommerce {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
}
