/* Image carousel — used on the SIGGRAPH 2026 page only */

/* --nav-size is the arrow button diameter, --nav-inset its distance from the
   edge of the photo. Change these to move or resize the arrows. */
.carousel {
  position: relative;
  --nav-size: 40px;
  --nav-inset: 14px;
}

.carousel-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.carousel-slide {
  flex: 0 0 100%;
  margin: 0;
  scroll-snap-align: start;
}
.carousel-slide img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;          /* matches the photos: 4032 x 3024 */
  object-fit: cover;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* Arrow buttons */
.carousel-nav {
  position: absolute;
  top: 50%;
  margin-top: calc(var(--nav-size) / -2);
  width: var(--nav-size);
  height: var(--nav-size);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #fff;
  background: rgba(20, 20, 20, .55);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  backdrop-filter: blur(2px);
  transition: background .15s ease, opacity .15s ease;
}
.carousel-nav:hover:not(:disabled) { background: rgba(20, 20, 20, .78); }
.carousel-nav:disabled { opacity: 0; pointer-events: none; }
.carousel-nav.prev { left: var(--nav-inset); }
.carousel-nav.next { right: var(--nav-inset); }
.carousel-nav svg { display: block; }

.carousel-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-top: 12px;
}
.carousel-dots { display: flex; gap: 7px; }
.carousel-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 1px solid var(--ink-faint);
  border-radius: 50%;
  background: none;
  cursor: pointer;
}
.carousel-dot[aria-current="true"] { background: var(--ink-faint); }
.carousel-caption { margin: 0; font-size: .88rem; color: var(--ink-faint); }
.carousel-caption .count { font-variant-numeric: tabular-nums; }

@media (max-width: 700px) {
  .carousel { --nav-size: 34px; --nav-inset: 8px; }
}
