/* Video reels */
.video-stories-popup {
    position: fixed;
    inset: 0;
    z-index: 99999999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}

.video-stories-popup.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.video-stories-popup__backdrop {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(83, 115, 129, 0.88),
            rgba(30, 23, 21, 0.88),
            rgba(103, 67, 31, 0.88)
        );
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.video-stories-popup__viewer {
    position: relative;
    z-index: 2;
    width: min(498px, calc(100vw - 120px));
    height: calc(100vh - 44px);
    max-height: 900px;
    overflow: hidden;
    background: #111;
    border-radius: 18px;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.35);
    touch-action: pan-y;
}

.video-stories-popup__videos {
    position: absolute;
    inset: 0;
}

.video-stories-popup__video {
    position: absolute;
    inset: 0;
    display: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
}

.video-stories-popup__video.is-active {
    display: block;
}

.video-stories-popup__cta {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 28px;
    z-index: 7;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 48px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #111;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s;
}

.video-stories-popup__cta:hover {
    background: #fff;
}


/*
 * Progress
 */

.video-stories-popup__progress {
    position: absolute;
    z-index: 5;
    top: 21px;
    left: 40px;
    right: 40px;
    display: flex;
    gap: 6px;
}

.video-stories-popup__progress-item {
    position: relative;
    flex: 1;
    height: 2px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.38);
    border-radius: 999px;
}

.video-stories-popup__progress-fill {
    position: absolute;
    inset: 0;
    width: 0;
    background: #fff;
    border-radius: inherit;
}


/*
 * Video controls
 */

.video-stories-popup__controls {
    position: absolute;
    z-index: 6;
    top: 39px;
    right: 25px;
    display: flex;
    align-items: center;
    gap: 11px;
}

.video-stories-popup__control {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    line-height: 0;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.video-stories-popup__control:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
    border-radius: 3px;
}


/*
 * Mute / unmute icons
 */

.video-stories-popup__icon {
    display: none;
    flex-shrink: 0;
}

.video-stories-popup__icon path {
    fill: none;
    stroke: #fff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.video-stories-popup__icon--muted {
    width: 24px;
    height: 24px;
}

.video-stories-popup__icon--unmuted {
    width: 11px;
    height: 16px;
}

.video-stories-popup__mute.is-muted
.video-stories-popup__icon--muted {
    display: block;
}

.video-stories-popup__mute.is-muted
.video-stories-popup__icon--unmuted {
    display: none;
}

.video-stories-popup__mute:not(.is-muted)
.video-stories-popup__icon--muted {
    display: none;
}

.video-stories-popup__mute:not(.is-muted)
.video-stories-popup__icon--unmuted {
    display: block;
}


/*
 * Play / pause icons
 */

.video-stories-popup__play-icon {
    display: none;
    flex-shrink: 0;
}

.video-stories-popup__play-icon path {
    fill: none;
    stroke: #fff;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.video-stories-popup__play-icon--pause {
    width: 14px;
    height: 22px;
}

.video-stories-popup__play-icon--pause path {
    stroke-width: 2.4;
}

.video-stories-popup__play-icon--play {
    width: 16px;
    height: 20px;
}

.video-stories-popup__play-icon--play path {
    stroke-width: 2;
}

.video-stories-popup__play.is-playing
.video-stories-popup__play-icon--pause {
    display: block;
}

.video-stories-popup__play.is-playing
.video-stories-popup__play-icon--play {
    display: none;
}

.video-stories-popup__play:not(.is-playing)
.video-stories-popup__play-icon--pause {
    display: none;
}

.video-stories-popup__play:not(.is-playing)
.video-stories-popup__play-icon--play {
    display: block;
}


/*
 * Share
 */

.video-stories-popup__share-icon {
    display: block;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

.video-stories-popup__share-icon path {
    fill: none;
    stroke: #fff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.video-stories-popup__share.is-copied {
    opacity: 0.55;
}


/*
 * Close
 */

.video-stories-popup__close {
    position: absolute;
    z-index: 7;
    top: 20px;
    right: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    line-height: 0;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.video-stories-popup__close:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 4px;
    border-radius: 3px;
}

.video-stories-popup__close:hover
.video-stories-popup__close-icon {
    opacity: 0.7;
}

.video-stories-popup__close-icon {
    display: block;
    width: 22px;
    height: 23px;
    transition: opacity 0.2s ease;
}

.video-stories-popup__close-icon path {
    fill: none;
    stroke: #fff;
    stroke-width: 3;
    stroke-linecap: round;
}


/*
 * Previous / next arrows
 */

.video-stories-popup__arrow {
    position: absolute;
    z-index: 4;
    top: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #fff;
    line-height: 0;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transform: translateY(-50%);
    transition:
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

.video-stories-popup__arrow svg {
    display: block;
    flex-shrink: 0;
    width: auto;
    height: 23px;
}

.video-stories-popup__arrow path {
    fill: #b5935b;
    stroke: #b5935b;
    transition:
        fill 0.2s ease,
        stroke 0.2s ease;
}

.video-stories-popup__arrow:hover:not(:disabled) {
    background-color: #f8edd0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
}

.video-stories-popup__arrow:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 4px;
}

.video-stories-popup__arrow:disabled {
    cursor: default;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: none;
}

.video-stories-popup__arrow:disabled path {
    fill: #3b3e3f;
    stroke: #3b3e3f;
}

.video-stories-popup__arrow--prev {
    left: calc(50% - 315px);
}

.video-stories-popup__arrow--next {
    right: calc(50% - 315px);
}


body.video-stories-open {
    overflow: hidden;
}


/*
 * Mobile
 */

@media only screen and (max-width: 700px) {

    .video-stories-popup {
        padding: 0;
    }

    .video-stories-popup__cta {
        left: 50%;
        right: auto;
        bottom: 88px;
        width: calc(100% - 32px);
        max-width: 360px;
        height: 44px;
        padding: 0 20px;
        transform: translateX(-50%);
    }

    .video-stories-popup__viewer {
        width: 100%;
        height: 100%;
        max-height: none;
        border-radius: 0;
    }

    .video-stories-popup__progress {
        top: 15px;
        left: 12px;
        right: 12px;
    }

    /*
     * Leave space for the close button.
     */

    .video-stories-popup__controls {
        top: 43px;
        right: 52px;
    }

    .video-stories-popup__close {
        top: 43px;
        right: 16px;
    }

    .video-stories-popup__arrow {
        top: auto;
        bottom: 24px;
        transform: none;
    }

    .video-stories-popup__arrow--prev {
        left: 18px;
    }

    .video-stories-popup__arrow--next {
        right: 18px;
    }
}

.wfWeatherNews.news_number_2.reels-active {
    position: relative;
}

.wfWeatherNews.news_number_2.reels-active::before {
    content: "";
    position: absolute;
    top: 12px;
    right: 12px;

    width: 30px;
    height: 30px;

    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);

    z-index: 5;
    pointer-events: none;
}

.wfWeatherNews.news_number_2.reels-active::after {
    content: "";
    position: absolute;
    top: 17px;
    right: 17px;

    width: 20px;
    height: 20px;

    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 6.33334V14.6667' stroke='white' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M4.33331 4.66666V16.3333' stroke='white' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M16 3H9.33329C8.41282 3 7.66663 3.74619 7.66663 4.66667V16.3333C7.66663 17.2538 8.41282 18 9.33329 18H16C16.9204 18 17.6666 17.2538 17.6666 16.3333V4.66667C17.6666 3.74619 16.9204 3 16 3Z' stroke='white' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");

    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;

    z-index: 6;
    pointer-events: none;
}