/* Vertical Thumbnail Slider — thumbnail strip moves beside the viewport, for wide/desktop layouts. */

.vthumb-carousel {
  display: flex; gap: 14px; max-width: 720px; margin: 0 auto;
}

.vthumb-strip {
  display: flex; flex-direction: column; gap: 10px;
  flex: 0 0 92px; max-height: 340px; overflow-y: auto; padding-right: 2px;
}
.vthumb-strip::-webkit-scrollbar { width: 5px; }
.vthumb-strip::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 3px; }

.vthumb-item {
  flex: 0 0 58px; border-radius: 8px; overflow: hidden;
  cursor: pointer; opacity: .45; border: 2px solid transparent;
  transition: .18s; padding: 0; width: 100%;
}
.vthumb-item:hover { opacity: .75; }
.vthumb-item.active {
  opacity: 1; border-color: var(--shell-accent);
  box-shadow: 0 0 12px rgba(0,207,255,.45);
}

.vthumb-viewport {
  flex: 1; min-width: 0; position: relative; aspect-ratio: 16/10;
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,.4);
  touch-action: pan-y;
  cursor: grab;
}
.vthumb-viewport:active { cursor: grabbing; }
.vthumb-track {
  display: flex; width: 100%; height: 100%;
  transition: transform .45s cubic-bezier(.22,.9,.35,1);
}
.vthumb-slide { flex: 0 0 100%; height: 100%; }

@media (max-width: 640px) {
  .vthumb-carousel { flex-direction: column; }
  .vthumb-strip { flex-direction: row; flex: 0 0 auto; max-height: none; overflow-x: auto; overflow-y: hidden; padding-right: 0; padding-bottom: 4px; }
  .vthumb-item { flex: 0 0 78px; height: 52px; }
}
