/* --- PREMIUM LIGHTBOX --- */
.lightbox-3d-perspective {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    gap: 30px;
}

/* LEFT: MAIN STAGE */
.lightbox-main-stage {
    flex: 1;
    max-width: 950px;
    height: 82vh;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #000;
}

.lightbox-main-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* RIGHT: SIDE STRIP */
.lightbox-card-stack {
    width: 200px;
    height: 82vh;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: scroll;
    padding: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.2) transparent;
}

.lightbox-card-stack::-webkit-scrollbar { width: 4px; }
.lightbox-card-stack::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.3); border-radius: 4px; }
.lightbox-card-stack::-webkit-scrollbar-track { background: transparent; }

.lightbox-mini-card {
    height: 100px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.3s, transform 0.3s;
    position: relative;
}

.lightbox-mini-card:hover {
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.03);
}

.lightbox-mini-card.active {
    border-color: var(--brand-accent);
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.3);
}

.lightbox-mini-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.lightbox-mini-card:hover img,
.lightbox-mini-card.active img {
    opacity: 1;
}

@media (max-width: 900px) {
    .lightbox-3d-perspective {
        flex-direction: column;
        padding: 20px;
        gap: 15px;
    }

    .lightbox-card-stack {
        width: 100%;
        max-height: none;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        height: 100px;
    }

    .lightbox-mini-card {
        min-width: 130px;
        height: 100%;
    }

    .lightbox-main-stage {
        height: 55vh;
        width: 100%;
    }
}

/* IMAGE COUNTER */
.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    padding: 6px 14px;
    border-radius: 20px;
    color: white;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    gap: 6px;
}

.lightbox-counter span {
    color: var(--brand-accent);
    font-weight: 700;
}
