.video_overlay{
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, .82);
    display: none;
    overflow-y: hidden;
    overscroll-behavior: contain;
}
.video_overlay .video-wrap{
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -49%);
}
.video_overlay .close_overlay{
    position: absolute;
    right: -2px;
    top: -2px;
    transform: translate(100%, -100%);
    transition: opacity .3s;
    padding: 12px;
}
.video_overlay .close_overlay:hover{
    opacity: .6;
}
.video_overlay .close_overlay img{
    width: 24px;
    object-fit: contain;
}
.video_overlay .video-wrap iframe,
.video_overlay .video-wrap video{
    width: 960px;
    max-width: 75vw;
    aspect-ratio: 16 / 9;
}
.video_overlay > button{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-weight: 300;
    font-size: clamp(15px, 1.8rem, 18px);
    color: #fff;
    transition: opacity .3s;
    z-index: 2;
}
.video_overlay > button:hover{
    filter: brightness(.75);
}
.video_overlay > button img{
    width: 6.4rem;
    object-fit: contain;
    margin-bottom: -6px;
}
.video_overlay > button.none{
    filter: brightness(.4);
    cursor: default;
}
.video_overlay .prev{
    left: 40px;
}
.video_overlay .next{
    right: 40px;
}

@media only screen and (max-width: 1440px) {
.video_overlay .prev{
        left: 20px;
    }
.video_overlay .next{
        right: 20px;
    }
}

@media only screen and (max-width: 1024px) {
.video_overlay .prev{
        left: 10px;
    }
.video_overlay .next{
        right: 10px;
    }
}

@media only screen and (max-width: 768px) {
.video_overlay .close_overlay {
        right: -8px;
        top: -12px;
        transform: translate(0, -100%);
        padding: 8px;
    }
.video_overlay > button {
        top: auto;
        bottom: 20px;
        transform: none;
    }
.video_overlay > button img {
        width: 42px;
        margin-bottom: -5px;
    }
    .video_overlay .video-wrap iframe,
    .video_overlay .video-wrap video{
        max-width: 90vw;
    }
}
