.video-wrap {
    width: 100%;
    max-width: 980px;
    min-width: 0;
    margin: 2rem auto;
    padding: 0 1rem;
    box-sizing: border-box;
}

.video-wrap .video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: #000;
}

/* The YouTube IFrame API replaces #youtube-player with an iframe. */
.video-wrap .video-wrapper>iframe,
.video-wrap .video-wrapper>#youtube-player {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

/* The hidden attribute must override display:flex. */
.video-wrap .video-cta[hidden] {
    display: none !important;
}

.video-wrap .video-cta {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.92);
    color: #fff;
    text-align: center;
}

.video-wrap .video-cta-content {
    box-sizing: border-box;
    width: 100%;
    max-width: 550px;
}

.video-wrap .video-cta-content h2 {
    margin: 0 0 1rem;
    color: #fff;
    font-size: clamp(1.3rem, 3vw, 2rem);
    font-weight: 700;
    line-height: 1.25;
}

.video-wrap .video-cta-content p {
    margin: 0 0 1.5rem;
    color: #fff;
    font-size: 1rem;
    line-height: 1.5;
}

.video-wrap .video-cta-button {
    display: inline-block;
    box-sizing: border-box;
    padding: 0.85rem 1.5rem;
    border: 0;
    border-radius: 4px;
    background: #fff;
    color: #111;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.video-wrap .video-cta-button:hover,
.video-wrap .video-cta-button:focus {
    background: #e8e8e8;
    color: #111;
    text-decoration: none;
}

.video-wrap .video-cta-button:focus-visible {
    outline: 3px solid #ffcc00;
    outline-offset: 4px;
}

/* Reserved for the optional dismissible pause CTA. */
.video-wrap .video-cta-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.75rem;
    min-height: 2.75rem;
    padding: 0.25rem;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.video-wrap .video-cta-close[hidden] {
    display: none !important;
}

.video-wrap .video-cta-close:focus-visible {
    outline: 3px solid #ffcc00;
    outline-offset: 3px;
}

@media (max-width: 480px) {
    .video-wrap .video-cta {
        padding: 1rem;
    }

    .video-wrap .video-cta-content h2 {
        margin-bottom: 0.5rem;
        font-size: 1.2rem;
    }

    .video-wrap .video-cta-content p {
        margin-bottom: 1rem;
        font-size: 0.9rem;
    }

    .video-wrap .video-cta-button {
        padding: 0.65rem 1rem;
        font-size: 0.9rem;
    }
}