/* Wheels On Demand — short-form vehicle video gallery.
   Additive only, reuses the site's own tokens so it matches without
   touching shared stylesheets. */

.vgallery-section { padding: 40px 0; background: var(--cream); }
.vgallery-section .section-head { margin-bottom: 22px; }

.vgallery-strip {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
  -webkit-overflow-scrolling: touch;
}
.vgallery-strip::-webkit-scrollbar { height: 6px; }
.vgallery-strip::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 99px; }

.vgallery-card {
  flex: 0 0 168px;
  scroll-snap-align: start;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
}

.vgallery-thumb {
  position: relative;
  aspect-ratio: 9 / 16;
  background: var(--navy-800);
  border-radius: var(--r-lg, 16px);
  overflow: hidden;
}
.vgallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.vgallery-card:hover .vgallery-thumb img { transform: scale(1.06); }

.vgallery-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 20, 40, .18);
}
.vgallery-play svg { width: 44px; height: 44px; filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .55)); }

.vgallery-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 10px 12px;
  background: linear-gradient(to top, rgba(6, 12, 30, .85), transparent 70%);
  color: #fff;
}
.vgallery-title { font-size: 12.5px; font-weight: 700; line-height: 1.25; }
.vgallery-price { font-size: 11px; color: #d3d8ea; margin-top: 3px; font-family: 'JetBrains Mono'; }

@media (max-width: 560px) {
  .vgallery-card { flex-basis: 138px; }
}

/* Single vehicle page — "Watch video" pill on the main photo */
.vdp-watch-video {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px 9px 12px;
  border: 0;
  border-radius: 99px;
  background: rgba(10, 20, 40, .65);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s, transform .15s;
}
.vdp-watch-video:hover { background: var(--red-600); transform: translateY(-1px); }

/* Fullscreen vertical player */
.vplayer-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(5, 10, 25, .92);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity .18s ease;
}
.vplayer-overlay.open { opacity: 1; }

.vplayer-frame {
  position: relative;
  width: min(92vw, 420px);
  aspect-ratio: 9 / 16;
  max-height: 78vh;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
}
.vplayer-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.vplayer-info {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.vplayer-title { color: #fff; font-weight: 700; font-size: 14px; text-shadow: 0 2px 8px rgba(0, 0, 0, .5); }

.vplayer-close {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 5;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vplayer-close:hover { background: var(--red-600); }

.vplayer-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vplayer-nav:hover { background: rgba(255, 255, 255, .22); }
.vplayer-nav.prev { left: 18px; }
.vplayer-nav.next { right: 18px; }

@media (max-width: 560px) {
  .vplayer-nav { width: 38px; height: 38px; font-size: 20px; }
  .vplayer-nav.prev { left: 8px; }
  .vplayer-nav.next { right: 8px; }
  .vplayer-frame { width: 100%; max-height: 72vh; }
}
