/* Glass grip rail control — shared by Work / BTS / Frames.
   Pairs with rail-control.js. The rail itself gets .hs-railed (native
   scrollbar hidden, snap off, grab cursor); a frosted-glass "grip" on a
   full-bleed track below the rail scrubs it (push left/right, further =
   faster). Desktop affordance — hidden on phones, where the rail flicks
   natively (the mobile reel handles phones for galleries). */

.hs-railed {
  scroll-snap-type: none !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none;
  cursor: grab;
  touch-action: pan-x;
}
.hs-railed::-webkit-scrollbar { display: none !important; width: 0 !important; height: 0 !important; }
.hs-railed.is-grabbing { cursor: grabbing; }

/* Full-bleed track strip, aligned with the full-bleed rail. */
.hs-railctl {
  width: 100vw; margin-left: calc(50% - 50vw);
  padding: 0 clamp(16px, 4vw, 56px);
  margin-top: 12px;
}
.hs-railctl-track {
  position: relative; height: 34px;
  border-radius: 999px;
  background: rgba(237, 228, 207, 0.04);
  cursor: pointer; outline: none;
  touch-action: none;
}
.hs-railctl-track:focus-visible { box-shadow: 0 0 0 2px rgba(179, 198, 146, 0.6); }

.hs-railctl-grip {
  position: absolute; left: 50%; top: 50%;
  height: 25px; width: 120px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  cursor: grab; touch-action: none; user-select: none;
  background: rgba(237, 228, 207, 0.12);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid rgba(237, 228, 207, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 2px 12px rgba(0, 0, 0, 0.22);
  display: flex; align-items: center; justify-content: center; gap: 4px;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}
.hs-railctl-grip span { width: 3px; height: 3px; border-radius: 50%; background: rgba(237, 228, 207, 0.55); }
.hs-railctl-grip:hover { background: rgba(237, 228, 207, 0.16); border-color: rgba(237, 228, 207, 0.30); }
.hs-railctl-grip.active {
  background: rgba(179, 198, 146, 0.18);
  border-color: rgba(179, 198, 146, 0.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10), 0 0 0 1px rgba(122, 141, 92, 0.35), 0 6px 24px rgba(122, 141, 92, 0.30);
}
.hs-railctl-grip.active span { background: rgba(237, 228, 207, 0.9); }

/* Phones: hide the grip; the rail flicks natively (galleries use the
   mobile reel, Work uses its vertical reel — neither shows this rail). */
@media (max-width: 640px), (max-height: 480px) {
  .hs-railctl { display: none; }
}
