/* Ajouter au styles.css */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    text-align: center;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 20px;
}

.gallery-item {
    width: 30%;
    box-sizing: border-box;
}

.gallery-item img, .gallery-item video {
    width: 100%;
    height: auto;
    cursor: pointer;
}

.fullscreen-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    text-align: center;
    z-index: 1000;
}

.fullscreen-modal .close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 30px;
    cursor: pointer;
}

.fullscreen-modal .content {
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}


.fullscreen-modal img, .fullscreen-modal video {
    max-width: 90%;
    max-height: 90vh; /* Limite la hauteur à la hauteur de l'écran */
    object-fit: contain; /* Assure un redimensionnement proportionnel */
}

.fullscreen-modal .content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.fullscreen-modal p {
    margin-top: 10px;
    text-align: center;
    color: white; /* Ou la couleur que vous préférez */
}

.fullscreen-modal .modal-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: -1;
}



.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    user-select: none;
}

.prev {
    left: 0;
    border-radius: 3px 0 0 3px;
}

.next {
    right: 0;
    border-radius: 0 3px 3px 0;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

