
/* body {
    max-width: 37.5rem;
    margin: 0 auto;
    padding: 0 1.25rem;
    font-family: 'Lato', sans-serif;
} */

.carousel {
    scrollbar-color: transparent transparent; /* thumb and track color */
    scrollbar-width: 0px;
}

.carousel::-webkit-scrollbar {
    width: 0;
    display: none;
}

.carousel::-webkit-scrollbar-track {
    background: transparent;
}

.carousel::-webkit-scrollbar-thumb {
    background: transparent;
    border: none;
}

.carousel {
    -ms-overflow-style: none;
}

.carousel ol, .carousel li {
    list-style: none;
    margin: 0;
    padding: 0;
    border: none;
}

.carousel {
    position: relative;
    /* padding-top: 75%; */
    /* filter: drop-shadow(0 0 10px #0003); */
    perspective: 100px;
    aspect-ratio: 1 / 1;
}

.carousel__viewport {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    overflow-x: scroll;
    counter-reset: item;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
}

.carousel__slide {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    /* background-color: red; */
    counter-increment: item;
}

/* .carousel__slide:nth-child(even) {
   background-color: blue;
} */

.carousel__slide:before {
    content: counter(item);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate3d(-50%,-40%,70px);
    color: #fff;
    font-size: 2em;
}

.carousel__snapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    scroll-snap-align: center;
}

.carousel__navigation {
    position: absolute;
    height: 1.5rem;
    right: 0;
    bottom: -1.5rem;
    left: 0;
    text-align: center;
    overflow: hidden;
    align-content: center;
}

.carousel__navigation-list,
.carousel__navigation-item {
    display: inline-block;
    top: 0;
    padding-top: 0;
}

.carousel__navigation-button {
    display: inline-block;
    width: 0.75rem;
    height: 0.75rem;
    background-color: #888;
    background-clip: content-box;
    border-radius: 2000vh;
    font-size: 0;
    transition: transform 0.1s;
    border: 0.15rem solid transparent;
    top: 0;
    overflow: hidden;
}

.carousel::before,
.carousel::after,
.carousel__prev,
.carousel__next {
    position: absolute;
    top: 0;
    margin-top: 50%;
    width: 62px;
    height: 62px;
    transform: translateY(-50%);
    /* border-radius: 50%; */
    font-size: 0;
    outline: 0;
}

.carousel::before,
.carousel__prev {
    left: 0;
}

.carousel::after,
.carousel__next {
    right: 0;
}

.carousel::before,
.carousel::after {
    content: '';
    z-index: 1;
    background-size: 50%;
    background-repeat: no-repeat;
    background-position: center center;
    color: #fff;
    font-size: 2.5rem;
    line-height: 4rem;
    text-align: center;
    pointer-events: none;
}

.carousel::before {
    background-image: url("../images/CT-carousel-left.png");
}

.carousel::after {
    background-image: url("../images/CT-carousel-right.png");
}
