.cj-video-stories {
    padding: 32px 0 48px;
}

.cj-video-stories .cj-container {
    width: min(calc(100% - 120px), 1270px);
}

.cj-video-stories__frame {
    margin-top: 28px;
    padding-inline: 72px;
    position: relative;
}

.cj-video-stories__slider {
    overflow: hidden;
    padding: 0 4px 4px;
}

.cj-video-stories__slider .swiper-wrapper {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.cj-video-stories__slider.swiper-initialized .swiper-wrapper {
    display: flex;
    gap: 0;
}

.cj-video-stories__slider .swiper-slide {
    width: auto;
    min-width: 0;
}

.cj-video-stories__slider:not(.swiper-initialized) .swiper-slide:nth-child(n + 5) {
    display: none;
}

.cj-video-stories__slider.swiper-initialized .swiper-slide {
    display: block;
}

.cj-video-stories--single .cj-video-stories__slider .swiper-wrapper {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cj-video-card {
    height: 100%;
}

.cj-video-card__trigger,
.cj-video-card iframe {
    width: 100%;
    overflow: hidden;
    border: 2px solid rgba(10, 143, 232, .34);
    border-radius: 18px;
    background: #fff;
}

.cj-video-card__trigger {
    display: block;
    padding: 0;
    position: relative;
    cursor: pointer;
}

.cj-video-card__trigger img,
.cj-video-card iframe {
    display: block;
    width: 100%;
    aspect-ratio: 9 / 16;
    border: 0;
    border-radius: 16px;
    object-fit: cover;
}

.cj-video-card__play {
    width: 54px;
    height: 54px;
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    border-radius: 50%;
    background: var(--cj-blue, var(--journey-primary, #0a8fe8));
    box-shadow: 0 12px 25px rgba(10, 143, 232, .28);
    transform: translate(-50%, -50%);
}

.cj-video-card__play::before {
    content: "";
    width: 0;
    height: 0;
    position: absolute;
    left: 21px;
    top: 16px;
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
    border-left: 17px solid #fff;
}

.cj-video-stories__nav {
    width: 44px;
    height: 44px;
    position: absolute;
    top: 50%;
    z-index: 10;
    border: 0;
    border-radius: 50%;
    background: var(--cj-blue-dark, var(--journey-primary, #1579d6));
    box-shadow: 0 8px 22px rgba(41, 55, 101, .2);
    cursor: pointer;
    transform: translateY(-50%);
}

.cj-video-stories__nav::before {
    content: "";
    width: 13px;
    height: 13px;
    position: absolute;
    top: 50%;
    border-top: 3px solid #fff;
    border-right: 3px solid #fff;
}

.cj-video-stories__nav--prev {
    left: 0;
}

.cj-video-stories__nav--prev::before {
    left: 17px;
    transform: translateY(-50%) rotate(-135deg);
}

.cj-video-stories__nav--next {
    right: 0;
}

.cj-video-stories__nav--next::before {
    right: 17px;
    transform: translateY(-50%) rotate(45deg);
}

.cj-video-stories__nav.swiper-button-disabled {
    opacity: .35;
    pointer-events: none;
}

.cj-video-stories--single {
    margin: 0 auto clamp(42px, 6vw, 66px);
    padding: 0;
    position: relative;
    z-index: 1;
}

.cj-video-stories--single .cj-video-stories__frame {
    margin-top: clamp(24px, 3.4vw, 34px);
}

.cj-video-stories--single .cj-video-stories__nav--prev {
    left: 0;
}

.cj-video-stories--single .cj-video-stories__nav--next {
    right: 0;
}

@media (min-width: 850px) and (max-width: 1439px) {
    .cj-video-stories {
        padding: 30px 0 42px;
    }

    .cj-video-stories__frame {
        margin-top: 26px;
        padding-inline: 60px;
    }

    .cj-video-stories__nav--prev {
        left: 0;
    }

    .cj-video-stories__nav--next {
        right: 0;
    }
}

@media (max-width: 849px) {
    .cj-video-stories {
        padding: 24px 0 38px;
    }

    .cj-video-stories--single {
        margin-bottom: 12px;
        padding-bottom: 14px;
    }

    .cj-video-stories .cj-container {
        width: min(calc(100% - 44px), 540px);
    }

    .cj-video-stories__frame {
        margin-top: 22px;
        padding-inline: 0;
    }

    .cj-video-stories__slider .swiper-wrapper {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .cj-video-stories--single .cj-video-stories__slider .swiper-wrapper {
        grid-template-columns: 1fr;
    }

    .cj-video-card__trigger,
    .cj-video-card iframe {
        border-radius: 16px;
    }

    .cj-video-card__trigger img,
    .cj-video-card iframe {
        aspect-ratio: 4 / 5.2;
    }

    .cj-video-card__play {
        width: 58px;
        height: 58px;
    }

    .cj-video-card__play::before {
        left: 23px;
        top: 18px;
        border-top-width: 11px;
        border-bottom-width: 11px;
        border-left-width: 17px;
    }

    .cj-video-stories__nav {
        all: unset;
        box-sizing: border-box;
        width: 38px;
        height: 38px;
        position: absolute;
        top: 50%;
        z-index: 10;
        display: block;
        border: 3px solid rgba(255, 255, 255, .92);
        border-radius: 50%;
        background: linear-gradient(180deg, #28aaf2 0%, #0f86dc 100%);
        box-shadow: 0 3px 8px rgba(22, 137, 230, .18);
        transform: translateY(-50%);
        cursor: pointer;
    }

    .cj-video-stories__nav::before {
        content: "";
        width: 11px;
        height: 11px;
        position: absolute;
        top: 50%;
        left: 50%;
        right: auto;
        border-top: 2.5px solid #fff;
        border-right: 2.5px solid #fff;
    }

    .cj-video-stories__nav:hover,
    .cj-video-stories__nav:focus {
        border-color: rgba(255, 255, 255, .92);
        background: linear-gradient(180deg, #28aaf2 0%, #0f86dc 100%);
        box-shadow: 0 3px 8px rgba(22, 137, 230, .18);
        color: transparent;
        outline: none;
        transform: translateY(-50%);
    }

    .cj-video-stories__nav--prev {
        left: 2px;
    }

    .cj-video-stories__nav--next {
        right: 2px;
    }

    .cj-video-stories--single .cj-video-stories__frame {
        padding-inline: 0;
    }

    .cj-video-stories--single .cj-video-stories__nav--prev {
        left: 2px;
    }

    .cj-video-stories--single .cj-video-stories__nav--next {
        right: 2px;
    }

    .cj-video-stories__nav--prev::before {
        transform: translate(-35%, -50%) rotate(-135deg);
    }

    .cj-video-stories__nav--next::before {
        transform: translate(-65%, -50%) rotate(45deg);
    }
}
