.modal {
    display: none;
    width: 100%;
    height: 100%;
    
}
.modal.show {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    z-index: 99;
    -webkit-animation: fadein 0.6s;
    -moz-animation: fadein 0.6s;
      -o-animation: fadein 0.6s; 
         animation: fadein 0.6s;
}
.modal .background{
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.77);
    position: fixed;
    z-index: 99;
    cursor: pointer;
}
.modal .block {
    width: 50vw;
    min-height: 10vh;
    background-color: #ffffff;
    position: absolute;
    z-index: 100;
    cursor: default;
    left: 0;
    right: 0;
    margin: auto;
    top: 0;
    bottom: 0;
    height: -webkit-fit-content;
    height: -moz-fit-content;
    height: fit-content;
    max-height: 90vh;
    overflow-y: auto;
}
.modal .block .container{
    width: 100%;
    padding: 3rem;
    position: relative;
}
.modal .block .container .close {
    width: 2rem;
    height: 3rem;
    position: absolute;
    right: 2rem;
    top: 2rem;
    cursor: pointer;
}
.modal .block .container h3 {
    width: 100%;
    text-transform: uppercase;
    text-align: left;
    margin-bottom: 1rem;
    padding: 0;
}
.modal .block .container form{
    width: 100%;
}
.modal .block.slider{
    background-color: transparent;
    width: 100vw;
    height: 100vh;
}
.modal .block.slider .container{
    height: 100%;
}
.modal .block.slider .image{
    aspect-ratio: 16/9;
    width: 100%;
    max-width: 54.857rem;
    max-height: 36.357rem;
    height: 100%;
    display: block;
    background-position: center;
    background-repeat: no-repeat;
    -moz-background-size: cover;
      -o-background-size: cover;
         background-size: cover;
    margin: auto;
}
.modal .block.slider .container .close{
    top:0;
    cursor: pointer;
    z-index: 3;
}
.modal .block.slider .container .close svg path{
    fill: #ffffff;
}
.modal .swiper-button-next, .modal .swiper-button-prev{
    color: #ffffff;
    -webkit-border-radius: 100%;
       -moz-border-radius: 100%;
            border-radius: 100%;
    border: 1px solid #ffffff;
    width: 2rem;
    height: 2rem;
    display:-webkit-inline-box;
    display:-webkit-inline-flex;
    display:-moz-inline-box;
    display:-ms-inline-flexbox;
    display:inline-flex;
    z-index: 3;
}
.modal .swiper-button-next:after, .modal .swiper-button-prev:after {
    font-size: .8rem;
}
@media screen and (max-width: 800px){
.modal .block {
    width: 100vw;
}

}
@media screen and (max-width: 600px){
    .modal .block .container {
        width: 100%;
        padding: .5rem;
    }
    #callback .block .container {
        width: 100%;
        padding: 1rem;
    }
    
    .modal .block {
        max-height: 100%;
      }
      .modal .block .container .close{
        right: .5rem;
      }
      #callback .block .container .close {
        right: 1rem;
        top: .3rem;
    }
      .modal .block.slider .image {
        max-height: 20.357rem;
      }
}