
.lenticular-carousel {
  --lc-card-width: 260px;
  --lc-aspect: 3 / 4;
  --lc-gap: 26px;
  --lc-radius: 14px;
  --lc-perspective: 1200px;
  --lc-speed: 1;

  position: relative;
  overflow: hidden;
  padding: 32px 0;
  perspective: var(--lc-perspective);
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
  outline: none;
}

.lenticular-carousel:focus-visible {
  box-shadow: inset 0 0 0 1px rgba(238, 220, 205, 0.35);
  border-radius: var(--lc-radius);
}

.lenticular-carousel.is-dragging {
  cursor: grabbing;
}

.lenticular-carousel__track {
  display: flex;
  gap: var(--lc-gap);
  width: max-content;
  transform-style: preserve-3d;
  will-change: transform;
}

.lenticular-carousel__track.is-animating {
  transition: transform calc(0.6s / var(--lc-speed)) cubic-bezier(0.22, 1, 0.36, 1);
}

.lenticular-carousel__card {
  --lc-dim: 1;
  position: relative;
  flex: 0 0 var(--lc-card-width);
  width: var(--lc-card-width);
  aspect-ratio: var(--lc-aspect);
  transform-style: preserve-3d;
  cursor: pointer;
}


.lenticular-carousel__lens {
  position: absolute;
  inset: 0;
  display: flex;
  transform-style: preserve-3d;
}


.lenticular-carousel__strip {
  --lc-turn: 0deg;
  position: relative;
  flex: 1 1 0;
  height: 100%;
  transform-style: preserve-3d;
  transform: translateZ(calc(-1 * var(--lc-strip-half))) rotateY(var(--lc-turn));
}

.lenticular-carousel__face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background: #1a1716;
  transform: translateZ(var(--lc-strip-half));
}

.lenticular-carousel__face--back {
  transform: rotateY(90deg) translateZ(var(--lc-strip-half));
}


.lenticular-carousel__card.is-back-hidden .lenticular-carousel__face--back,
.lenticular-carousel__card.is-front-hidden .lenticular-carousel__face--front {
  visibility: hidden;
}

.lenticular-carousel__strip:first-child .lenticular-carousel__face {
  border-top-left-radius: var(--lc-radius);
  border-bottom-left-radius: var(--lc-radius);
}

.lenticular-carousel__strip:last-child .lenticular-carousel__face {
  border-top-right-radius: var(--lc-radius);
  border-bottom-right-radius: var(--lc-radius);
}

.lenticular-carousel__face img {
  position: absolute;
  top: 0;
  height: 100%;
  max-width: none;
  object-fit: cover;
  pointer-events: none;
  filter: brightness(var(--lc-dim));
}
