/* ================================================
   LIGHTBOX STYLES
================================================ */

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    animation: lightboxZoomIn 0.3s ease-out;
}

.lightbox-img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    font-size: 3rem;
    color: white;
    font-weight: 300;
    cursor: pointer;
    transition: all var(--transition-fast);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.lightbox-close:hover {
    background: var(--brand-primary);
    transform: rotate(90deg);
}

.lightbox-caption {
    text-align: center;
    color: white;
    padding: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

@keyframes lightboxZoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .lightbox-content {
        max-width: 95%;
    }

    .lightbox-close {
        top: -40px;
        font-size: 2rem;
        width: 40px;
        height: 40px;
    }

    .lightbox-caption {
        font-size: 1rem;
    }
}