/* styles complémentaires pour galeries */

/*----*/
/* galeries */
/*----*/

.gallery-section {
    margin-bottom: 60px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 800px;
    margin-bottom: 20px;
}

.gallery-trigger {
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: left center;
    border-radius: 15px;
    cursor: pointer;
    box-shadow: 0 4px 8px var(--muted-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    /*float: left;*/
}

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

/* Modal Carrousel */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(6px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    /* État ouvert */
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.carousel {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 90vw;
    max-height: 90vh;
    background: white;
}

.carousel img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.nav-btn {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: var(--fonce-color);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    font-weight: bold;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px vvar(--fonce-color)
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

.nav-btn:hover {
    background: var(--noir-color);
}

.close-btn {
    position: fixed;
    /* Par rapport au carousel/image */
    top: 60px !important;
    right: 20px;
    background: var(--fonce-color);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 28px;
    font-weight: bold;
    z-index: 1000;
    /* Au-dessus de l'image */
    border: 2px solid var(--fonce-color);
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: var(--noir-color);
}

/*----*/
/* Responsive mobile - à revoir*/
/*----*/
@media (max-width: 640px) {

    /* à voir*/
}