.spiral-gallery {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 160px;
  overflow: hidden;
  box-sizing: border-box;
  background: transparent;
}

.spiral-gallery.is-looping {
  overflow-y: auto;
  overscroll-behavior-y: contain;
  overflow-anchor: none;
  scrollbar-width: none;
}

.spiral-gallery.is-looping::-webkit-scrollbar {
  display: none;
}

.spiral-gallery.is-looping::after {
  content: "";
  display: block;
  height: 32768px;
}

.spiral-gallery__stage {
  position: relative;
  height: 100%;
}

.spiral-gallery.is-looping .spiral-gallery__stage {
  position: sticky;
  top: 0;
}

.spiral-gallery.is-over-photo {
  cursor: pointer;
}

.spiral-gallery.is-focused {
  cursor: zoom-out;
}

.spiral-gallery:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: -3px;
}

.spiral-gallery__canvas {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.spiral-gallery__list,
.spiral-gallery__status {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.spiral-gallery__status--error {
  top: auto;
  left: 50%;
  bottom: 12px;
  width: auto;
  height: auto;
  margin: 0;
  padding: 6px 12px;
  clip-path: none;
  transform: translateX(-50%);
  border-radius: 6px;
  background: #1e1e1e;
  color: #ffffff;
  font: 13px/1.4 system-ui, sans-serif;
}
