html.accu-video-pop-up-open {
    overflow-y: hidden !important;
}

.accu-open-video-pop-up {
    cursor: pointer;
}

html.accu-video-pop-up-open a#scrollUp {
    display: none !important;
}

/* Modal background */
#accu-video-pop-up-overlay {

    --video-overlay-bg-color: rgba(0, 0, 0, 0.95);
    --video-max-width: 70%;
    --video-tablet-max-width: 80%;
    --video-mobile-max-width: 96%;

    /* Hidden by default */
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: var(--video-overlay-bg-color, rgba(0, 0, 0, 0.95));

    /* Center modal vertically & horizontally */
    align-items: center;
    justify-content: center;

}

/* When active, fade in */
#accu-video-pop-up-overlay.active {
    display: flex;
}

/* Modal */
#accu-video-pop-up-overlay .accu-video-pop-up {
    width: 100%;
    max-width: var(--video-max-width, 70%);
    position: relative;
}

/* Video container to maintain 16:9 */
#accu-video-pop-up-overlay .accu-video-pop-up .accu-video-container {
    position: relative;
    width: 100%;
    /* 9 ÷ 16 = 0.5625 → 56.25% */
    padding-bottom: 56.25%;
    height: 0;
    margin: 0 auto;
}

#accu-video-pop-up-overlay .accu-video-pop-up .accu-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
}

@media only screen and (max-height: 600px) {
    #accu-video-pop-up-overlay .accu-video-pop-up .accu-video-container {
        /* limit height to 80% of viewport */
        max-height: 80vh;
        height: 100%;
        /* remove fixed padding trick */
        padding-bottom: 0;
        /* modern browsers maintain ratio automatically */
        aspect-ratio: 16 / 9;
    }
}

@media only screen and (max-width: 1024px) {
    #accu-video-pop-up-overlay .accu-video-pop-up {
        max-width: var(--video-tablet-max-width, 80%);
    }
}

@media only screen and (max-width: 480px) {
    #accu-video-pop-up-overlay .accu-video-pop-up {
        max-width: var(--video-mobile-max-width, 96%);
    }
}