@font-face {
  font-family: "Geist Mono";
  src: url("/assets/geist-mono-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

/* The existing .neighborhood-photo owns every dimension and breakpoint. */
hero-carousel {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  touch-action: pan-y pinch-zoom;
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
}

hero-carousel[data-dragging="true"] { cursor: grabbing; }
hero-carousel:focus-visible { outline: 2px solid #f8f5ef; outline-offset: -5px; }

.hero-carousel__track {
  position: absolute;
  inset: 0;
  display: flex;
  will-change: transform;
}

.hero-carousel__slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
  height: 100%;
  overflow: hidden;
}

hero-carousel img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--photo-position, 50% 50%);
  filter: saturate(0.8);
  pointer-events: none;
  -webkit-user-drag: none;
}

.hero-carousel__counter {
  position: absolute;
  z-index: 3;
  right: 14px;
  bottom: 16px;
  display: block;
  margin: 0;
  border: 0;
  border-radius: 3px;
  padding: 7px 9px;
  background: rgb(30 31 28 / 48%);
  color: #f8f5ef;
  font: 400 12px/1.2 "Geist Mono", monospace;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  white-space: nowrap;
  cursor: pointer;
}

.hero-carousel__counter::before { content: ""; position: absolute; inset: -8px; }
.hero-carousel__counter:focus-visible { outline: 2px solid #f8f5ef; outline-offset: 3px; }
.hero-carousel__sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 900px) {
  hero-carousel img { object-position: var(--photo-mobile-position, var(--photo-position, 50% 50%)); }
  .hero-carousel__counter { right: 12px; bottom: 18px; font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-carousel__track { transition: none !important; }
}
