/* Video with modal popup */
.video-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}
.bg-overlay {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background-color: #2a2a2a;
}
#video-wrap.active {
    opacity: 1;
    visibility: visible;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 12px;
    height: 100vh;
    display: flex;
    transition: all 0.3s ease-in-out;
    z-index: 9991;
    align-items: center;
    justify-content: center;
}
#video-wrap .video-overlay {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}
#video-wrap .video-container {
    width: 95%;
    transition: all 0.3s ease-in-out;
    transform: scale(0.9);
}
#video-wrap.active .video-container {
    transform: scale(1);
}
#video-wrap video, #video-wrap iframe {
    position: relative;
    z-index: 10;
    border-radius: 12px;
    box-shadow: 0 0 19px rgb(0 0 0 / 16%);
    width: 100%;
    height: 100vh;
    max-height: 85vh;
    background-color: #000;
}
#video-wrap .close-video {
    background-color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 5%;
    top: 5%;
    width: 42px;
    height: 42px;
    border-radius: 100%;
    border: solid 2px #000;
    padding: 0;
    transition: all 0.3s ease-in-out;
    z-index: 150;
}
#video-wrap .close-video:before, #video-wrap .close-video:after {
    content: "";
    width: 60%;
    height: 3px;
    background-color: #000;
    position: absolute;
    transition: all 0.3s ease-in-out;
}
#video-wrap .close-video:before {
    transform: rotate(42deg);
}
#video-wrap .close-video:after {
    transform: rotate(-42deg);
}
@media (max-width: 1659px) and (min-width: 1330px) {
    #video-wrap .video-container {
        max-width: 978px;
    }
}