.component-video-overlay {
    --overlay-display: none;
    --overlay-background-color: transparent;
    --overlay-padding: var(--site-padding-horizontal);
    --overlay-border-radius: 16px;
    --overlay-opacity: 0;

    &[data-state="opening"] {
        --overlay-display: flex;
    }

    &[data-state="opened"] {
        --overlay-display: flex;
        --overlay-opacity: 1;
        --overlay-background-color: rgb(from var(--color-btm-dark-blue) r g b / 0.5);
    }

    &[data-state="closing"] {
        --overlay-display: flex;
        --overlay-opacity: 0;
        --overlay-background-color: transparent;
    }

    &[data-state="closed"] {
    }

    @media (width < 576px) {
        --overlay-padding: 0;
        --overlay-border-radius: 0;
    }

    container-type: inline-size;
    container-name: video-overlay;
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: var(--overlay-display);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 var(--overlay-padding);
    overflow: auto;
    overscroll-behavior: contain;
    transition: all .3s linear;
    background-color: var(--overlay-background-color);

    .video-wrapper {
        position: relative;
        display: grid;
        grid-template-areas: "stack";
        width: 100%;
        max-width: 1280px;
        aspect-ratio: 16/9;
        border-radius: var(--overlay-border-radius);
        overflow: hidden;
        opacity: var(--overlay-opacity);
        transition: all .3s linear;
        background-color: rgb(from var(--color-btm-dark-blue) r g b / 0.5);

        .video-close {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            grid-area: stack;
            place-self: start end;
            width: 48px;
            height: 48px;
            margin: 16px;
            padding: 0;
            border: 0;
            border-radius: 50%;
            box-shadow: 0 0 0 2px rgb(from #fff r g b / 0.25);
            background-color: rgb(from var(--color-btm-dark-blue) r g b / 0.5);

            &:before {
                content: '';
                display: block;
                width: 24px;
                height: 24px;
                background-color: rgb(from var(--color-btm-orange) r g b / 1);
                mask: url('/assets/svg/close-6ltwXpU.svg') no-repeat center center / contain;
            }
        }

        .video-container {
            grid-area: stack;
            width: 100%;
            aspect-ratio: 16/9;

            video {
                width: 100%;
                aspect-ratio: 16/9;
                border-radius: var(--overlay-border-radius);
            }
        }
    }
}
