.videos .uniformSpacing{
    display: flex;
    gap: 3em;
    flex-wrap: wrap;
}

.videos .uniformSpacing div{
    width: calc((100% - 3em * 2) / 3);
    background-color: white;
    box-shadow: 3px 4px 50px 5px rgba(0, 0, 0, .07);
    padding: 1em;
    display: flex;
    flex-direction: column;
    gap: .5em;
    cursor: pointer;
}

.videos .uniformSpacing img{
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
}

.videos .uniformSpacing h3{
    font-size: 1.2em;
    font-weight: 600;
}

@media screen and (max-width: 1200px) {
    .videos .uniformSpacing{
        gap: 1.5em;
    }
    .videos .uniformSpacing div {
        width: calc((100% - 1.5em) / 2);
    }
}

@media screen and (max-width: 750px) {
    .videos .uniformSpacing div {
        width: 100%;
    }
}



/* MODAL */

.modal {
    display: flex;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateY(-100%); /* Départ en dehors de l'écran, vers le haut */
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.modal-content {
    background-color: #fff;
    padding: 2em;
    border-radius: var(--basicRadius);
    width: 60%;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 80vh;
    overflow-y: auto;
}

.modal.show {
    opacity: 1;
    transform: translateY(0);
}

.modal iframe{
    width: 100%;
    height: 100%;
}

.modal h2{
    text-align: start;
    padding-bottom: .5em;
    padding-top: 1em;
}

.modal .close{
    position: absolute;
    top: .5em;
    right: 1em;
    font-size: 1.5em;
    cursor: pointer;
}
.modal-content img {
    width: 100%;
    height: auto;
}

@media screen and (max-width: 1400px) {
    .modal-content{
        width: 90%;
        padding: 1em;
    }
}

@media screen and (max-width: 800px) {
    .modal-content{
        width: 90%;
        padding: 1em;
    }
}



