/* Video page: banner, thumbnail grid, and expanded viewer */

/* ---------- Banner ---------- */

.video-hero {
  position: relative;
  height: clamp(220px, 28vw, 390px);
  overflow: hidden;
  background: linear-gradient(120deg, #2f3540, #181c21);
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% 88%;  /* keeps the camera operator in frame on wide screens */
}

/* Tint over the photo so the title reads clearly */
.video-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(12, 20, 30, 0.5);
}

.video-hero h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #fff;
  font-family: 'Quicksand', sans-serif;
  font-weight: 300;
  font-style: normal;
  font-size: clamp(48px, 6.5vw, 92px);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* ---------- Grid ---------- */

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  row-gap: 64px;
  padding: 110px 46px 120px;
}

.video-card {
  display: block;
  color: var(--ink);
}

.video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #222;
}

.video-thumb img,
.video-thumb .thumb-standin {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.video-thumb img { display: block; }

.video-card:hover .video-thumb img,
.video-card:hover .video-thumb .thumb-standin { transform: scale(1.03); }

.video-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.3s ease;
}

.video-card:hover .video-thumb::after { background: rgba(0, 0, 0, 0.15); }

.video-duration {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 1;
  color: #fff;
  font-size: 14px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.thumb-standin {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}

.thumb-standin span {
  color: rgba(255, 255, 255, 0.85);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: clamp(18px, 2vw, 30px);
  text-transform: uppercase;
  line-height: 1.1;
}

.video-info {
  padding: 34px 25px 0;
}

.video-source {
  margin: 0 0 14px;
  font-size: 15px;
}

.video-title {
  margin: 0 0 14px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 400;
  font-size: 28px;
  line-height: 1.12;
  letter-spacing: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-desc {
  margin: 0;
  font-size: 16px;
  line-height: 1.15;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- Expanded viewer ---------- */

body.vx-open { overflow: hidden; }

.vx {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #000;
  color: #fff;
  display: flex;
  flex-direction: column;
}

.vx[hidden] { display: none; }

.vx button {
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
  padding: 0;
}

.vx-close {
  position: absolute;
  top: 14px;
  right: 22px;
  z-index: 3;
  font-size: 34px !important;
  line-height: 1;
  opacity: 0.8;
}

.vx-close:hover { opacity: 1; }

.vx-main {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 42px 80px;
}

.vx-stage {
  display: flex;
  gap: 40px;
  align-items: stretch;
}

.vx-player {
  position: relative;
  width: min(990px, calc(100vw - 160px - 460px), calc((100vh - 330px) * 16 / 9));
  aspect-ratio: 16 / 9;
  background: #111;
  overflow: hidden;
  flex-shrink: 0;
}

.vx-player > img,
.vx-player > .thumb-standin {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vx-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.vx-poster {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 30px 60px;
  text-align: center;
  background: rgba(10, 14, 22, 0.6);
}

.vx-poster-source {
  margin: 0;
  font-size: 16px;
  opacity: 0.85;
}

.vx-poster-title {
  margin: 0;
  font-size: clamp(22px, 2.6vw, 38px);
  font-weight: 400;
  line-height: 1.25;
}

.vx-play {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  font-size: 19px !important;
}

.vx-play-circle {
  width: 48px;
  height: 48px;
  border: 2px solid #fff;
  border-radius: 50%;
  position: relative;
  transition: background 0.2s ease;
}

.vx-play-circle::after {
  content: '';
  position: absolute;
  left: 18px;
  top: 14px;
  border-left: 15px solid #fff;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
}

.vx-play:hover .vx-play-circle { background: rgba(255, 255, 255, 0.15); }

.vx-panel {
  position: relative;
  width: 440px;
  flex-shrink: 0;
}

.vx-panel-scroll {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  padding-right: 26px;
  scrollbar-width: thin;
  scrollbar-color: #bbb #fff;
}

.vx-panel-scroll::-webkit-scrollbar { width: 14px; }
.vx-panel-scroll::-webkit-scrollbar-track { background: #fff; }
.vx-panel-scroll::-webkit-scrollbar-thumb { background: #c4c4c4; border: 3px solid #fff; border-radius: 8px; }

.vx-title {
  margin: 0 0 30px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 400;
  font-size: 29px;
  line-height: 1.38;
  letter-spacing: 0;
}

.vx-meta {
  margin: 0 0 40px;
  font-size: 14px;
  color: #bdbdbd;
  white-space: pre;
}

.vx-desc {
  font-size: 18px;
  line-height: 1.95;
}

.vx-desc p { margin: 0 0 1.95em; }

.vx-next,
.vx-prev {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 48px;
  opacity: 0.85;
}

.vx-next { right: 26px; }
.vx-prev { left: 26px; }
.vx-next:hover, .vx-prev:hover { opacity: 1; }

.vx-next svg, .vx-prev svg,
.vx-strip-next svg, .vx-strip-prev svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ---------- Bottom strip ---------- */

.vx-strip-wrap {
  position: relative;
  flex-shrink: 0;
}

.vx-strip {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #888 #222;
}

.vx-strip-item {
  position: relative;
  flex: 0 0 auto;
  height: 190px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.vx-strip-item img,
.vx-strip-item .thumb-standin {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vx-strip-item img { display: block; }

.vx-strip-item .thumb-standin span { font-size: 18px; }

.vx-strip-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  padding: 22px 18px;
  text-align: left;
  font-size: 16px;
  line-height: 1.3;
  background: rgba(10, 14, 22, 0.55);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.vx-strip-item.active .vx-strip-label,
.vx-strip-item:hover .vx-strip-label,
.vx-strip-item:focus-visible .vx-strip-label { opacity: 1; }

.vx-strip-next,
.vx-strip-prev {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 40px;
  z-index: 2;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.8));
}

.vx-strip-next { right: 14px; }
.vx-strip-prev { left: 14px; }

/* ---------- Smaller screens ---------- */

@media (max-width: 1100px) {
  .video-grid { grid-template-columns: repeat(2, 1fr); padding: 70px 30px 90px; }
  .vx { overflow-y: auto; }
  .vx-main { flex: none; padding: 56px 20px 24px; }
  .vx-stage { flex-direction: column; gap: 24px; width: 100%; max-width: 760px; }
  .vx-player { width: 100%; }
  .vx-panel { width: 100%; }
  .vx-panel-scroll { position: static; max-height: none; padding-right: 0; }
  .vx-next, .vx-prev { display: none; }
  .vx-strip-item { height: 120px; }
}

@media (max-width: 640px) {
  .video-grid { grid-template-columns: 1fr; padding: 48px 0 70px; }
  .video-info { padding: 24px 22px 0; }
  .video-title { font-size: 24px; }
  .vx-title { font-size: 24px; margin-bottom: 16px; }
  .vx-meta { margin-bottom: 20px; }
  .vx-desc { font-size: 16px; line-height: 1.75; }
}

/* Stand-in tiles: the player and active strip item already show the title */
.vx-player .thumb-standin span,
.vx-strip-item.active .thumb-standin span,
.vx-strip-item:hover .thumb-standin span { visibility: hidden; }
