/*=============================================================================================*/

/* Section Galerie */

.gallery {
    padding: 40px;
    background-color: #1a1a1a;
    text-align: center;
}

.gallery h1 {
    font-size: 2.5em;
    margin-bottom: 30px;
    color: #f4d03f;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    justify-items: center;
}

.gallery-item img {
    width: 100%;
    height: 200px; /* Définit une hauteur fixe pour toutes les images */
    object-fit: cover; /* Permet à l'image de remplir le conteneur tout en gardant ses proportions */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease-in-out;
    cursor: pointer;
}


.gallery-item img:hover {
    transform: scale(1.1);
}

/* Modale d'image */
.modal {
    display: none; /* Initialement cachée */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.modal-content {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Assure que l'image est redimensionnée tout en gardant ses proportions */
    margin: auto;
    display: block;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 3em;
    color: #f4d03f;
    cursor: pointer;
    background: none;
    border: none;
}

.close-btn:hover {
    color: #b9832f;
}

/*=============================================================================================*/