.carousel {
    width: 100%;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.track {
    width: min(85%, 420px);
    position: relative;
    touch-action: none;
    backface-visibility: hidden;
    will-change: transform;
    transform-style: preserve-3d;
    aspect-ratio: 1;
    transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
}

@media screen and (min-width: 992px) {
    .track {
        width: 70%;
        max-width: none;
        aspect-ratio: 1.7;
    }
}

.item {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    user-select: none;
    cursor: pointer;
    padding: 1rem;
    opacity: 0.5;
    transition: opacity 1.2s cubic-bezier(0.77, 0, 0.175, 1), padding 1.2s cubic-bezier(0.77, 0, 0.175, 1);
    will-change: opacity, transform, padding;
}

@media screen and (min-width: 992px) {
    .item {
        padding: 3rem;
    }
}

.item:not(.previous, .current, .next) {
    transform: translate3d(-99999px, 0px, 0px);
}

.previous {}

.current {
    opacity: 1;
    z-index: 1;
}

.next {}

.poster {
    object-fit: cover;
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius);
    pointer-events: none;
    user-select: none;
}