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

.piwigo-lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.98);  /* Fond noir quasi-opaque */
    z-index: 999999;
    align-items: center;
    justify-content: center;
}

.piwigo-lightbox-overlay.active {
    display: flex;
}

.piwigo-lightbox-overlay img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.9);
}

/* Bouton fermer */
.piwigo-lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 60px;
    font-weight: 300;
    cursor: pointer;
    z-index: 1000001;
    line-height: 1;
    transition: color 0.2s;
}

.piwigo-lightbox-close:hover {
    color: #ccc;
}

/* Flèches de navigation */
.piwigo-lightbox-prev,
.piwigo-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 80px;
    font-weight: 300;
    cursor: pointer;
    z-index: 1000001;
    padding: 20px;
    user-select: none;
    transition: all 0.2s;
    line-height: 1;
}

.piwigo-lightbox-prev:hover,
.piwigo-lightbox-next:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.piwigo-lightbox-prev {
    left: 20px;
}

.piwigo-lightbox-next {
    right: 20px;
}

/* Titre et compteur */
.piwigo-lightbox-title {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 18px;
    text-align: center;
    max-width: 80%;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.piwigo-lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
}

/* Responsive */
@media (max-width: 768px) {
    .piwigo-lightbox-prev,
    .piwigo-lightbox-next {
        font-size: 50px;
        padding: 10px;
    }
    
    .piwigo-lightbox-prev {
        left: 10px;
    }
    
    .piwigo-lightbox-next {
        right: 10px;
    }
    
    .piwigo-lightbox-close {
        font-size: 40px;
        top: 15px;
        right: 15px;
    }
}