tarot-carousel {
  pointer-events: all;
  box-sizing: border-box;
  user-select: none;
  touch-action: manipulation;
  --tarot-slide-width: 100px;
  width: 100%;
  margin: 0 auto;
  display: block;
  position: relative;
  overflow: hidden;
}

tarot-carousel * {
  box-sizing: border-box;
}

tarot-viewport {
  width: 100%;
  margin: 0 auto;
  display: block;
  position: relative;
  overflow: hidden;
}

tarot-slides {
  will-change: transform, opacity, filter, width;
  transform-style: preserve-3d;
  cursor: grab;
  user-select: none;
  backface-visibility: hidden;
  margin: 0;
  padding: 0;
  transition-duration: 0s;
  display: grid;
  top: 0;
  left: 0;
}

tarot-slides:before, tarot-slides:after {
  content: " ";
  z-index: -1;
  width: 100%;
  height: 100%;
  display: block;
  position: absolute;
  top: 0;
}

tarot-slides:before {
  right: 100%;
}

tarot-slides:after {
  left: 100%;
}

tarot-slide {
  will-change: transform, opacity, width;
  width: var(--tarot-slide-width);
  user-select: none;
  backface-visibility: hidden;
  height: auto;
  transform-style: preserve-3d;
  grid-area: 1 / 1;
  position: relative;
  top: 0;
  left: 0;
  overflow: hidden;
}

.tarot-visually-hidden {
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(0 0 99.9% 99.9%);
  border: 0;
  width: 1px;
  height: 1px;
  padding: 0;
  position: absolute;
  overflow: hidden;
}

[data-action="tarot-prev"], [data-action="tarot-next"] {
  user-select: none;
}

.tarot-button {
  appearance: none;
  cursor: pointer;
  backdrop-filter: blur(5px);
  z-index: 1;
  touch-action: manipulation;
  filter: blur() opacity();
  background: #c6d9e599;
  border: 1px solid #000;
  border-radius: 50px;
  width: 50px;
  height: 50px;
  padding: 10px;
  font-size: 15px;
  line-height: 0;
  display: block;
  top: 50%;
  transform: translateY(-50%);
}

.tarot-button[disabled] {
  filter: opacity(.5);
}

.tarot-button svg {
  width: auto;
  height: 20px;
}

.tarot-prev {
  left: 10px;
}

.tarot-next {
  right: 10px;
}

.tarot-smart-position {
  z-index: 1;
  transition: all 70ms ease-out, filter .5s;
  position: absolute;
  top: 50%;
}

.tarot-smart-position.tarot-prev {
  transform: translate(-50%, -50%);
}

.tarot-smart-position.tarot-next {
  transform: translate(50%, -50%);
}

.tarot-dots-container {
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding: 8px;
  display: flex;
}

.tarot-dots-list {
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
}

.tarot-dots-list li {
  margin: 0;
  padding: 0;
}

.tarot-dots-button {
  appearance: none;
  cursor: pointer;
  opacity: .6;
  background: #64646480;
  border: none;
  border-radius: 20px;
  width: 10px;
  height: 10px;
  margin: 0;
  padding: 0;
  display: block;
}

.tarot-dots-button[aria-selected="true"] {
  background: red;
}

tarot-carousel[effect="cube"] tarot-slides {
  -webkit-perspective: 1500px;
  perspective: 1500px;
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
}

tarot-carousel[effect="cube"] tarot-slide {
  width: var(--tarot-slide-width);
  height: auto;
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
  isolation: isolate;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transition: none;
  top: 0;
  left: 0;
}

tarot-carousel[effect="flip"] tarot-viewport {
  transform-style: preserve-3d;
  perspective: 1200px;
  perspective-origin: center;
}

tarot-carousel[effect="flip"] tarot-slides {
  will-change: transform;
  width: 100%;
  position: relative;
  overflow: visible;
  transform: scaleY(1)scaleX(1);
}

tarot-carousel[effect="flip"] tarot-slide {
  transform-origin: center;
  transition: none;
  overflow: hidden;
  box-shadow: 0 4px 8px #0000001a;
}

tarot-carousel[effect="ripple"] tarot-slide img {
  object-fit: cover;
  width: 100%;
  min-width: 500px;
  height: 100%;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

tarot-carousel[effect="stack"] tarot-slides {
  -webkit-perspective: 5000px;
  perspective: 5000px;
}

tarot-carousel[effect="stack"] tarot-slide {
  width: calc(var(--tarot-slide-width)  - var(--stack-peek-reserve));
  -webkit-perspective: 5000px;
  perspective: 5000px;
  isolation: isolate;
  border-radius: 12px;
  height: auto;
  top: 0;
  left: 0;
}

tarot-carousel[effect="peacock"] tarot-slide, tarot-carousel[effect="hidden-door"] tarot-slide {
  border-radius: 80px;
}

tarot-carousel[effect="peacock"] tarot-slide img, tarot-carousel[effect="hidden-door"] tarot-slide img {
  width: var(--tarot-slide-width);
  max-width: var(--tarot-slide-width);
  object-fit: cover;
  height: 100%;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

tarot-carousel[effect="hidden-door"] tarot-slide {
  border-radius: 12px;
}

tarot-carousel[effect="hidden-door"] tarot-slide img {
  width: var(--tarot-slide-width);
  max-width: var(--tarot-slide-width);
  object-fit: cover;
  height: 100%;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}
