  
/* ==========================================
   VERTICAL VIDEO SLIDER
========================================== */

.vertical-videos {
  --video-gap: 30px;
  --video-visible: 3;
  --video-accent: #947843;
  --video-yellow: #f2c039;

  width: 80%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 0;
}

.vertical-videos *,
.vertical-videos *::before,
.vertical-videos *::after {
  box-sizing: border-box;
}


/* ==========================================
   SLIDER LAYOUT
========================================== */

.video-slider {
  display: flex;
  align-items: center;
  gap: 40px;
  width: 100%;
}

/* ==========================================
   SCROLLABLE VIEWPORT
========================================== */

.video-viewport {
  flex: 1 1 auto;
  min-width: 0;

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

  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;

  scrollbar-width: none;
  -ms-overflow-style: none;
}

.video-viewport::-webkit-scrollbar {
  display: none;
}

.video-viewport:focus-visible {
  outline: 3px solid var(--video-accent);
  outline-offset: -3px;
}

/* ==========================================
   VIDEO TRACK
========================================== */

.video-track {
  display: flex;
  gap: var(--video-gap);
  align-items: stretch;
}

/* ==========================================
   VIDEO SLIDES
========================================== */

.video-slide {
  position: relative;

  flex: 0 0 calc(
    (100% - (var(--video-visible) - 1) * var(--video-gap))
    / var(--video-visible)
  );

  min-width: 0;
  aspect-ratio: 9 / 16;

  overflow: hidden;
  background: #111;
  border-radius: 12px;

  scroll-snap-align: start;
  scroll-snap-stop: always;
}

/* ==========================================
   VIDEO EMBEDS
========================================== */

.video-slide iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: none;
}

/* ==========================================
   VIDEO PLAY BUTTON
========================================== */

.video-play {
  position: absolute;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  height: 100%;
  padding: 0;

  border: none;
  background: transparent;
  cursor: pointer;
}

/* Optional Thumbnail */

.video-thumbnail {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;
}


/* ==========================================
   UNCP VIDEO PLAY BUTTON
========================================== */

.video-play-icon {
  position: relative;
  z-index: 1;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 75px;
  height: 75px;
  flex-shrink: 0;

  border: none;
  border-radius: 50%;
  background-color: #f2c039;

  color: #000;
  font-size: 32px;

  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

/* Center Font Awesome icon */
.video-play-icon .fa-play {
  margin-left: 4px;
}

/* Gold background and white icon on hover/focus */
.video-play:hover .video-play-icon,
.video-play:focus-visible .video-play-icon {
  background-color: #947843;
  color: #fff;
}

/* Keyboard accessibility */
.video-play:focus-visible {
  outline: 3px solid #f2c039;
  outline-offset: -3px;
  z-index: 2;
}

/* Mobile */
@media (max-width: 600px) {
  .video-play-icon {
    width: 60px;
    height: 60px;
    font-size: 26px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .video-play-icon {
    transition: none;
  }
}


/* ==========================================
   NAVIGATION ARROWS
========================================== */

.video-arrow {
  display: flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 42px;
  width: 42px;
  height: 42px;

  padding: 0;

  border: none;
  border-radius: 50%;

  background: var(--video-accent);
  color: #fff;

  font-size: 22px;
  line-height: 1;

  cursor: pointer;

  transition: background-color 0.2s ease;
}

.video-arrow:hover:not(:disabled) {
  background: #755e32;
}

.video-arrow:focus-visible {
  outline: 3px solid #222;
  outline-offset: 3px;
}

.video-arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* Hide arrows when videos fit */

.video-slider.no-scroll .video-arrow {
  display: none;
}

/* ==========================================
   OPTIONAL FOLLOW US LINK
========================================== */

.video-follow {
  margin-top: 30px;
  text-align: center;
}


/* ==========================================
   ACCESSIBILITY
========================================== */

.vertical-videos .sr-only {
  position: absolute;

  width: 1px;
  height: 1px;

  padding: 0;
  margin: -1px;

  overflow: hidden;
  clip: rect(0, 0, 0, 0);

  white-space: nowrap;
  border: 0;
}

/* ==========================================
   TABLET - 2 VIDEOS
========================================== */

@media (max-width: 991px) {
  .vertical-videos {
    --video-visible: 2;
    --video-gap: 8px;

    width: 90%;
  }

  .video-slider {
    gap: 25px;
  }
}

/* ==========================================
   MOBILE - 1 VIDEO WITH PEEK
========================================== */

@media (max-width: 600px) {
  .vertical-videos {
    --video-gap: 8px;

    width: 100%;
    padding: 15px 0;
  }

  .video-slider {
    gap: 15px;
  }

  .video-arrow {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;

    font-size: 16px;
  }

  .video-slide {
    flex: 0 0 82%;
    scroll-snap-align: center;
  }

  .video-track {
    padding-inline: 9%;
  }

  .video-play-icon {
    width: 60px;
    height: 60px;
  }

  .video-follow {
    margin-top: 20px;
  }

  .video-follow-link {
    padding: 10px 16px;
    font-size: 14px;
  }
}

/* ==========================================
   REDUCED MOTION
========================================== */

@media (prefers-reduced-motion: reduce) {
  .video-viewport {
    scroll-behavior: auto;
  }

  .video-arrow,
  .video-play-icon,
  .video-follow-link {
    transition: none;
  }
}
