@keyframes tonext {
    75% {
        left: 0;
    }
    95% {
        left: 100%;
    }
    98% {
        left: 100%;
    }
    99% {
        left: 0;
    }
}
@keyframes tostart {
    75% {
        left: 0;
    }
    95% {
        left: -300%;
    }
    98% {
        left: -300%;
    }
    99% {
        left: 0;
    }
}
@keyframes snap {
    96% {
        scroll-snap-align: center;
    }
    97% {
        scroll-snap-align: none;
    }
    99% {
        scroll-snap-align: none;
    }
    100% {
        scroll-snap-align: center;
    }
}
* {
    box-sizing: border-box;
    scrollbar-color: transparent transparent;
    scrollbar-width: 0px;
}
*::-webkit-scrollbar {
    width: 0;
}
*::-webkit-scrollbar-track {
    background: transparent;
}
*::-webkit-scrollbar-thumb {
    background: transparent;
    border: none;
}
* {
    -ms-overflow-style: none;
}
ol,
li {
    list-style: none;
    list-style-type: none;
    margin: 0;
    padding: 0;
}
.carousel {
    position: relative;
    padding-top: 75%;
    filter: drop-shadow(0 0 10px #0003);
    perspective: 100px;
}
.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;
  /*border-radius: 4px;*/
}
.carousel__slide {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    background-color: #b790bb;
    counter-increment: item;
}
.carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.carousel__slide:nth-child(even) {
    background-color: #b790bb;
}
.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;
}
@media (hover: hover) {
    .carousel__snapper {
        animation-name: none;
    }
    .carousel__slide:last-child .carousel__snapper {
        animation-name: none;
    }
}
@media (prefers-reduced-motion: reduce) {
    .carousel__snapper {
        animation-name: none;
    }
}
.carousel:hover .carousel__snapper,
.carousel:focus-within .carousel__snapper {
    animation-name: none;
}

/* Navigation dots */
.carousel__navigation {
    position: absolute;
    right: 0;
    bottom: 10px;
    left: 0;
    text-align: center;
    z-index: 2;
}
.carousel__navigation-list,
.carousel__navigation-item {
    display: inline-block;
}
.carousel__navigation-item {
    margin: 0 5px;
}
.carousel__navigation-button {
    display: inline-block;
    width: 12px;
    height: 12px;
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    font-size: 0;
    cursor: pointer;
    transition:
        background-color 0.2s,
        transform 0.2s;
}
.carousel__navigation-button:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: scale(1.2);
}
.carousel__prev,
.carousel__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    margin-top: 0;
    border-radius: 0;
    border: none;
    font-size: 0;
    color: transparent;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.2s;
    z-index: 10;
}
.carousel__prev:hover,
.carousel__next:hover {
}
.carousel__prev {
    left: 10px;
}
.carousel__next {
    right: 10px;
}
.carousel__prev::before,
.carousel__next::before {
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    border-top: 3px solid white;
    border-left: 3px solid white;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(0deg);
}
.carousel__prev::before {
    transform: translate(-50%, -50%) rotate(-45deg);
}
.carousel__next::before {
    transform: translate(-50%, -50%) rotate(135deg);
}
.carousel::before,
.carousel::after {
    display: none;
}
