/* 
    Table of content
    0. NAVIGATION
    1. CLIENTS
    2. GALLERY
    3. TESTIMONIALS
*/

/* 0. NAVIGATION */
/* 0.1 Nav */
.swiper-custom-button-prev,
.swiper-custom-button-next {
    position: absolute;
    z-index: 1;
    bottom: 4rem;
    width: 4rem;
    height: 4rem;
    border: .2rem solid white;
    border-radius: 50%;
    font-size: 1.8rem;
    line-height: 3.6rem;
    color: white;
    text-align: center;
    cursor: pointer;
    transition: .3s;
}

.swiper-custom-button-next {
    right: 4rem;
}

.swiper-custom-button-prev {
    right: 8.5rem;
}

.swiper-custom-button-prev:hover,
.swiper-custom-button-next:hover {
    background-color: white;
    color: black;
}

/* 0.2 Pagination */
.swiper-pagination {
    position: relative !important;
    margin-top: 4rem;
    display: flex;
    text-align: left !important;
}

.swiper-pagination-bullet {
    width: 1.2rem !important;
    height: 1.2rem !important;
    margin: 0 .5rem 0 0 !important;
    border: .1rem solid black !important;
    background-color: transparent !important;
    opacity: 1 !important;
}

.swiper-pagination-bullet-active {
    background-color: black !important;
}

/* 1. CLIENTS */
.slider-clients {
    overflow: hidden;
}

.slider-clients .js-marquee {
    display: flex;
    align-items: center;
    gap: 7.5rem;
}

.slider-clients .item {
    width: 18rem;
    height: 10rem;
    display: flex;
    align-items: center;
}

.slider-clients .item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

/* 2. GALLERY */
.slider-gallery {
    padding-left: 0;
    padding-right: 0;
}

.slider-gallery .container {
    position: relative;
    width: calc( 50% + calc( var(--grid-size-lg) / 2 ) );
    margin-left: auto;
}

.slider-gallery .container::before {
    content: '';
    position: absolute;
    z-index: 2;
    top: 4rem;
    right: 4rem;
    width: 11.4rem;
    height: 6rem;
    background-image: url(../images/logo-white-green.svg);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: right;
}

.slider-gallery .container::after {
    content: '';
    position: absolute;
    z-index: 2;
    bottom: -7.5rem;
    left: 10rem;
    width: 9.2rem;
    height: 15rem;
    background-image: url(../images/icon-lightning-green.svg);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: left;
}

.slider-gallery .image {
    position: relative;
    width: 100%;
    height: 0;
    padding-top: 56.25%;
}

.slider-gallery .image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* 3. TESTIMONIALS */
.slider-title-testimonials .container {
    display: flex;
    gap: 0 10rem;
}

.slider-title-testimonials .title-wrapper {
    flex: 0 0 38rem;
}

.slider-title-testimonials .testimonials-wrapper {
    flex: 1 1 auto;
    max-width: 70rem;
}

.slider-title-testimonials .testimonials-wrapper .text {
    font-size: 3rem;
    font-weight: 700;
    font-style: italic;
    line-height: 1.4em;
}

.slider-title-testimonials .testimonials-wrapper .title-wrapper {
    margin-top: 3rem;
}

/* RESIZE */
@media (max-width: 1280px) {
    /* 2. GALLERY */
    .slider-gallery .container {
        width: calc( 100% - var(--grid-padding) );
    }

    /* 3. TESTIMONIALS */
    .slider-title-testimonials .testimonials-wrapper {
        max-width: calc( 100% - 48rem );
    }
}

@media (max-width: 1100px) {
    /* 3. TESTIMONIALS */
    .slider-title-testimonials .container {
        gap: 0 6rem;
    }

    .slider-title-testimonials .title-wrapper {
        flex: 0 0 30rem;
    }

    .slider-title-testimonials .testimonials-wrapper {
        max-width: calc( 100% - 36rem );
    }
}

@media (max-width: 899px) {
    /* 0. NAVIGATION */
    /* 0.1 Nav */
    .swiper-custom-button-prev,
    .swiper-custom-button-next {
        bottom: 2rem;
    }

    .swiper-custom-button-next {
        right: 2rem;
    }

    .swiper-custom-button-prev {
        right: 6.5rem;
    }

    /* 2. GALLERY */
    .slider-gallery .container::before {
        top: 2rem;
        right: 2rem;
    }

    .slider-gallery .container::after {
        left: 5rem;
    }
}

@media (max-width: 767px) {
    /* 2. GALLERY */
    .slider-gallery .container::before {
        display: none;
    }

    .slider-gallery .container::after {
        bottom: -5rem;
        width: 6.1rem;
        height: 10rem;
    }

    /* 3. TESTIMONIALS */
    .slider-title-testimonials .container {
        flex-direction: column;
        gap: 0;
    }

    .slider-title-testimonials .title-wrapper {
        flex: inherit;
    }

    .slider-title-testimonials h2 {
        margin-bottom: 3rem;
    }
    
    .slider-title-testimonials .testimonials-wrapper {
        flex: inherit;
        max-width: inherit;
    }

    .slider-title-testimonials .testimonials-wrapper .text {
        font-size: 2.6rem;
    }

    .slider-title-testimonials .btn {
        display: none;
    }
}

@media (max-width: 499px) {
    /* 2. GALLERY */
    .slider-gallery .container::after {
        left: 2rem;
    }

    .slider-gallery .image {
        padding-top: 75%;
    }
}