.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #111111bd;
    display: flex;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s 0.5s;
    --transform: translateY(-100vh);
    --transition: transform 0.3s;
}

.modal--show {
    opacity: 1;
    pointer-events: unset;
    transition: opacity 0.3s;
    --transform: translateY(0);
    --transition: transform 0.4s 0.4s;
}

.modal__container {
    margin: auto;
    width: 30%;
    /* max-width: 1000px; */
    height: 95%;
    background-color: rgba(0, 65, 119, 0.5);
    border-radius: 6px;
    padding: 1.5em;
    display: grid;
    grid-template-columns: 1;
    place-items: center;
    justify-items: center;
    grid-auto-columns: 100%;
    transform: var(--transform);
    transition: var(--transition);
}

.modal__close {
    text-decoration: none;
    color: #fff;
    background-color: #f26250;
    padding: 1em 3em;
    border: 1px solid;
    border-radius: 6px;
    display: inline-block;
    font-weight: 300;
    transition: background-color 0.3s;
    grid-row: 4/5;
}

.modal__close:hover {
    color: #f26250;
    background-color: #fff;
}

.swiper {
    height: 99%;
    grid-row: 1/5;
}

@media screen and (max-width: 375px) {
    .modal__container {
        width: 100%;

        gap: 5% !important; 
    }
}



@media screen and (max-width: 820px) {
    .modal__container {
        width: 70% !important;
        height: 65%;
        gap: 4%;
    }
}

@media screen and (max-width: 912px) {
    .modal__container {
        width: 70% !important;
        height: 65%;
        gap: 4%;
    }
}

@media screen and (max-width: 414px) {
    .modal__container {
        width: 100% !important;
        height: 75%;
        gap: 2%;
    }
}


.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff;

    /* Center slide text vertically */
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
}
