@charset "utf-8";
[data-modal],
[data-modal-anchor],
[data-modal-youtube],
[data-modal-vimeo]{
    cursor: pointer;
}
:is([data-modal], [data-modal-youtube], [data-modal-vimeo]):not(._ready){
    cursor: wait;
}
.modal-window{
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    width: 100%;
    height: 100dvh;
    background: rgba(26, 26, 26, .75);
    cursor: pointer;
    transition: opacity .1s ease;
}
@media only screen and (max-width: 768px){
    .modal-window{
        transition: max-height .3s ease;
    }
}
.modal-window:not(._active){
    display: none;
}
.modal-window:not(._show){
    opacity: 0;
    transition: opacity .3s ease;
}
.modal-window._noscroll{
    cursor: not-allowed;
}
.modal-container{
    position: relative;
    cursor: auto;
}
@media only screen and (max-width: 768px){
    .modal-container{
        max-width: 90.625vw;
    }
}
.modal-content-wrap{
    max-height: calc(100dvh - 120px);
    overflow-y: auto;
    overflow-x: hidden;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, .2);
    background: #fff;
}
@media only screen and (max-width: 768px){
    .modal-content-wrap{
        transition: max-height .3s ease;
    }
}
.modal-content-wrap:not(:has(._active)),
.modal-content:not(._active){
    display: none;
}
.modal-iframe{
    position: relative;
    z-index: 0;
    box-shadow: 0 8px 16px rgba(0, 0, 0, .2);
    background: #000;
    line-height: 0;
}
.modal-iframe:not(._active){
    display: none;
}
.modal-iframe-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-iframe-loading{
        font-size: 7px;
    }
}
.modal-iframe iframe{
    max-width: 100%;
}
.modal-iframe iframe:not(._active){
    display: none;
}
:where(.modal-window) button{
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: inherit;
    text-transform: none;
    vertical-align: middle;
    outline: 0;
}
.modal-close-btn{
    --my-bg: #111;
    position: absolute;
    top: -46px;
    right: 0;
    transform: rotate(45deg);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(to top, #fff, #fff) no-repeat center / 16px 2px,
    linear-gradient(to right, #fff, #fff) no-repeat center / 2px 16px,
    var(--my-bg);
    color: transparent;
    font-size: 0;
    line-height: 0;
    cursor: pointer;
    transition: background .3s ease;
}
@media (any-hover: hover){
    .modal-close-btn:hover{
        --my-bg: #ed1c24;
    }
}
@keyframes modalYoutubeLoading{
    0%    { box-shadow: 0 -3em 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 .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 -.5em, 2em -2em 0 0, 3em 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 .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 .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 .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 .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 .2em; }
    100%  { box-shadow: 0 -3em 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; }
}
