/* AB Sites — YouTube Modal */
.absites-yt-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.absites-yt-modal.is-open {
    display: flex;
    opacity: 1;
}

.absites-yt-modal__inner {
    position: relative;
    width: 100%;
    max-width: 960px;
    aspect-ratio: 16 / 9;
    background: #000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

/* Vertical (Shorts) — 9:16, height-driven so width follows automatically */
.absites-yt-modal__inner.is-vertical {
    width: auto;
    max-width: 90vw;
    height: 85vh;
    max-height: 85vh;
    aspect-ratio: 9 / 16;
}

.absites-yt-modal__inner iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Plain white X in the top-right corner of the viewport — no background, no border */
.absites-yt-modal .absites-yt-modal__close {
    appearance: none;
    -webkit-appearance: none;
    position: fixed;
    top: 16px;
    right: 20px;
    margin: 0;
    padding: 0;
    width: auto;
    height: auto;
    min-width: 0;
    min-height: 0;
    background: transparent;
    background-color: transparent;
    background-image: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    outline: none;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 40px;
    font-weight: 400;
    line-height: 1;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
    cursor: pointer;
    z-index: 100000;
}

.absites-yt-modal .absites-yt-modal__close:hover,
.absites-yt-modal .absites-yt-modal__close:focus,
.absites-yt-modal .absites-yt-modal__close:active {
    background: transparent;
    background-color: transparent;
    background-image: none;
    border: 0;
    box-shadow: none;
    outline: none;
    color: #fff;
    opacity: 0.85;
}

body.absites-yt-open {
    overflow: hidden;
}

@media (max-width: 600px) {
    .absites-yt-modal {
        padding: 10px;
    }
    .absites-yt-modal__inner.is-vertical {
        width: auto;
        max-width: 100%;
        height: auto;
        max-height: 85vh;
    }
    .absites-yt-modal .absites-yt-modal__close {
        top: 10px;
        right: 14px;
        font-size: 34px;
    }
}
