/*==============================*/
/*=====----- TEMPLATE -----=====*/
/*==============================*/

.video-slider {
    position: relative;
    max-width: 1138px;
    margin: 0 auto 80px;
    color: var(--white);
    opacity: 1;
    transition: opacity var(--transition);
}

.social-videos-panel .video-slider {
    margin: 0;
}

.video-slider .glide__arrows {
    position: absolute;
    inset: 50% -25px auto -25px;
    z-index: 2;
    transform: translateY(-50%);
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    pointer-events: none;
}

.video-slider .glide__arrow {
    width: 50px;
    height: 50px;
    margin: 0;
    pointer-events: all;
}

.video-slider .glide__bullets {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 0 20px;
    margin-top: 12px;
}

.video-slider .glide__bullet {
    display: block;
    width: 12px;
    aspect-ratio: 1;
    padding: 0;
    margin: 0;
    border: 1px solid #A5A5A5;
    border-radius: 50%;
    background-color: transparent;
    transition: background-color var(--transition);
}

.video-slider .glide__bullet--active {
    background-color: #A5A5A5;
}

.video-slider .glide__track {
    position: relative;
    z-index: 1;
}

.video-slider .glide__slides {
    padding: 8px 0;
}

/*============================*/
/*=====----- SLIDES -----=====*/
/*============================*/

.video-slider .slide,
.video-slider .video-cont,
.video-slider .plyr {
    position: relative;
    z-index: 1;
    border-radius: 8px;
}

.video-slider .plyr iframe {
    aspect-ratio: 9 / 16;
    /* width: auto !important; */
}

.video-slider .slide {
    border-radius: 8px;
    overflow: hidden;
}

.video-slider .video-cont {
    position: relative;
}

.video-slider .video-cont::before {
    position: absolute;
    inset: 0 0 auto 0;
    z-index: 2;
    display: block;
    height: 92px;
    background: linear-gradient(to bottom, rgba(0,0,0,1), rgba(0,0,0,1) 33%, rgba(0,0,0,0));
    content: '';
    pointer-events: none;
    opacity: 1;
    transition: opacity var(--transition);
}

.video-slider .video-cont img {
    border-radius: 8px;
}

.video-slider .slide .profile-graphic {
    position: absolute;
    top: 10px;
    left: 10px;
}

.video-slider .slide.no-profile-graphic .video-cont::before {
    display: none;
}

.video-slider .slide .content-section {
    padding-bottom: 30px;
}



.video-slider .plyr {
    --plyr-color-main: var(--purple);
}

.video-slider .profile-link,
.video-slider .profile-graphic.no-link {
    position: absolute;
    inset: 11px auto auto 9px;
    z-index: 3;
    display: block;
    padding: 0;
    background: none !important;
    opacity: 1;
    transition: opacity var(--transition);
}

.video-slider .profile-graphic {
    height: 50px;
    pointer-events: none;
}

.video-slider .plyr {
    height: 100%;
    width: auto;
    aspect-ratio: 9 / 16;
    margin: 0 auto;
}

.video-slider .content-section {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 2;
    padding: 20px 25px 60px;
    text-shadow: 0 4px 16px var(--black);
    pointer-events: none;
    opacity: 1;
    transition: opacity var(--transition);
}

.video-slider .slide-title {
    font-weight: var(--font-weight-heavy);
    font-size: 20px;
    line-height: 1.3;
    color: inherit;
}

.video-slider .plyr__progress__container {
    display: none;
    padding-right: 10px;
}

.video-slider .plyr__controls {
    justify-content: flex-start;
}

.video-slider .plyr__volume {
    min-width: 40px;
    width: auto;
}

.video-slider .plyr__controls .plyr__controls__item:first-child {
    margin-right: 0;
}

/*----- video playing -----*/

.video-slider .slide.playing .video-cont::before,
.video-slider .slide.playing .content-section,
.video-slider .slide.playing .profile-link,
.video-slider .slide.playing .profile-graphic.no-link {
    opacity: 0;
    pointer-events: none;
}

/*===================================*/
/*=====----- MEDIA QUERIES -----=====*/
/*===================================*/

@media (min-width: 40em) {
    .video-slider {
        padding: 0 20px;
    }
}

@media (min-width: 64em) {
    .video-slider .profile-link,
    .video-slider .profile-graphic.no-link {
        inset: 11px auto auto 11px;
    }

    .video-slider .profile-graphic {
        height: 65px;
    }

    .video-slider .content-section {
        padding: 23px 29px 60px;
    }
    
    .video-slider .slide-title {
        font-size: 22px;
    }
}

@media (min-width: 75em) {
    .video-slider .glide__arrows {
        display: flex;
    }

    .video-slider .plyr__progress__container {
        display: block;
    }

    .social-videos-panel .video-slider .glide__arrows,
    .social-videos-panel .video-slider .plyr__progress__container {
        display: none;
    }
}

@media (min-width: 90em) {
    .video-slider .glide__arrows {
        left: -69px;
        right: -69px;
    }
}

/* overlay */
.video-slider .overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    background: #262626;
    z-index: 999;
    top: 0;
    left: 0;
}

.video-slider .overlay .video-wrapper {
    width: auto;
    height: 90vh;
    position: relative;
    aspect-ratio: 9/16;
    margin: auto 0;
}

.video-slider .overlay .overlay-profile-link {
    position: absolute;
    top: 35px;
    left: 10px;
    z-index: 9;
}

.video-slider .overlay .overlay-profile-link:hover {
    background: transparent;
}

.video-slider .overlay .video {
    aspect-ratio: 9/16;
    display: flex;
    position: relative;
    justify-content: center;
    width: 100%;
    max-height: 100vh;
    margin: 0 auto;
}

.video-slider .overlay .close {
    position: absolute;
    cursor: pointer;
    margin-left: -20px;
    padding-right: 20px;
    right: -60px
}

.video-slider .overlay .close svg {
    height: 35px;
    fill: white;
    position: absolute;
}

.video-slider .overlay .arrow {
    display: flex;
    height: auto;
    align-items: center;
    padding: 0 40px;
    font-size: 26px;
    cursor: pointer;
}

@media (max-width: 40em) {
    .video-slider .overlay .video {
        padding: 0;
        padding-top: 35px;
    }

    .video-slider .overlay .close svg {
        height: 20px;
    }

    .video-slider .overlay .arrow {
        position: absolute;
        z-index: 9;
        padding: 0;
        top: calc(50% + 35px);
        transform: translateY(-50%);
        width: 75px;
        height: 75px;
    }

    .video-slider .overlay .arrow.prev {
        left: 5px;
        padding-left: 30px;
    }

    .video-slider .overlay .arrow.next {
        right: 5px;
        padding-left: 30px;
    }

    .video-slider .overlay .close {
        position: absolute;
        top: -28px;
        right: 20px;
        margin: 0;
        padding: 0;
    }
}

/* player */

.video-slider .controls {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    position: absolute !important;
    bottom: 0;
    left: 0;
    z-index: 9 !important;
}

.video-slider .controls-wrapper {
    position: absolute;
    bottom: 0;
    left: 0;
}

.plyr--video .plyr-actions {
    display: flex !important;
    flex-direction: row !important;
    background: none !important;
    position: relative;
    padding-left: 23px;
    padding-bottom: 10px;
}

.video-slider .action-wrapper {
    display: flex;
    justify-content: left;
    padding-left: 25px;
    padding-bottom: 15px;
}

.video-slider .plyr__control {
    bottom: auto;
}

.video-slider .plyr__control svg {
    height: 20px;
    width: 20px;
}

.video-slider .controls-content {
    position: relative;
    z-index: 9;
    padding-left: 30px;
    padding-bottom: 40px;
    text-align: left;
}

.video-slider .controls-content .title {
    font-size: 22px;
    line-height: 26px;
    font-weight: 700;
}

.video-slider .controls-content .description {
    padding-top: 10px;
    line-height: 24px;
    font-size: 16px;
}

.video-slider .controls-content .link {
    margin-top: 20px;
}


.video-slider .progress-wrapper {
    display: flex;
    justify-content: space-between;
    /* height: 100%; */
    width: 100%;
    max-width: 100%;
    position: absolute;
    z-index: 9;
    padding: 0 10px;
    top: 20px;
}

.video-slider .progress-wrapper .indicator {
    border: 1px solid white;
    z-index: 9;
    margin: 0 5px;
}

.video-slider .progress {
    width: 100%;
    height: 2px;
    margin: 0 2px;
    width: 100%;
    height: 3px;
    border-radius: 3px;
    z-index: 9999;
    display: flex;
    flex-grow: 1;
    background-image: -webkit-linear-gradient(left, 
        rgba(255,255,255) 0%,
        rgba(255,255,255) 50%,
        rgba(255,255,255,.5) 50.001%,
        rgba(255,255,255,.5) 100%
    );
    background-repeat: no-repeat;
    background-size: 200%;
    background-position: 100% 50%;
    animation-timing-function: linear;
    animation-delay: .2s;
}

.video-slider .progress.active {
    animation-name: Loader;
}

.video-slider .progress.paused {
    animation-play-state: paused;
}

.video-slider .progress.play {
    animation-play-state: running;
}

@-webkit-keyframes Loader {
    0%   { background-position: 100% 0; }
    100% { background-position: 0 0; }
}