.zenvodo-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.92);
    padding: 2rem;
}

.zenvodo-lightbox.is-open {
    display: flex;
}

.zenvodo-lightbox__image {
    max-width: 92vw;
    max-height: 86vh;
    border-radius: 12px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.45);
}

.zenvodo-lightbox__button {
    position: absolute;
    border: 0;
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    width: 48px;
    height: 48px;
    border-radius: 999px;
    font-size: 28px;
    cursor: pointer;
}

.zenvodo-lightbox__button:hover {
    background: rgba(255, 255, 255, 0.25);
}

.zenvodo-lightbox__close {
    top: 24px;
    right: 24px;
}

.zenvodo-lightbox__prev {
    left: 24px;
}

.zenvodo-lightbox__next {
    right: 24px;
}

.zenvodo-lightbox__caption {
    position: absolute;
    bottom: 24px;
    color: #fff;
    font-size: 14px;
    opacity: 0.85;
    text-align: center;
    max-width: 80vw;
}

/* Native modal semantics keep the rest of the page inert while the viewer is open. */
dialog.zenvodo-lightbox {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    border: 0;
    box-sizing: border-box;
}
.zenvodo-lightbox__button[hidden] { display: none; }
.zenvodo-lightbox__button:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.zenvodo-lightbox__caption { max-height: 18vh; overflow-y: auto; }
@media (max-width: 600px) {
    .zenvodo-lightbox { padding: 12px; }
    .zenvodo-lightbox__image { max-width: 94vw; max-height: 65vh; }
    .zenvodo-lightbox__prev { left: 12px; }
    .zenvodo-lightbox__next { right: 12px; }
}
