/* ===== Rolodex (horizontal card strip) ===== */
.rolodex {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;

  overflow-x: auto;
  overflow-y: hidden;

  padding: 6px 2px 12px;

  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.rolodex-item {
  flex: 0 0 320px;        /* card width */
  scroll-snap-align: start;
}

/* Optional: make cards equal height in strip */
.rolodex .card {
  height: 100%;
}

/* ===== Scrollbar polish (WebKit browsers) ===== */
.rolodex::-webkit-scrollbar {
  height: 8px;
}

.rolodex::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.3);
  border-radius: 4px;
}

.rolodex::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.08);
}

.rolodex-frame {
  position: relative;
  margin-bottom: 0.5rem;
}

.rolodex {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  padding: 0.25rem 2.25rem; /* room for nav buttons */
}

.rolodex::-webkit-scrollbar {
  height: 10px;
}

.rolodex-item {
  flex: 0 0 auto;
  width: 320px; /* adjust to taste */
  max-width: 90vw;
}

.rolodex-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  border: 0;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  background: rgba(255,255,255,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.rolodex-prev { left: 6px; }
.rolodex-next { right: 6px; }

.rolodex-nav[disabled] {
  opacity: 0.35;
  cursor: default;
}
