.custom-overlay-video-cover {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.4);
    display: none;
}

.custom-popup-view-video {
    position: fixed;
    width: 90%;
    z-index: 151;
    left: 50%;
    top: 50%;
    padding: 0;
    display: none;
    margin: auto;
    max-width: 100%;
    border-radius: 10px;
    transform: translate(-50%, -50%);
}

.custom-popup-view-video .popup-content {
    top: 116px;
    width: 97%;
    min-height: unset;
    background-color: transparent;
    display: flex;
    justify-content: center;
    padding: 0 0 20px 0;
}

.custom-popup-view-video .popup-close {
    position: absolute;
    width: 16px;
    height: 16px;
    background-image: url(../images/popup-close.png);
    background-size: 16px;
    right: 78px;
    top: 5px;
    display: inline-block;
    z-index: 151;
    opacity: 1;
}

.video-txt-wrapper-block {
    padding: 50px 0px;
}

.video-txt-wrapper-block h2.video-block-title.text-center {
    color: var(--color-primary);
    font-weight: 700;
    font-size: 60px;
    line-height: 70px;
}

.video-txt-wrapper-block .custom-video-wrapper {
    display: flex;
    width: 100%;
}

.custom-video .custom_video_popup:hover img,
.video-txt-wrapper-block .custom-video-wrapper .custom-video-section img:hover {
    border: 1px solid var(--color-primary);
}

.video-txt-wrapper-block .custom-video-wrapper .custom-txt-block ul {
    width: 91%;
    padding-left: 2.5rem;
}

.video-txt-wrapper-block .custom-video-wrapper .custom-video-section img {
    width: 100%;
    height: auto;
    cursor: pointer;
}

.custom-popup-view-video.visible {
    display: block;
    max-width: 60%;
}

.custom-video-popup-close-cta .vimeo-close.popup-close {
    border: none;
}

@media(max-width: 390px) {
    .custom-popup-view-video .popup-content {
        padding: 0 0 20px 0;
    }

    .custom-popup-view-video {
        margin: 10px auto;
    }

    .externalpopup .popup-content {
        padding: 0 0 20px 0;
    }

    .externalpopup {
        margin: 10px auto;
    }
}

@media(max-width: 1024px) {
    .custom-popup-view-video .popup-close {
        right: 0;
        top: -20px;
    }
}

.custom-popup-view-video {
    width: 90%;
}

.custom-popup-view-video .popup-close {
    position: absolute;
    width: 16px;
    height: 16px;
    background-image: url(../images/popup-close.png);
    background-size: 16px;
    right: -25px;
    top: 5px;
    display: inline-block;
    z-index: 151;
    opacity: 1;
}

.vid_diagnosis_support {
    max-height: calc(80dvh - 1rem);
    top: 50%;
    z-index: 9999;
}

@media(max-width: 767px) {
    .custom-popup-view-video .popup-close {
        right: 0;
        top: -20px;
    }
    .custom-popup-view-video .vid_diagnosis_support {
        max-height: calc(80dvh - 1rem);
    }
}

@media only screen and (max-width: 767px) and (orientation: landscape) {
    .custom-popup-view-video .popup-close {
        right: 0;
        top: -20px;
    }
     .custom-popup-view-video.vid_diagnosis_support.visible {
        max-width: 60%;
    }
}
@media(max-width: 991px) {
    .custom-popup-view-video.vid_diagnosis_support.visible {
        max-width: 100%;
    }
}
@media(min-width: 2000px) {
.custom-popup-view-video.visible{
    max-width: 800px; 
}
}
@media (min-height: 360px) and (max-height: 500px) {
    .custom-popup-view-video.vid_diagnosis_support.visible {
        max-width: 60%;
    }
}