/* SlideNav (docs/design-system.md, Preview cards): arrows and dots laid over a
   slide. The arrows are the round control over an image: 40px,
   translucent black with a white ring, at mid-height. The dots are 6px
   circles at the bottom, the active one amber. One look on the preview
   cards, in the editor and on the share page. */

.slide-nav {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.slide-nav__arrow,
.slide-nav__dot {
  pointer-events: auto;
}

.slide-nav__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: var(--control-height);
  height: var(--control-height);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--color-text-on-dark);
  background: var(--color-overlay-control);
  border: none;
  border-radius: 50%;
  box-shadow: inset 0 0 0 var(--border-width) var(--color-overlay-ring);
  backdrop-filter: blur(4px);
  cursor: pointer;
  transition:
    opacity var(--duration-fast) var(--ease-default),
    background var(--duration-fast) var(--ease-default);
}

.slide-nav__arrow:hover {
  background: var(--color-text);
}

.slide-nav__arrow:focus-visible {
  outline: 2px solid var(--color-text-on-dark);
  outline-offset: 2px;
}

.slide-nav__arrow--prev {
  left: var(--space-2);
}

.slide-nav__arrow--next {
  right: var(--space-2);
}

.slide-nav__arrow:disabled,
.slide-nav--arrows-hidden .slide-nav__arrow {
  opacity: 0;
  pointer-events: none;
}

.slide-nav__dots {
  position: absolute;
  bottom: var(--space-3);
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
}

.slide-nav__dot {
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  padding: 0;
  background: var(--color-slide-nav-dot);
  border: none;
  border-radius: 50%;
  cursor: pointer;
}

.slide-nav__dot[aria-current="true"] {
  background: var(--color-accent);
}
