/* ==========================================================
   carousel.css — Mr. Trampolines shared carousel styles
   Loaded once, cached across all pages.
   ========================================================== */

/* Track — horizontal scroll with snap */
.c-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;       /* Firefox */
  -ms-overflow-style: none;    /* IE/Edge */
  width: 100%;
  height: 100%;
}
.c-track::-webkit-scrollbar { display: none; } /* Chrome/Safari */

/* Slide */
.c-slide {
  flex: none;
  width: 100%;
  height: 100%;
  scroll-snap-align: center;
  position: relative;
}
.c-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Prev / Next arrows */
.c-prev,
.c-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #374151;
  cursor: pointer;
  z-index: 20;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  transition: color 0.15s, box-shadow 0.15s, background 0.15s;
}
.c-prev:hover, .c-next:hover {
  background: #fff;
  color: #ff8500;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.c-prev { left: 0.5rem; }
.c-next { right: 0.5rem; }

/* Dot indicators */
.c-dots-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  margin-top: 0.625rem;
}
.c-dot {
  height: 0.375rem;
  width: 0.375rem;
  border-radius: 9999px;
  background: #d1d5db;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: width 0.3s ease, background-color 0.25s ease;
}
.c-dot.c-dot-active {
  width: 1rem;
  background: #111827;
}

/* Thumbnail strip */
.c-thumbs-bar {
  display: none; /* mobile: hidden */
  gap: 0.5rem;
  margin-top: 0.625rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 0.125rem;
}
.c-thumbs-bar::-webkit-scrollbar { display: none; }

@media (min-width: 640px) {
  .c-thumbs-bar { display: flex; }
  .c-dots-bar   { display: none; }
}

/* Thumbnail button */
.c-thumb {
  flex: none;
  width: 4rem;
  height: 4rem;
  border-radius: 0.625rem;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  background: none;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.c-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.c-thumb:hover {
  border-color: rgba(255, 133, 0, 0.5);
}
.c-thumb.c-thumb-active {
  border-color: #ff8500;
  transform: scale(1.06);
  box-shadow: 0 0 0 2px rgba(255,133,0,0.2);
}
