.viverdi-zoom-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: viverdi-zoom-fade 0.18s ease-out;
}

@keyframes viverdi-zoom-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

html.viverdi-zoom-lightbox-open,
html.viverdi-zoom-lightbox-open body {
    overflow: hidden;
}

.viverdi-zoom-lightbox-stage {
    position: relative;
    width: 95vw;
    height: 92vh;
    overflow: hidden;
    background: transparent;
    cursor: grab;
    touch-action: none;
    -ms-touch-action: none;
    -webkit-user-select: none;
    user-select: none;
    overscroll-behavior: contain;
}

.viverdi-zoom-lightbox-stage:active {
    cursor: grabbing;
}

.viverdi-zoom-lightbox-stage .zoomist-wrapper {
    touch-action: none;
    -ms-touch-action: none;
}

.viverdi-zoom-lightbox-stage .zoomist-image img {
    display: block;
    width: 100%;
    height: 100%;
    user-select: none;
    -webkit-user-drag: none;
    touch-action: none;
}

.viverdi-zoom-lightbox-close {
    position: fixed;
    top: 14px;
    right: 14px;
    z-index: 100010;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.viverdi-zoom-lightbox-close:hover,
.viverdi-zoom-lightbox-close:focus-visible {
    background: rgba(255, 255, 255, 0.9);
    color: #000;
    outline: none;
}

.viverdi-zoom-lightbox .zoomist-slider {
    display: none !important;
}

.viverdi-zoom-lightbox .zoomist-zoomer {
    position: absolute !important;
    left: 50% !important;
    right: auto !important;
    bottom: 20px !important;
    top: auto !important;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    gap: 10px;
    background: rgba(0, 0, 0, 0.6);
    padding: 8px 12px;
    border-radius: 999px;
}

.viverdi-zoom-lightbox .zoomist-zoomer .zoomist-zoomer-in,
.viverdi-zoom-lightbox .zoomist-zoomer .zoomist-zoomer-out,
.viverdi-zoom-lightbox .zoomist-zoomer .zoomist-zoomer-reset {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.95);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

@media (max-width: 640px) {
    .viverdi-zoom-lightbox-stage {
        width: 100vw;
        height: 100vh;
    }
}
