.jl-carousel {
  position: relative;
}
.jl-carousel__track {
  display: flex;
  gap: var(--_gap, 16px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}
.jl-carousel__track::-webkit-scrollbar {
  display: none;
}
/* Drag-to-scroll affordance on pointer (mouse) devices; touch scrolls natively. */
@media (hover: hover) and (pointer: fine) {
  .jl-carousel__track {
    cursor: grab;
  }
  .jl-carousel__track--dragging {
    cursor: grabbing;
    scroll-behavior: auto;
    scroll-snap-type: none;
    user-select: none;
  }
}
.jl-carousel__slide {
  scroll-snap-align: start;
  flex: 0 0 var(--_basis, 100%);
  min-width: 0;
}
.jl-carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-pill, 999px);
  background: var(--surface-overlay);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm, 0 4px 12px rgba(0, 0, 0, 0.1));
  cursor: pointer;
  transition: opacity var(--duration-fast, 140ms), background var(--duration-fast, 140ms);
}
.jl-carousel__arrow:hover {
  background: var(--surface-hover);
}
.jl-carousel__arrow:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-ring);
}
.jl-carousel__arrow--prev {
  left: -8px;
}
.jl-carousel__arrow--next {
  right: -8px;
}
.jl-carousel__arrow[disabled] {
  opacity: 0;
  pointer-events: none;
}
@media (max-width: 600px) {
  .jl-carousel__arrow {
    display: none;
  }
}
.jl-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 14px;
}
.jl-carousel__dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-pill, 999px);
  background: var(--border-strong);
  transition: width var(--duration-base, 200ms) var(--ease-standard, ease),
    background var(--duration-base, 200ms);
}
.jl-carousel__dot[aria-current="true"] {
  width: 20px;
  background: var(--accent);
}
.jl-carousel__dot:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-ring);
}
