/* Style the images in the gallery only */
.gallery img {
    width: 30%; /* Augmentez cette valeur pour agrandir les images */
    height: auto;
    margin-top: 15px;   
    margin-bottom: 15px;
    margin-left: 15px;
    margin-right: 15px;
    cursor: pointer;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .gallery img {
        width: 100%; /* Les images prennent toute la largeur de l'écran */
        margin-left: 0;
        margin-right: 0;
    }
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(255,255,255,0.9); /* White with transparency */
}

.modal-content {
    position: relative;
    margin: auto;
    width: 80%; /* Responsive width */
    max-width: 700px; /* Maximum width */
}

.mySlides {
    display: none;
    text-align: center;
}

.mySlides img {
    max-width: 100%; /* Responsive image width */
    height: auto; /* Maintain aspect ratio */
    margin: auto; /* Centering the image vertically in modal */
}

/* Hover effect only for gallery images */
.gallery img:hover {
    transform: scale(1.05);
}

/* Close button styles */
.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #000; /* Changed to black for visibility on white background */
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #666; /* Lighter black on hover/focus */
}

/* Navigation buttons */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev {
    left: 0;
    border-radius: 3px 0 0 3px;
}

/* Hover effect for navigation buttons */
.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
}
