.vgmf-gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(6px);
}

.vgmf-gallery-lightbox.is-open {
    display: flex;
}

.vgmf-gallery-lightbox-panel {
    position: relative;
    max-width: min(96vw, 1100px);
    max-height: 92vh;
    width: 100%;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.vgmf-gallery-lightbox-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.vgmf-gallery-lightbox-caption {
    flex: 1;
    font-size: 0.9rem;
    color: #475569;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vgmf-gallery-lightbox-zoom {
    display: flex;
    align-items: center;
    gap: 6px;
}

.vgmf-gallery-lightbox-zoom button {
    width: 36px;
    height: 36px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    color: #0f766e;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
}

.vgmf-gallery-lightbox-zoom button:hover {
    background: #ecfdf5;
}

.vgmf-gallery-lightbox-zoom span {
    font-size: 0.82rem;
    color: #64748b;
    min-width: 3rem;
    text-align: center;
}

.vgmf-gallery-lightbox-close {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    background: #fee2e2;
    color: #b91c1c;
    font-size: 1.25rem;
    cursor: pointer;
    line-height: 1;
}

.vgmf-gallery-lightbox-stage {
    flex: 1;
    min-height: 200px;
    overflow: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #0f172a;
    touch-action: pan-x pan-y pinch-zoom;
}

.vgmf-gallery-lightbox-stage img {
    max-width: 100%;
    max-height: 72vh;
    object-fit: contain;
    transition: transform 0.15s ease;
    transform-origin: center center;
    user-select: none;
    -webkit-user-drag: none;
}

.vgmf-gallery-thumb {
    cursor: zoom-in;
}

.vgmf-gallery-thumb:hover {
    opacity: 0.92;
}
