.infinite-spiral {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 320px;
  overflow: hidden;
  isolation: isolate;
}

.infinite-spiral__stage {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}

.infinite-spiral__item {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: var(--infinite-spiral-card-width);
  height: var(--infinite-spiral-card-height);
  padding: 0;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 0.3);
  border-radius: var(--infinite-spiral-card-radius);
  background: rgb(255 255 255 / 0.08);
  box-shadow: 0 14px 38px rgb(8 6 18 / 0.28);
  color: inherit;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  will-change: transform, opacity, filter;
  text-decoration: none;
  cursor: pointer;
}

.infinite-spiral__item::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.08);
  pointer-events: none;
}

.infinite-spiral__item:focus-visible {
  outline: 2px solid #e4b477;
  outline-offset: 4px;
}

.infinite-spiral__item.is-featured {
  border-color: rgb(228 180 119 / 0.86);
  box-shadow: 0 16px 44px rgb(8 6 18 / 0.34), 0 0 28px rgb(228 180 119 / 0.2);
}

.infinite-spiral__image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-position: center;
  user-select: none;
}

@media (prefers-reduced-motion: reduce) {
  .infinite-spiral__item {
    transition: none;
  }
}
