.videos {
    position: relative;
    margin: 120px 0 160px;
}

.home .videos {
    margin: 72px 0 160px;
}

.videos .video--background {
    position: absolute;
    top: -120px;
    z-index: -1;
    width: 100%;
    height: 87.5%;
    background: var(--apricot);
}

.home .videos .video--background {
    top: -72px;
    height: 80%;
}

.videos__title--wrapper {
    margin-bottom: 20px;
}

.videos__title {
    text-align: center;
    color: var(--gold);
    margin-bottom: 0;
}

.videos__subtitle--wrapper {
    margin-bottom: 80px;
}

.videos__subtitle {
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 0;
}

.videos__swiper--wrapper {
    margin-top: 80px;
}

.videos__swiper {
    height: 100%;
}

.videos__swiper .swiper-slide {
    padding: 0;
    max-width: 650px;
    transform-origin: center left;
}

.videos__swiper .swiper-slide.swiper-slide-active {
    transform-origin: center center;
}

.videos__swiper .swiper-slide.swiper-slide-next {
    transform-origin: center right;
}

.videos__swiper .plyr {
    position: relative;
    height: 100%;
}

.videos__swiper .swiper-slide .plyr {
    pointer-events: none;
}

.videos__swiper .swiper-slide.swiper-slide-active .plyr {
    pointer-events: auto;
}

.videos__swiper .videos__video {
    opacity: 0;
}

.videos__swiper .plyr__poster {
    background-size: cover;
}

.videos__swiper .swiper-slide-active .videos__video, .videos__swiper .swiper-slide-prev .videos__video, .videos__swiper .swiper-slide-next .videos__video {
    opacity: 1;
}

.videos__swiper .swiper-slide .plyr--video, .videos__swiper .swiper-slide-active .plyr--video.plyr--playing, .videos__swiper .swiper-slide-active .plyr--video.plyr--paused {
    overflow-x: visible;
    overflow-y: hidden;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.videos__swiper .swiper-slide-active .plyr--video.plyr--stopped {
    overflow: visible;
}

.videos__swiper .swiper-slide .plyr--video::-webkit-scrollbar {
    display: none;
}

.videos__swiper .swiper-slide .plyr__video-wrapper {
    position: static;
}

.videos__swiper .swiper-slide .plyr__poster {
    top: -0.5%;
    height: 100.5%;
    width: 100.25%;
}

.videos__swiper .swiper-slide.swiper-slide-prev .plyr__poster {
    left: -0.25%;
}

.videos__swiper .swiper-slide .plyr--paused iframe, .videos__swiper .swiper-slide .plyr--playing iframe {
    top: -50%;
    height: 200%;
}

.videos__swiper .swiper-slide .plyr--stopped iframe {
    top: 0%;
    height: 100%;
}

.videos__swiper .swiper-slide .video__wrapper {
    height: 100%;
    width: 100.25%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 15;
    background: var(--black);
    opacity: 0.2;
    visibility: visible;
}

.videos__swiper .swiper-slide.swiper-slide-prev .video__wrapper {
    left: -0.25%;
}

.videos__swiper .swiper-slide-active .video__wrapper {
    opacity: 0;
    visibility: hidden;
}

.videos__swiper .swiper-pagination {
    position: relative;
    bottom: 0;
    display: flex;
    justify-content: space-around;
    margin-bottom: 30px;
    cursor: pointer;
}

.videos__swiper .bullet-number {
    width: 100%;
    height: auto;
    background: none;
    font-family: var(--font-family-heading);
    color: var(--text);
    font-size: 24px;
    line-height: 32.5px;
    letter-spacing: 0.02em;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    opacity: 1;
    transition: all ease 300ms;
}

.videos__swiper.swiper-container-horizontal>.swiper-pagination-bullets .bullet-number {
    margin: 0;
}

.videos__swiper .bullet-number.swiper-pagination-bullet-active {
    color: var(--gold);
    border-bottom: 1px solid var(--gold);
}

.videos__video {
    height: 100%;
}

.videos__play-button {
    position: absolute;
    z-index: 20;
    top: 50%;
    left: 50%;
    background: none;
    border: none;
    transform: translate(-50%, -50%);
}

.videos.alternate {
    margin: 120px 0 160px;
}

.videos.alternate .videos__content {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.videos.alternate .videos__title, .videos.alternate .videos__subtitle {
    text-align: left;
}

.videos.alternate .videos__subtitle--wrapper {
    margin-bottom: 0;
}

.videos.alternate .border-remover {
    position: absolute;
    z-index: 50;
    background: var(--white);
}

.videos.alternate .border-remover.top {
    top: -5px;
    left: -5px;
    width: 102%;
    height: 10px;
}

.videos.alternate .border-remover.left {
    top: -5px;
    left: -5px;
    width: 10px;
    height: 102%;
}

.videos.alternate .border-remover.right {
    top: -5px;
    right: -5px;
    width: 10px;
    height: 102%;
}

.videos.alternate .border-remover.bottom {
    bottom: -5px;
    left: -5px;
    width: 103%;
    height: 10px;
}

.videos.alternate .videos__video--wrapper__outer {
    position: relative;
    max-height: 366px;
    aspect-ratio: 16 / 9;
}

.videos.alternate .videos__swiper {
    position: absolute;
    width: 62.5vw;
    overflow: hidden;
    cursor: none;
}

.videos.alternate .videos__swiper .plyr {
    opacity: 1;
}

.videos.alternate .videos__swiper .plyr--youtube.plyr--paused.plyr__poster-enabled:not(.plyr--stopped) .plyr__poster {
    display: block;
}

.videos.alternate .swiper-button-prev:after, .videos.alternate .swiper-button-next:after {
    content: '';
}

.videos.alternate .swiper-button-prev, .videos.alternate .swiper-button-next {
    top: unset;
    bottom: 0;
}

.videos.alternate .swiper-button-next {
    left: 70px;
    right: unset;
}

@media (max-width: 991px) {
    .videos {
        margin: 80px 0 120px;
    }

    .videos .video--background {
        top: -80px;
    }

    .videos.alternate {
        margin: 80px 0 120px;
    }

    .videos.alternate .videos__subtitle--wrapper {
        margin-bottom: 20px;
    }

    .videos.alternate .swiper-navigation {
        display: flex;
        height: auto;
        margin-bottom: 50px;
    }

    .videos.alternate .swiper-button-prev, .videos.alternate .swiper-button-next {
        position: static;
        height: 44px;
        margin-top: 0;
    }

    .videos.alternate .swiper-button-prev {
        margin-right: 55px;
    }

    .videos.alternate .videos__swiper {
        width: 100%;
        overflow: visible;
    }
}

@media (max-width: 767px) {
    .videos__title--wrapper {
        margin-bottom: 10px;
    }

    .videos__subtitle--wrapper {
        margin-bottom: 60px;
    }

    .videos__swiper .swiper-slide {
        pointer-events: none;
        transform-origin: left 40%;
        max-height: 311px;
    }

    .videos__swiper .swiper-slide.swiper-slide-active {
        pointer-events: auto;
    }

    .videos__swiper .swiper-slide.swiper-slide-next {
        transform-origin: right 40%;
    }

    .videos__swiper .swiper-pagination {
        margin-bottom: 40px;
    }

    .videos__swiper .plyr {
        height: 311px;
    }

    .videos__swiper .plyr--video.plyr--stopped .plyr__controls {
        z-index: 1;
    }

    .videos__swiper .swiper-slide .plyr__poster {
        top: -0.75%;
        left: -0.75%;
        height: 101.5%;
        width: 101.5%;
    }

    .videos__play-button svg {
        width: 45px !important;
        height: 45px !important;
    }

    .videos.alternate .videos__swiper .swiper-slide {
        width: 325px;
    }

    .videos.alternate .videos__swiper .plyr, .videos.alternate .videos__video--wrapper {
        height: 222px;
    }
}