/* Vanilla JS Lightbox */
#lb-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.85);
    z-index: 9000;
    align-items: center;
    justify-content: center;
}
#lb-overlay.lb-visible { display: flex; }

#lb-box {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#lb-img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border: 3px solid #fff;
    display: block;
}

#lb-caption {
    color: #fff;
    margin: 8px 0 2px;
    font-size: 14px;
    text-align: center;
}
#lb-counter {
    color: #aaa;
    font-size: 12px;
    margin: 0;
}

#lb-close {
    position: absolute;
    top: -36px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    padding: 0 6px;
    z-index: 2;
}
#lb-close:hover { color: #EE6631; }

/* Full-height side navigation zones */
#lb-zone-prev, #lb-zone-next {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 15%;
    min-width: 48px;
    max-width: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1;
    transition: background .2s;
}
#lb-zone-prev { left: 0; }
#lb-zone-next { right: 0; }
#lb-zone-prev:hover  { background: rgba(0,0,0,.18); }
#lb-zone-next:hover  { background: rgba(0,0,0,.18); }

#lb-zone-prev::after,
#lb-zone-next::after {
    content: '';
    display: block;
    width: 22px;
    height: 22px;
    border-top: 3px solid rgba(255,255,255,.75);
    border-right: 3px solid rgba(255,255,255,.75);
    border-radius: 2px;
}
#lb-zone-prev::after { transform: rotate(-135deg); margin-left:  6px; }
#lb-zone-next::after { transform: rotate(45deg);   margin-right: 6px; }

@media (max-width: 600px) {
    #lb-zone-prev, #lb-zone-next { width: 20%; }
}
