.content-wvideo__container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8rem;
}

.content-wvideo__media {
    position: relative;
    z-index: 2;
}

.content-wvideo__intro-content {
    color: var(--c-dark);
}

.content-wvideo__heading {
    margin-bottom: 3rem;
}

.content-wvideo__btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    margin-top: 4rem;
}

.content-wvideo {
    padding-left: 2rem;
    padding-right: 2rem;
    position: relative;
}

.content-wvideo__media,
.content-wvideo__thumbnail {
    border-radius: 3rem;
}

.bg-Black .content-wvideo__heading h2,
.bg-Black .content-wvideo__intro-content,
.bg-Brown .content-wvideo__heading h2,
.bg-Brown .content-wvideo__intro-content {
    color: var(--c-white)
}

/* ============ Play trigger (thumbnail + play icon) ============ */

.content-wvideo__dots {
    position: absolute;
    top: 50%;
    left: 50%;
    width: calc(100% + 6rem);
    aspect-ratio: 663 / 595;
    min-height: 20rem;
    transform: translate(-40%, -50%);
    z-index: 0;
    pointer-events: none;
}

.content-wvideo__dots svg {
    display: block;
    width: 100%;
    height: 100%;
}

.content-wvideo__container.video--left .content-wvideo__dots {
    transform: translate(-15%, -50%);
    left: auto;
}

.content-wvideo__play {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    overflow: hidden;
    border-radius: 3rem;
}

.content-wvideo__thumbnail {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.4s ease;
}

.content-wvideo__play:hover .content-wvideo__thumbnail,
.content-wvideo__play:focus .content-wvideo__thumbnail {
    transform: scale(1.03);
}

.content-wvideo__play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10rem;
    height: 10rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-white);
    transition: transform 0.3s ease, background 0.3s ease;
    border-radius: 100px;
    background: var(--c-second);
}

.content-wvideo__play-icon svg {
    width: 36px;
    height: 41px;
    /* keeps the original 43:49 ratio intact at this width */
    transform: translateX(2px);
    /* visually recenters the right-pointing triangle */
}

.content-wvideo__play:hover .content-wvideo__play-icon,
.content-wvideo__play:focus .content-wvideo__play-icon {
    transform: translate(-50%, -50%) scale(1.1);
}

/* ============ Lightbox ============ */

.content-wvideo__lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.content-wvideo__lightbox.is-open {
    visibility: visible;
    opacity: 1;
}

.content-wvideo__lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
}

.content-wvideo__lightbox-inner {
    position: relative;
    width: min(112rem, 90vw);
    aspect-ratio: 16 / 9;
    z-index: 1;
    transform: scale(0.92) translateY(1rem);
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.content-wvideo__lightbox.is-open .content-wvideo__lightbox-inner {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.content-wvideo__lightbox-video {
    width: 100%;
    height: 100%;
}

.content-wvideo__lightbox-video :is(iframe, video) {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
    background: #000;
}

.content-wvideo__lightbox-close {
    position: absolute;
    top: -6rem;
    right: 0;
    width: 4.5rem;
    height: 4.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: var(--c-platform-white);
    color: var(--c-dark);
    cursor: pointer;
    transition: background 0.2s ease;
}

body.content-wvideo-lightbox-open {
    overflow: hidden;
}

@media (min-width: 992px) {
    .content-wvideo__container {
        grid-template-columns: repeat(2, 1fr);
        align-items: center;
    }

    .content-wvideo__container.video--right {
        & .content-wvideo__content {
            order: 1;
        }

        & .content-wvideo__media {
            order: 2;
        }
    }

    .content-wvideo__container.video--left {
        & .content-wvideo__content {
            order: 2;
        }

        & .content-wvideo__media {
            order: 1;
        }
    }
}

@media (max-width: 991px) {
    .content-wvideo__container {
        gap: 4rem;
    }

    .content-wvideo__dots,
    .content-wvideo__container.video--left .content-wvideo__dots {
        width: calc(100% + 3rem);
    }
}

@media (max-width: 767px) {
    .content-wvideo {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .content-wvideo__media,
    .content-wvideo__thumbnail {
        border-radius: 2rem;
    }

    .content-wvideo__container {
        gap: 3rem;
    }

    .content-wvideo__btn-group {
        margin-top: 3rem;
    }

    .content-wvideo__lightbox-close {
        right: 0;
        width: 3.5rem;
        height: 3.5rem;
        top: -4.5rem;
    }

    .content-wvideo__lightbox-close svg {
        width: 16px;
        height: 16px;
    }

    .content-wvideo__play-icon {
        width: 8rem;
        height: 8rem;
    }

    .content-wvideo__play-icon svg {
        width: 30px;
        height: 35px;
    }

    .content-wvideo__play {
        border-radius: 2rem;
    }

}

@media (max-width: 500px) {
    .content-wvideo__play-icon {
        width: 5.5rem;
        height: 5.5rem;
    }

    .content-wvideo__play-icon svg {
        width: 20px;
        height: 25px;
    }
}