/**
 * ==========================================
 * LIGHTBOX GALERIE - STYLES
 * ==========================================
 */

.gallery-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;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-lightbox.active {
    opacity: 1;
}

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

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.gallery-lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    display: block;
}

.gallery-lightbox-close {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: white;
    color: #333;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 100000;
    transition: all 0.3s ease;
    line-height: 1;
}

.gallery-lightbox-close:hover {
    background: #f0f0f0;
    transform: rotate(90deg);
}

.gallery-lightbox-caption {
    text-align: center;
    color: white;
    margin-top: 1rem;
    font-size: 1.125rem;
    padding: 0 1rem;
}

/* Effet hover sur les items de galerie */
.gallery-item {
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.gallery-item:hover .zoom-icon {
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .gallery-lightbox-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .gallery-lightbox-content {
        max-width: 95%;
    }
    
    .gallery-lightbox-caption {
        font-size: 1rem;
    }
}
