.gallery-container {
    position: relative;
    overflow: hidden; /* Cache les parties des slides qui sortent du conteneur */
    width: 100%;
}

.gallery {
    display: flex;
	justify-content:center;
    transition: transform 0.5s ease;
     width: 100%; /* Adapte la largeur pour inclure les clones (nombre d'images + 2) */
	padding: 0px 90px 0px 60px;
}

@media (max-width: 1200px) {
    .gallery {
	padding: 0px 90px 0px 40px;
	}
}

.slide {
    min-width: 20%;
    flex-shrink: 0; /* Assure que les slides ne se rétrécissent pas */
    transition: transform 0.5s ease;
}


.slide img {
    width: 225px;
    height: 225px;
    border-radius: 50%;
    margin-left: 50px;
    cursor: pointer;
}




.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: white;
    cursor: pointer;
    user-select: none;
    padding: 6px 12px;
    border-radius: 50%;
    background-color: #DB0714;
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

