/* ── Lightbox overlay ── */
#lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
#lightbox.active {
    opacity: 1;
    pointer-events: all;
}

/* ── Modal box ── */
#lightbox-modal {
    position: relative;
    width: min(92vw, 860px);
    background: #1a1a1e;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 32px 80px rgba(0,0,0,0.7);
    transform: scale(0.93) translateY(16px);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
#lightbox.active #lightbox-modal {
    transform: scale(1) translateY(0);
}

/* ── Image area ── */
#lightbox-track-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #111;
}
#lightbox-track {
    display: flex;
    height: 100%;
    transition: transform 0.45s cubic-bezier(0.77, 0, 0.175, 1);
}
#lightbox-track img {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
    -webkit-user-drag: none;
}

/* ── Prev / Next buttons ── */
.lb-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0,0,0,0.55);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    backdrop-filter: blur(4px);
}
.lb-arrow:hover {
    background: rgba(255,255,255,0.18);
    transform: translateY(-50%) scale(1.1);
}
#lb-prev { left: 14px; }
#lb-next { right: 14px; }

/* ── Counter badge ── */
#lb-counter {
    position: absolute;
    top: 12px;
    right: 14px;
    background: rgba(0,0,0,0.55);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 12px;
    color: rgba(255,255,255,0.75);
    backdrop-filter: blur(4px);
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.06em;
}

/* ── Close button ── */
#lb-close {
    position: absolute;
    top: 12px;
    left: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0,0,0,0.55);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    backdrop-filter: blur(4px);
}
#lb-close:hover {
    background: rgba(220, 60, 60, 0.7);
    transform: scale(1.1);
}

/* ── Info bar ── */
#lb-info {
    padding: 16px 20px 18px;
    border-top: 1px solid rgba(255,255,255,0.07);
}
#lb-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: #f0ece4;
    margin-bottom: 4px;
}
#lb-desc {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.82rem;
    color: rgba(240,236,228,0.6);
    line-height: 1.55;
}

/* ── Dot indicators ── */
#lb-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 0 20px 16px;
}
.lb-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,0.22);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}
.lb-dot.active {
    background: rgba(255,255,255,0.8);
    transform: scale(1.3);
}

/* ── Card cursor hint ── */
.group .overflow-hidden {
    cursor: zoom-in;
}

/* ── No-images state ── */
.no-images-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.3);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    gap: 8px;
}