
.lb-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,.92);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
}
.lb-overlay.lb-open {
    opacity: 1;
    pointer-events: all;
}

.lb-img-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 90vw;
    max-height: 80vh;
}

.lb-img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 24px 60px rgba(0,0,0,.6);
    display: block;
    transition: opacity .15s;
}
.lb-img.lb-loading { opacity: 0; }

.lb-caption {
    color: rgba(255,255,255,.75);
    font-size: 13px;
    text-align: center;
    max-width: 600px;
    padding: 0 16px;
}

.lb-close,
.lb-prev,
.lb-next {
    position: fixed;
    background: rgba(255,255,255,.1);
    border: none;
    color: #fff;
    cursor: pointer;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: background .15s, transform .15s;
    backdrop-filter: blur(4px);
}
.lb-close { top: 20px; right: 20px; font-size: 20px; }
.lb-prev  { left: 16px;  top: 50%; transform: translateY(-50%); }
.lb-next  { right: 16px; top: 50%; transform: translateY(-50%); }

.lb-close:hover { background: rgba(255,255,255,.25); }
.lb-prev:hover  { background: rgba(255,255,255,.2); transform: translateY(-50%) scale(1.05); }
.lb-next:hover  { background: rgba(255,255,255,.2); transform: translateY(-50%) scale(1.05); }

.lb-prev.lb-hidden,
.lb-next.lb-hidden { opacity: 0; pointer-events: none; }

.lb-counter {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,.5);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .05em;
}
