/************
   Slider Vídeos Home
************/
.section_videos_home {
    width: 100%;
    position: relative;
    z-index: 0;
}

.section_videos_home .container {
    overflow: hidden;
}

.section_videos_home .splide__track {
    overflow: hidden;
}

.section_videos_home .splide__list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.section_videos_home .splide__slide {
    min-width: calc((100% - 80px) / 3);
    flex-shrink: initial;
    margin-right: 40px;
}

.section_videos_home .splide__gallery__button {
    padding: 0;
    border: none;
    width: 100%;
    padding-top: 56.25%;
    display: flex;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    background-color: var(--clr-cnn-grey-3);
    justify-content: center;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    -ms-border-radius: 4px;
    -o-border-radius: 4px;
}

.section_videos_home .splide__gallery__button img {
    position: absolute;
    top: 0;
    filter: brightness(1);
    -webkit-filter: brightness(1);
    transition: filter 0.3s;
    min-height: 100%;
    object-fit: cover;
    -webkit-transition: filter 0.3s;
    -moz-transition: filter 0.3s;
    -ms-transition: filter 0.3s;
    -o-transition: filter 0.3s;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.section_videos_home .splide__gallery__button::after {
    display: block;
    content: '';
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    background: url(../img/video.svg) no-repeat center center;
    background-size: 40px;
    filter: inherit;
    -webkit-filter: inherit;
    transition: filter 0.2s;
    -webkit-transition: filter 0.2s;
    -moz-transition: filter 0.2s;
    -ms-transition: filter 0.2s;
    -o-transition: filter 0.2s;
}

.section_videos_home .splide__gallery__button span {
    width: 100%;
    position: absolute;
    top: 0;
    color: #fff;
    z-index: 1;
    padding: 12px 32px;
    font-weight: 500;
    font-size: 16px;
    line-height: 22px;
    opacity: 0;
    transition: opacity 0.2s;
    -webkit-transition: opacity 0.2s;
    -moz-transition: opacity 0.2s;
    -ms-transition: opacity 0.2s;
    -o-transition: opacity 0.2s;
}

/* hover */
.section_videos_home .splide__gallery__button:hover img {
    filter: brightness(0.5);
    -webkit-filter: brightness(0.5);
}

.section_videos_home .splide__gallery__button:hover::after {
    filter: invert(100%) sepia(100%) saturate(0%) hue-rotate(132deg) brightness(103%) contrast(103%);
    -webkit-filter: invert(100%) sepia(100%) saturate(0%) hue-rotate(132deg) brightness(103%) contrast(103%);
}

.section_videos_home .splide__gallery__button:hover span {
    opacity: 1;
}


/* TABLET */

/* darken all (any by width, ipad pro portrait, ipad mini landscape and ipad pro landscape) */
@media (max-width: 991px),
all and (device-width: 1024px) and (device-height: 1366px) and (orientation:portrait),
all and (device-width: 1024px) and (device-height: 768px) and (orientation:landscape),
all and (device-width: 1366px) and (device-height: 1024px) and (orientation:landscape) {
    .section_videos_home .splide__gallery__button img {
        filter: brightness(0.5);
        -webkit-filter: brightness(0.5);
    }

    .section_videos_home .splide__gallery__button::after {
        filter: invert(100%) sepia(100%) saturate(0%) hue-rotate(132deg) brightness(103%) contrast(103%);
        -webkit-filter: invert(100%) sepia(100%) saturate(0%) hue-rotate(132deg) brightness(103%) contrast(103%);
    }

    .section_videos_home .splide__gallery__button span {
        opacity: 1;
    }

}


/* items on display */

/* 2 items on display (any by width and ipad pro portrait)*/
@media (max-width: 991px),
all and (device-width: 1024px) and (device-height: 1366px) and (orientation:portrait) {
    .section_videos_home .splide__slide {
        min-width: calc((100% - 40px) / 2);
    }
    .col--9.wrapper--sidebar-left .section_videos_home .splide__list {
        min-width: 100%;
    }
}

/* 3 items on display ('ipad mini landscape' and 'ipad pro landscape' )*/
@media all and (device-width: 1024px) and (device-height: 768px) and (orientation:landscape),
all and (device-width: 1366px) and (device-height: 1024px) and (orientation:landscape) {
    .section_videos_home .splide__slide {
        min-width: calc((100% - 80px) / 3);
    }
}

/* end TABLET */


/* TABLET AND MOBILE */
.is_mobile_video .section_videos_home .splide__gallery__button img {
    filter: brightness(0.5);
    -webkit-filter: brightness(0.5);
}

.is_mobile_video .section_videos_home .splide__gallery__button::after {
    filter: invert(100%) sepia(100%) saturate(0%) hue-rotate(132deg) brightness(103%) contrast(103%);
    -webkit-filter: invert(100%) sepia(100%) saturate(0%) hue-rotate(132deg) brightness(103%) contrast(103%);
}

.is_mobile_video .section_videos_home .splide__gallery__button span {
    opacity: 1;
}


/* MOBILE */
@media (max-width: 700px) {
    .section_videos_home {
        background-color: var(--clr-cnn-grey-4);
        padding: 40px 0;
    }

    .wrapper--sidebar .section_videos_home {
        min-width: calc(100% + 32px);
        margin-left: -16px;
    }

    .home .section_videos_home {
        min-width: calc(100% + 32px);
        margin-left: -16px;
    }

    .section_videos_home .container {
        padding: 0;
    }

    .section_videos_home .home__category {
        color: #fff;
        font-size: 26px;
        text-shadow: unset;
        z-index: 3;
        display: inline-block;
        margin: 0 0 33px 40px;
        max-width: 80%;
    }

    
    .section_videos_home .home__category::first-line {
        background-color: #282828;
        box-shadow: 7px 0 0px 0px #282828;
    }

    .section_videos_home h2.home__category::after {
        max-width: 80%;
        z-index: -1;
        right: 16px;
    }

    .section_videos_home .splide__slide {
        min-width: calc(100% - 80px);
        margin-right: 28px;
    }

}

/* MODAL */
.gallery__modal {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    z-index: 9999999;
    background: rgba(0, 0, 0, 0.9);
    opacity: 0;
    transition: all .3s ease;
    -webkit-transition: all .3s ease;
    -moz-transition: all .3s ease;
    -ms-transition: all .3s ease;
    -o-transition: all .3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery__modal .loader {
    border: 10px solid #282828;
    border-top: 10px solid #D0D0D0;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    animation: spin 1.2s linear infinite;
    margin: 0 auto;
    -webkit-animation: spin 1.2s linear infinite;
    opacity: .8;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
        -webkit-transform: rotate(360deg);
        -moz-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        -o-transform: rotate(360deg);
    }
}

.gallery__loaded {
    width: fit-content;
    max-width: 100%;
}

.gallery__loaded__close__top {
    width: 32px;
    height: 32px;
    padding: 0;
    cursor: pointer;
    background: url(../img/close.svg) no-repeat center center;
    border: none;
    position: absolute;
    top: 78px;
    right: 78px;
}

.gallery__loaded__close__bottom {
    font-size: 16px;
    line-height: 24px;
    text-decoration-line: underline;
    color: #FAFAFA;
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    margin: 0 auto;
    position: relative;
    top: 80px;
}

.gallery__loaded__title {
    font-size: 22px;
    line-height: 32px;
    text-align: center;
    letter-spacing: -1px;
    color: #FAFAFA;
    padding: 0 8px;
    margin-bottom: 16px;
}

.gallery__modal~.scroll-to-top-button {
    display: none !important;
}


@media (max-width: 991px) {
    .gallery__loaded__video {
        display: flex;
        justify-content: center;
    }
    
    .gallery__loaded__close__top {
        top: 24px;
        right: calc(50% - 16px);
    }
}


/* sidebar */
@media (min-width: 992px){
    .wrapper--sidebar-left .section_videos_home .splide__list {
        min-width: 130%;
    }
}

.wrapper--sidebar-left .section_videos_home > .container::before,
.wrapper--sidebar-left .section_videos_home .splide__arrows {
    right: 0;
}
