/* ═══ LIGHTBOX ═══ */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox__img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
    transform: scale(0.92);
    transition: transform 0.3s ease;
}

.lightbox.active .lightbox__img {
    transform: scale(1);
}

.lightbox__close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 10001;
    line-height: 1;
    transition: color 0.2s ease;
    padding: 8px;
}

.lightbox__close:hover {
    color: #fff;
}

.lightbox__prev,
.lightbox__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 3rem;
    cursor: pointer;
    padding: 16px 12px;
    border-radius: 4px;
    transition: all 0.2s ease;
    line-height: 1;
}

.lightbox__prev { left: 16px; }
.lightbox__next { right: 16px; }

.lightbox__prev:hover,
.lightbox__next:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.lightbox__caption {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    text-align: center;
    max-width: 80vw;
}

@media (max-width: 767px) {
    .lightbox__prev,
    .lightbox__next {
        padding: 12px 8px;
        font-size: 2rem;
    }

    .lightbox__prev { left: 8px; }
    .lightbox__next { right: 8px; }
}
