.jz-lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 1080;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.jz-lightbox-backdrop {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(0, 0, 0, 0.88);
}
.jz-lightbox-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: min(96vw, 1200px);
    max-height: 92vh;
    pointer-events: none;
}
.jz-lightbox-content > * {
    pointer-events: auto;
}
.jz-lightbox-topbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    width: 100%;
    margin-bottom: 0.75rem;
    color: #fff;
}
.jz-lightbox-counter {
    margin-right: auto;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.85);
}
.jz-lightbox-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: min(60vh, 480px);
    max-height: 78vh;
}
.jz-lightbox-img {
    display: block;
    max-width: calc(100% - 5.5rem);
    max-height: 78vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 0.25rem;
    cursor: pointer;
    background: transparent;
}
.jz-lightbox-img--loading {
    opacity: 0.35;
}
.jz-lightbox-img--error {
    opacity: 0.5;
    min-width: 120px;
    min-height: 120px;
}
.jz-lightbox-caption {
    color: #f8f9fa;
    text-align: center;
    margin: 0.75rem 0 0;
    font-size: 0.9rem;
    max-width: 100%;
}
.jz-lightbox-close {
    border: 0;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.25rem;
    cursor: pointer;
}
.jz-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.22);
}
.jz-lightbox-prev,
.jz-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 1.75rem;
    line-height: 1;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    cursor: pointer;
    z-index: 3;
    transition: background 0.15s ease;
}
.jz-lightbox-prev:hover,
.jz-lightbox-next:hover {
    background: rgba(255, 255, 255, 0.28);
}
.jz-lightbox-prev {
    left: 0;
}
.jz-lightbox-next {
    right: 0;
}
.jz-lightbox-autoplay {
    border: 0;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.25rem;
    cursor: pointer;
    font-size: 0.85rem;
    line-height: 1;
}
.jz-lightbox-autoplay:hover {
    background: rgba(255, 255, 255, 0.22);
}
body.jz-lightbox-open {
    overflow: hidden;
}
@media (max-width: 575.98px) {
    .jz-lightbox-stage {
        min-height: 50vh;
    }
    .jz-lightbox-img {
        max-width: calc(100% - 3.5rem);
    }
    .jz-lightbox-prev {
        left: -0.25rem;
    }
    .jz-lightbox-next {
        right: -0.25rem;
    }
}
