.wp-block-ananeoo-advanced-video-popup,
.ananeoo-advanced-video-popup {
    width: var(--ananeoo-video-width, 100%);
    max-width: 100%;
    box-shadow: var(--ananeoo-video-shadow, none);
    transition: box-shadow 0.2s ease;
}

.wp-block-ananeoo-advanced-video-popup:hover,
.wp-block-ananeoo-advanced-video-popup:focus-within,
.ananeoo-advanced-video-popup:hover,
.ananeoo-advanced-video-popup:focus-within {
    box-shadow: var(--ananeoo-video-shadow-hover, var(--ananeoo-video-shadow, none));
}

.ananeoo-advanced-video-popup--align-left {
    margin-right: auto;
}

.ananeoo-advanced-video-popup--align-center {
    margin-left: auto;
    margin-right: auto;
}

.ananeoo-advanced-video-popup--align-right {
    margin-left: auto;
}

.ananeoo-advanced-video-popup__trigger {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: var(--ananeoo-video-radius, 0);
    overflow: hidden;
    background: #000;
    color: var(--ananeoo-video-play-color, #fff);
    cursor: pointer;
    box-shadow: none;
    appearance: none;
}

.ananeoo-advanced-video-popup.testi-thumb {
    --ananeoo-video-shadow: 10px 10px 20px 0px #a5a5a5;
    --ananeoo-video-shadow-hover: 4px 2px 14px 0px rgba(0, 0, 0, 0.2);
}

.ananeoo-advanced-video-popup.video-frame.founder-video-message__video-popup {
    --ananeoo-video-shadow: 10px 10px 30px 0px rgba(0, 0, 0, 0.4);
    --ananeoo-video-shadow-hover: 4px 2px 14px 0px rgba(0, 0, 0, 0.2);
}

.ananeoo-advanced-video-popup.video-frame.founder-video-message__video-popup:hover .ananeoo-advanced-video-popup__overlay,
.ananeoo-advanced-video-popup.video-frame.founder-video-message__video-popup:focus-within .ananeoo-advanced-video-popup__overlay {
    opacity: 0;
}

.ananeoo-advanced-video-popup__trigger:disabled {
    cursor: default;
    opacity: 0.72;
}

.ananeoo-advanced-video-popup__trigger:focus-visible {
    outline: 3px solid #0e6ec2;
    outline-offset: 4px;
}

.ananeoo-advanced-video-popup__media {
    display: block;
    width: 100%;
    aspect-ratio: var(--ananeoo-video-ratio, 16 / 9);
    background: #edf5f8;
}

.ananeoo-advanced-video-popup__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: var(--ananeoo-video-fit, cover);
}

.ananeoo-advanced-video-popup__placeholder {
    display: grid;
    min-height: 180px;
    place-items: center;
    padding: 24px;
    color: #003360;
    font-family: var(--font-heading, Poppins, Arial, sans-serif);
    font-weight: 700;
    text-align: center;
}

.ananeoo-advanced-video-popup__overlay {
    position: absolute;
    inset: 0;
    background: var(--ananeoo-video-overlay-color, #000);
    opacity: var(--ananeoo-video-overlay-opacity, 0.3);
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.ananeoo-advanced-video-popup__play {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    width: var(--ananeoo-video-play-size, 58px);
    height: var(--ananeoo-video-play-size, 58px);
    place-items: center;
    border-radius: 8px;
    color: var(--ananeoo-video-play-color, #fff);
    background: var(--ananeoo-video-play-background, rgba(0, 0, 0, 0.72));
    transform: translate(-50%, -50%);
    pointer-events: none;
}

span.ananeoo-advanced-video-popup__play {
    color: #fff !important;
}

.ananeoo-advanced-video-popup__play svg {
    width: 46%;
    height: 46%;
    color: #fff !important;
    fill: currentColor;
}

.ananeoo-advanced-video-popup__play svg path {
    fill: #fff !important;
}

.ananeoo-video-modal {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: grid;
    place-items: center;
    padding: clamp(18px, 2.8vw, 36px);
    opacity: 0;
    pointer-events: none;
}

.ananeoo-video-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.ananeoo-video-modal.is-closing {
    pointer-events: none;
}

.ananeoo-video-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.94);
    opacity: 1;
}

.ananeoo-video-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(var(--ananeoo-video-popup-width, 960px), calc(100vw - 58px));
    max-height: calc(100vh - 58px);
    opacity: 1;
    transform: none;
}

.ananeoo-video-modal__frame {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 0;
    background: #000;
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.5);
}

.ananeoo-video-modal__frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #000;
    opacity: 1;
    animation: none;
}

.ananeoo-video-modal__close {
    position: absolute;
    right: -12px;
    top: -12px;
    z-index: 2;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: #dcc27b;
    color: #23344d;
    cursor: pointer;
    font-size: 30px;
    line-height: 1;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

.ananeoo-video-modal__close:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

html.ananeoo-video-modal-open,
body.ananeoo-video-modal-open {
    overflow: hidden;
}

@media (max-width: 700px) {
    .ananeoo-video-modal {
        padding: 16px;
    }

    .ananeoo-video-modal__dialog {
        width: 100%;
        max-height: none;
    }

    .ananeoo-video-modal__close {
        right: 8px;
        top: 8px;
        width: 40px;
        height: 40px;
        font-size: 26px;
    }
}
