.modal__wrap{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    color: var(--text-black);
    width: 100%;
}
@media screen and (max-width: 768px){
    .modal__wrap{
        display: block;
    }
}
.modal__wrap h3{
    font-size: var(--fs-h2);
}
.modal__wrap label{
    font-size: var(--fs-h5);
}
.modal__wrap input[type="submit"]{
    font-size: var(--fs-h3);
    background: var(--base-3);
    color: var(--text-white);
    width: 100%;
    padding-block: 0.5rem;
    padding-inline: 0.5rem;
    border-radius: 0.5rem;
}
.modal__wrap input[type="text"],
.modal__wrap input[type="email"],
.modal__wrap input[type="url"],
.modal__wrap input[type="password"],
.modal__wrap input[type="search"],
.modal__wrap input[type="tel"],
.modal__wrap input[type="number"],
.modal__wrap textarea,
.modal__wrap select{
    color: var(--text-black);
    background-color: var(--base);
    border-color: var(--text-light);
    border-radius: 0.5rem;
}
.modal__wrap p:last-of-type{
    margin-bottom: 0;
}

.hystmodal__opened,
.hystmodal__shadow {
    position: fixed;
    right: 0;
    left: 0;
    overflow: hidden;
}

.hystmodal__shadow {
    border: none;
    display: block;
    width: 100%;
    top: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 105;
    opacity: 0;
    transition: opacity 0.15s ease;
    background-color: #000;
}

.hystmodal__shadow--show {
    pointer-events: auto;
    opacity: 0.6;
}

.hystmodal {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    overflow: initial;
    /*overflow-y: auto;*/
    -webkit-overflow-scrolling: touch;
    opacity: 1;
    pointer-events: none;
    display: flex;
    flex-flow: column nowrap;
    justify-content: flex-start;
    z-index: 110;
    visibility: hidden;
    
    /*overflow-y: scroll;*/
}

.hystmodal--active {
    opacity: 1;
    overflow: hidden;
    border-radius: 0.5rem;
}

.hystmodal--active,
.hystmodal--moved {
    pointer-events: auto;
    visibility: visible;
}

.hystmodal__wrap {
    flex-shrink: 0;
    flex-grow: 0;
    width: 100%;
    /* min-height: 100%;  */
    margin: auto;
    display: flex;
    flex-flow: column nowrap;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

.hystmodal__window {
    margin: 10vh 0;
    box-sizing: border-box;
    flex-shrink: 0;
    flex-grow: 0;
    /* background: #fff; */
    /* width: 600px; */
    max-width: 100%;
    overflow: visible;
    transition: transform 0.2s ease 0s, opacity 0.2s ease 0s;
    transform: scale(0.9);
    opacity: 0;
    border-radius: 1rem;
}
.hystmodal__window:has(video){
    width: 50vw;

}

.hystmodal--active .hystmodal__window {
    transform: scale(1);
    opacity: 1;
}

.hystmodal__close {
    position: absolute;
    z-index: 10;
    top: 0;
    right: -40px;
    display: block;
    width: 30px;
    height: 30px;
    background-color: transparent;
    background-position: 50%;
    background-repeat: no-repeat;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' stroke='%23fff' stroke-linecap='square' stroke-miterlimit='50' stroke-width='2' d='M22 2L2 22'/%3E%3Cpath fill='none' stroke='%23fff' stroke-linecap='square' stroke-miterlimit='50' stroke-width='2' d='M2 2l20 20'/%3E%3C/svg%3E");
    background-size: 40%;
    border: none;
    font-size: 0;
    cursor: pointer;
    outline: none;
}

.hystmodal__close:focus {
    outline: 2px dotted #afb3b9;
    outline-offset: 2px;
}

@media (max-width: 767px) {
    .hystmodal__close {
        top: 10px;
        right: 10px;
        width: 24px;
        height: 24px;
        background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' stroke='%23111' stroke-linecap='square' stroke-miterlimit='50' stroke-width='2' d='M22 2L2 22'/%3E%3Cpath fill='none' stroke='%23111' stroke-linecap='square' stroke-miterlimit='50' stroke-width='2' d='M2 2l20 20'/%3E%3C/svg%3E");
    }

    .hystmodal__window {
        margin: 0;
        width: 100%;
    }
        .hystmodal__window:has(video) {
            width: 100%;
    
        }
}

.homeVideo_player{
    border-radius: 0.5rem;
}