/* ========================================
   LIGHTBOX
======================================== */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active { opacity: 1; visibility: visible; }

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(30,15,10,0.92);
    backdrop-filter: blur(5px);
}

.lightbox-content {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.lightbox-img-wrapper {
    max-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-img-wrapper img {
    max-width: 85vw;
    max-height: 75vh;
    object-fit: contain;
    border-radius: var(--radius);
    box-shadow: 0 25px 80px rgba(0,0,0,0.5);
}

.lightbox-caption {
    text-align: center;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.lightbox-caption h3 { font-family: var(--font-title); font-size: 1.2rem; }
.lightbox-caption p  { font-size: 0.88rem; opacity: 0.8; }

.lightbox-tag {
    background: var(--pink-dark);
    color: white;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
}

.lightbox-counter { font-size: 0.82rem; opacity: 0.6; }

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: fixed;
    background: rgba(255,255,255,0.15);
    border: none;
    color: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition), transform var(--transition);
    backdrop-filter: blur(5px);
}

.lightbox-close {
    top: 1.5rem; right: 1.5rem;
    width: 46px; height: 46px;
    font-size: 1.1rem;
}

.lightbox-prev,
.lightbox-next {
    top: 50%;
    transform: translateY(-50%);
    width: 52px; height: 52px;
    font-size: 1.2rem;
}

.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

.lightbox-close:hover  { background: var(--pink-dark); transform: rotate(90deg); }
.lightbox-prev:hover   { background: rgba(255,255,255,0.25); transform: translateY(-50%) translateX(-3px); }
.lightbox-next:hover   { background: rgba(255,255,255,0.25); transform: translateY(-50%) translateX(3px); }

@media (max-width: 600px) {
    .lightbox-content { max-width: 95vw; }
    .lightbox-prev, .lightbox-next, .lightbox-close { display: none; }
}
