/* =========================================
   BASE
========================================= */

html {
    overflow-y: scroll;
    scrollbar-gutter: auto;
}

body {
    scrollbar-gutter: auto;
}

.carousel-container {
    width: 100%;
    background-color: #000;
    color: #fff;

    font-family: "Trueno", sans-serif;
    font-size: 14px;
    font-weight: 300;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #000;
    padding-left: 0;
}

/* =========================================
   TRACK
========================================= */

.carousel-track {
    display: flex;
    gap: 0;

    will-change: transform;

    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;

    user-select: none;
    -webkit-user-select: none;
}

/* =========================================
   SLIDE
========================================= */

.carousel-container.team .carousel-slide {

    position: relative;

    display: flex;
    flex-direction: column;

    gap: 18px;

    min-height: 400px;

    padding: 30px;

    overflow: hidden;

    flex-shrink: 0;



    transform: translateZ(0);

    transition:
        background-color .8s cubic-bezier(0.22,1,0.36,1),
        color .8s cubic-bezier(0.22,1,0.36,1),
        transform .8s cubic-bezier(0.22,1,0.36,1),
        box-shadow .8s cubic-bezier(0.22,1,0.36,1);

    will-change:
        transform,
        background-color;
}

/* =========================================
   IMAGE
========================================= */

.carousel-container.team .team-image-wrap {

    position: relative;

    overflow: hidden;


    flex-shrink: 0;

    transform-origin: center top;

    transition:
        transform 1s cubic-bezier(0.22,1,0.36,1),
        border-radius .8s cubic-bezier(0.22,1,0.36,1);

    will-change: transform;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.carousel-slide img.team {

    aspect-ratio: 4 / 5;

    transition:
        transform 1.2s cubic-bezier(0.22,1,0.36,1),
        filter 1s cubic-bezier(0.22,1,0.36,1);

    will-change:
        transform,
        filter;
}

/* =========================================
   CONTENT
========================================= */

.carousel-container.team .carousel-slide-content {
    display: flex;
    flex-direction: column;
}

.carousel-container.team  .carousel-slide h3 {

    font-size: 21px;

    font-family: "Trueno", sans-serif;

    line-height: 120%;

    font-weight: 300;

    font-style: italic;

    letter-spacing: 0;
	
	color: #A2A2A2;

    transition:
        color .6s cubic-bezier(0.22,1,0.36,1);
}

.carousel-slide-description {
    font-size: 14px;
    line-height: 1.6;

    color: rgba(255,255,255,.9);

    transition:
        color .6s cubic-bezier(0.22,1,0.36,1);
}

/* =========================================
   EXTRA TEXT
========================================= */

.carousel-container.team .testo {

    font-size: 20px;

    font-family: "Bodoni MT";

    line-height: 120%;

    font-weight: 400;

    letter-spacing: 0;

    opacity: 0;

    transform:
        translateY(40px);

    filter:
        blur(8px);

    max-height: 0;

    overflow: hidden;

    margin-top: 0;

    transform-origin: top;

    will-change:
        opacity,
        transform,
        filter;

    transition:
        opacity .9s cubic-bezier(0.22,1,0.36,1),
        transform 1s cubic-bezier(0.22,1,0.36,1),
        filter 1s cubic-bezier(0.22,1,0.36,1),
        max-height 1s cubic-bezier(0.22,1,0.36,1),
        margin-top .8s cubic-bezier(0.22,1,0.36,1),
        color .6s cubic-bezier(0.22,1,0.36,1);
}


@media (max-width:1600px) {
.carousel-container.team .testo {
    font-size: 18px;
}

}

/* =========================================
   LINK
========================================= */

.carousel-slide-link {
    position: absolute;
    inset: 0;
    z-index: 10;
    text-decoration: none;
}

/* =========================================
   CONTROLS
========================================= */

.carousel-controls {

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 25px;

    padding: 20px 25px;
}

.carousel-arrow {

    background: transparent;

    border: none;

    cursor: pointer;

    flex-shrink: 0;

    padding: 8px 12px;

    transition: opacity .3s ease;
}

.carousel-arrow:hover {
    opacity: .7;
}

.carousel-arrow.disabled {
    opacity: .3;
    pointer-events: none;
}

/* =========================================
   PROGRESS BAR
========================================= */

.carousel-progress-bar {

    position: relative;

    flex: 1;

    max-width: 640px;

    height: 1px;

    overflow: visible;

    cursor: pointer;

    background-color: rgba(255,255,255,.3);
}

.carousel-progress-thumb {

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background: #fff;

    transform:
        translateX(0)
        scaleX(1);

    transform-origin: left center;

    will-change: transform;

    transition:
        transform .4s cubic-bezier(.25,.1,.25,1);

    pointer-events: none;
}

/* =========================================
   INDICATORS
========================================= */

.carousel-indicators {

    display: flex;
    justify-content: center;
    flex-wrap: wrap;

    gap: 6px;

    padding-top: 15px;
}

.carousel-indicator {

    width: 8px;
    height: 8px;

    border: none;

    border-radius: 50%;

    padding: 0;

    cursor: pointer;

    background-color: rgba(255,255,255,.3);

    transition:
        background-color .3s ease,
        transform .3s ease;
}

.carousel-indicator.active {
    background: #fff;
    transform: scale(1.3);
}

/* =========================================
   DESKTOP HOVER
========================================= */

@media (hover:hover) {

    .carousel-container.team .carousel-slide:hover {
		
		cursor:pointer;

        background: #fff;

        color: #000;

        transform:
            translateY(-6px);

        box-shadow:
            0 30px 80px rgba(0,0,0,.12);
    }


    .carousel-container.team .carousel-slide:hover p,
    .carousel-container.team .carousel-slide:hover .testo {

        color: #000 !important;
    }

    .carousel-container.team .carousel-slide:hover .team-image-wrap {

        transform:
            scaleY(1.03)
            translateY(-8px);
    }
	

    .carousel-container.team .carousel-slide:hover img.team {
		
		 aspect-ratio: 16 / 9;

        transform:
            scale(1.03);

            filter:
        grayscale(1)
        saturate(.95)
        contrast(1.02);
}
    

    .carousel-container.team .carousel-slide:hover .testo {

        opacity: 1;

        transform:
            translateY(0);

        filter:
            blur(0);

        max-height: 320px;

        margin-top: 18px;
    }
}

/* =========================================
   MOBILE ACTIVE
========================================= */

.carousel-container.team .carousel-slide.active {

    background: #fff !important;

    color: #000;

    transform:
        translateY(-4px);

    box-shadow:
        0 20px 50px rgba(0,0,0,.12);
}


.carousel-container.team .carousel-slide.active p,
.carousel-container.team .carousel-slide.active .testo {

    color: #000 !important;
}

.carousel-container.team .carousel-slide.active .team-image-wrap {

    transform:
        scaleY(1.03)
        translateY(-2px);
}

.carousel-container.team .carousel-slide.active img.team {

     aspect-ratio: 16 / 9;

        transform:
            scale(1.03);

         filter:
        grayscale(1)
        saturate(.95)
        contrast(1.02);
}

.carousel-container.team .carousel-slide.active .testo {

    opacity: 1;

    transform:
        translateY(0);

    filter:
        blur(0);

    max-height: 320px;

    margin-top: 10px;
}

/* =========================================
   LARGE DESKTOP
========================================= */

@media (min-width:1701px) {

    .carousel-container.team .carousel-slide {

        flex: 0 0 calc(100% / 5);
        width: calc(100% / 5);
    }
}

/* =========================================
   DESKTOP
========================================= */

@media (min-width:1400px) and (max-width:1700px) {

    .carousel-container.team .carousel-slide {

        flex: 0 0 calc(100% / 4);
        width: calc(100% / 4);
    }
}

/* =========================================
   TABLET
========================================= */

@media (min-width:1100px) and (max-width:1399px) {

   .carousel-container.team  .carousel-spacer {

        flex: 0 0 80px;
        min-width: 80px;
    }

    .carousel-container.team .carousel-slide {

        flex: 0 0 calc(100% / 3);
        width: calc(100% / 3);
    }

  .carousel-container.team   .carousel-slide h3 {
        font-size: 20px;
    }

  .carousel-container.team   .carousel-container.team .testo {
        font-size: 24px;
    }
}

/* =========================================
   TABLET
========================================= */

@media (min-width:768px) and (max-width:1099px) {


    .carousel-container.team .carousel-slide {

        flex: 0 0 calc(100% / 2);
        width: calc(100% / 2);
    }


}

/* =========================================
   MOBILE
========================================= */

@media (max-width:767px) {

    .carousel-spacer {

        flex: 0 0 30px !important;
        min-width: 30px !important;
    }

    .carousel-container.team .carousel-slide {

        flex: 0 0 calc(100vw - 30px - 0.2 * (100vw - 30px));

        width: calc(100vw - 30px - 0.2 * (100vw - 30px));

        margin-left: 15px;

        min-height: 280px;

        padding: 15px;
    }

    .carousel-spacer + .carousel-slide {
        margin-left: 0;
    }

    .carousel-slide img.team {
        aspect-ratio: 3 / 4;
    }

    .carousel-container.team  .carousel-slide h3 {
        font-size: 18px;
    }

    .carousel-container.team .testo {
        font-size: 16px;
    }

    .carousel-controls {

        flex-wrap: wrap;

        gap: 30px;

        padding: 15px 40px;
    }

    .carousel-arrow {
        display: none;
    }

    .carousel-progress-bar {

        width: 100%;

        height: 2px;

        flex-basis: 100%;
    }

    .carousel-indicator {

        width: 6px;
        height: 6px;
    }
	
	.carousel-container.team .carousel-slide {
		    gap: 10px;
	}
}