/* ── LIGHTBOX ── */
.lb-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(2, 8, 18, 0.92);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lb-overlay.lb-open {
    opacity: 1;
    pointer-events: all;
}

.lb-container {
    position: relative;
    max-width: 90vw;
    max-height: 88vh;
    display: flex;
    align-items: center;
    gap: 20px;
    transform: scale(0.96);
    transition: transform 0.3s ease;
}

.lb-overlay.lb-open .lb-container {
    transform: scale(1);
}

.lb-img {
    display: block;
    max-width: 82vw;
    max-height: 85vh;
    width: auto;
    height: auto;
    border-radius: 3px;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6);
    object-fit: contain;
}

/* ── botón cerrar ── */
.lb-close {
    position: fixed;
    top: 24px;
    right: 28px;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.8);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    z-index: 1001;
}

.lb-close:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

/* ── flechas nav ── */
.lb-arrow {
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    user-select: none;
}

.lb-arrow:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

.lb-arrow.lb-hidden {
    visibility: hidden;
    pointer-events: none;
}

/* ── contador ── */
.lb-counter {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Instrument Sans', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.35);
    text-transform: uppercase;
}

/* ── cursor en slots ── */
.photo-slot {
    cursor: zoom-in;
}
