@charset "utf-8";
[data-modal],
[data-modal-anchor],
[data-modal-youtube]{
    cursor: pointer;
}
.modal-window{
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    width: 100%;
    height: 100vh;
    background: rgba(26, 26, 26, 0.6);
    cursor: pointer;
    transition: opacity 0.1s ease;
}
@media only screen and (max-width: 768px){
    .modal-window{
        transition: max-height 0.3s ease;
    }
}
.modal-window:not(.active){
    display: none;
}
.modal-window:not(.show){
    opacity: 0;
    transition: opacity 0.3s ease;
}
.modal-container{
    position: relative;
    cursor: auto;
}
@media only screen and (max-width: 768px){
    .modal-container{
        max-width: 93.75%;
    }
}
.modal-content-wrap{
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    background: #fff;
}
@media only screen and (max-width: 768px){
    .modal-content-wrap{
        transition: max-height 0.3s ease;
    }
}
.modal-content:not(.active){
    display: none;
}
.modal-youtube{
    position: relative;
    z-index: 0;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    background: #000;
    line-height: 0;
}
.modal-youtube:not(.active){
    display: none;
}
.modal-youtube-loading{
    position: absolute;
    top: calc(50% - .5em);
    left: calc(50% - .5em);
    z-index: -1;
    width: 1em;
    height: 1em;
    border-radius: 50%;
    color: #ffffff;
    font-size: 10px;
    animation: modalYoutubeLoading 1.3s infinite linear;
}
@media only screen and (max-width: 768px){
    .modal-youtube-loading{
        font-size: 7px;
    }
}
.modal-close-btn{
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: -20px;
    right: -20px;
    width: 40px;
    height: 40px;
    border-radius: 5px;
    background: #1a1a1a;
    color: transparent;
    font-size: 0;
    line-height: 0;
    cursor: pointer;
}
@media only screen and (max-width: 768px){
    .modal-close-btn{
        top: -45px;
        right: 0;
    }
}
.modal-close-btn:after{
    display: block;
    transform: rotate(45deg);
    width: 16px;
    height: 16px;
    background: linear-gradient(to left, transparent 6px, #fff 6px, #fff 10px, transparent 10px), linear-gradient(to top, transparent 6px, #fff 6px, #fff 10px, transparent 10px);
    content: "";
}
@keyframes modalYoutubeLoading{
    0%, 100%{
        box-shadow: 0 -3em 0 0.2em, 2em -2em 0 0em, 3em 0 0 -1em, 2em 2em 0 -1em, 0 3em 0 -1em, -2em 2em 0 -1em, -3em 0 0 -1em, -2em -2em 0 0;
    }
    12.5%{
        box-shadow: 0 -3em 0 0, 2em -2em 0 0.2em, 3em 0 0 0, 2em 2em 0 -1em, 0 3em 0 -1em, -2em 2em 0 -1em, -3em 0 0 -1em, -2em -2em 0 -1em;
    }
    25%{
        box-shadow: 0 -3em 0 -0.5em, 2em -2em 0 0, 3em 0 0 0.2em, 2em 2em 0 0, 0 3em 0 -1em, -2em 2em 0 -1em, -3em 0 0 -1em, -2em -2em 0 -1em;
    }
    37.5%{
        box-shadow: 0 -3em 0 -1em, 2em -2em 0 -1em, 3em 0em 0 0, 2em 2em 0 0.2em, 0 3em 0 0em, -2em 2em 0 -1em, -3em 0em 0 -1em, -2em -2em 0 -1em;
    }
    50%{
        box-shadow: 0 -3em 0 -1em, 2em -2em 0 -1em, 3em 0 0 -1em, 2em 2em 0 0em, 0 3em 0 0.2em, -2em 2em 0 0, -3em 0em 0 -1em, -2em -2em 0 -1em;
    }
    62.5%{
        box-shadow: 0 -3em 0 -1em, 2em -2em 0 -1em, 3em 0 0 -1em, 2em 2em 0 -1em, 0 3em 0 0, -2em 2em 0 0.2em, -3em 0 0 0, -2em -2em 0 -1em;
    }
    75%{
        box-shadow: 0em -3em 0 -1em, 2em -2em 0 -1em, 3em 0em 0 -1em, 2em 2em 0 -1em, 0 3em 0 -1em, -2em 2em 0 0, -3em 0em 0 0.2em, -2em -2em 0 0;
    }
    87.5%{
        box-shadow: 0em -3em 0 0, 2em -2em 0 -1em, 3em 0 0 -1em, 2em 2em 0 -1em, 0 3em 0 -1em, -2em 2em 0 0, -3em 0em 0 0, -2em -2em 0 0.2em;
    }
}
