/* Album Photo Styles */
.album-container {
    max-width: 1400px;
    margin: 100px auto 60px;
    padding: 0 20px;
}

.album-header {
    text-align: center;
    margin-bottom: 3rem;
}

.album-header h1 {
    font-size: 2.5rem;
    color: #1a5490;
    margin-bottom: 0.5rem;
}

.album-info {
    color: #666;
    font-size: 1.1rem;
}

.alert-process {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    text-align: center;
}

.alert-process strong {
    color: #856404;
    font-size: 1.2rem;
}

.alert-process a {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.8rem 1.5rem;
    background: #1a5490;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
}

.alert-process a:hover {
    background: #00a8cc;
}

/* Grille photos */
.photos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 3rem;
}

.photo-item {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.photo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    padding: 0.8rem 1.5rem;
    background: #1a5490;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.3s;
}

.pagination a:hover {
    background: #00a8cc;
}

.pagination span {
    background: #e0e0e0;
    color: #666;
}

.pagination .current {
    background: #FFD700;
    color: #1a5490;
}

/* Lightbox - Isolation avec préfixe */
#album-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.97);
    z-index: 99999;
}

#album-lightbox.active {
    display: block;
}

#album-lightbox .lightbox-content {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#album-lightbox img {
    max-width: 95vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

#album-lightbox .lightbox-close {
    position: fixed;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 100001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, transform 0.3s;
}

#album-lightbox .lightbox-close:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: rotate(90deg);
}

#album-lightbox .lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 100001;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: background 0.3s, opacity 0.3s;
    opacity: 0.2;
}

#album-lightbox .lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    opacity: 1;
}

#album-lightbox .lightbox-prev {
    left: 10px;
}

#album-lightbox .lightbox-next {
    right: 10px;
}

#album-lightbox .lightbox-click-zone {
    position: fixed;
    top: 0;
    bottom: 0;
    width: 45%;
    z-index: 100000;
    cursor: pointer;
}

#album-lightbox .lightbox-click-left {
    left: 0;
}

#album-lightbox .lightbox-click-right {
    right: 0;
}

#album-lightbox .lightbox-click-zone-top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    z-index: 100002;
    pointer-events: none;
}

#album-lightbox .lightbox-counter {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 1.1rem;
    font-weight: 600;
    z-index: 100001;
}

/* Message si pas de photos */
.no-photos {
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
    font-size: 1.2rem;
}

/* Responsive */
@media (max-width: 1200px) {
    .photos-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .album-container {
        margin-top: 80px;
    }

    .photos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .photo-item {
        height: 180px;
    }

    #album-lightbox img {
        max-height: 80vh;
    }

    #album-lightbox .lightbox-nav {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
        opacity: 0.15;
    }

    #album-lightbox .lightbox-prev {
        left: 8px;
    }

    #album-lightbox .lightbox-next {
        right: 8px;
    }
    
    #album-lightbox .lightbox-close {
        top: 10px;
        right: 10px;
        width: 42px;
        height: 42px;
        font-size: 1.6rem;
    }

    .pagination a,
    .pagination span {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .photos-grid {
        grid-template-columns: 1fr;
    }

    .photo-item {
        height: 250px;
    }
}