.ruth2m-video-popup {
    padding: var(--wp--preset--spacing--80, 64px) var(--wp--preset--spacing--20, 16px);
    text-align: center;
}

.ruth2m-video-popup__block {
    width: 100%;
    max-width: 770px;
    margin: 0 auto;
    display: block;
    cursor: pointer;
    border-radius: 16px;
}

.ruth2m-video-popup__wrapper {
    position: relative;
    z-index: 1;
    margin-top: var(--wp--preset--spacing--80, 64px);
}

.ruth2m-video-popup__wrapper::before {
    content: '';
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    pointer-events: none;
    width: 0;
    height: 0;
    border-top: calc(var(--play-button-size) / 3.33) solid transparent;
    border-left: calc(var(--play-button-size) / 2.5) solid var(--wp--preset--color--base, #ffffff);
    border-bottom: calc(var(--play-button-size) / 3.33) solid transparent;
    margin-left: calc(var(--play-button-size) / 25);
    cursor: pointer;
    --play-button-size: 50px;
    --play-button-color: var(--wp--preset--color--base, #ffffff);
}

.ruth2m-video-popup__wrapper::after {
    content: '';
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    pointer-events: none;
    background: none;
    width: var(--play-button-size);
    height: var(--play-button-size);
    border: solid calc(var(--play-button-size) / 10) var(--wp--preset--color--base, #ffffff);
    border-radius: 100%;
    box-shadow: 1px 1px 3px #999999;
    cursor: pointer;
    --play-button-size: 64px;
    --play-button-color: var(--wp--preset--color--base, #ffffff);
}

.ruth2m-video-popup__wrapper-youtube::after,
.ruth2m-video-popup__wrapper-youtube::before {
    content: unset;
}

.ruth2m-video-popup__popup-main {
    width: 90%;
    height: 90vh;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.ruth2m-video-popup__popup {
    position: fixed;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.54);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    z-index: 99999;
    justify-content: center;
    align-items: center;
}

.ruth2m-video-popup__popup-close {
    color: var(--wp--preset--color--base, #ffffff);
    font-size: var(--wp--preset--font-size--h-3, 40px);
    cursor: pointer;
    position: absolute;
    right: 30px;
    top: 30px;
    z-index: 9;
}

.popup-open {
    overflow: hidden;
}


.ruth2m-video-popup__iframe {
    width: 100%;
    height: auto;
    z-index: -1;
    position: relative;
    aspect-ratio: 7/4;
    cursor: pointer;
    border-radius: 16px;
}

.ruth2m-video-popup__popup-iframe {
    width: 100%;
    height: auto;
    margin: 0 auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    aspect-ratio: 7/4;
    max-width: 1400px;
}

.ruth2m-video-popup__heading {
    font-size: var(--wp--preset--font-size--h-3, 40px);
    line-height: 1;
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--wp--preset--spacing--40, 32px);
    color: var(--wp--preset--color--neutral-900, #191919);
}

.ruth2m-title-content__cta {
    margin-top: var(--wp--preset--spacing--40, 32px);
}

@media (max-width:767px) {

    .ruth2m-video-popup__wrapper::after {
        --play-button-size: 70px;
    }

    .ruth2m-video-popup__wrapper::before {
        --play-button-size: 60px;
    }
}

@media (max-width:575px) {
    .ruth2m-video-popup__wrapper::after {
        --play-button-size: 50px;
    }

    .ruth2m-video-popup__wrapper::before {
        --play-button-size: 40px;
    }
}