/* Container aspect height ratio matching your screenshot mockup */
.video-gallery-section {
  min-height: 850px;
  height: 100vh;
  /* Scaled full screen viewport height */
  background-color: #000;
}

/* Base Dark Vignette Overlay */
.video-overlay {
  background: linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.45));
  z-index: 1;
}

/* Typography Custom Rules */
.ui-layer {
  z-index: 2;
  transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.4s;
  position: relative;
  top: 40%;
  transform: translateY(-50%);
}

.video-gallery-section h3 {

  font-size: 36px;
  letter-spacing: 4px;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.video-gallery-section h2 {
  font-family: "Great Vibes", cursive;
  font-size: 150px;
  color: #f1b335;
  /* Premium golden tone matching handles/accents */
  line-height: 1;
  text-shadow: 2px 3px 15px rgba(0, 0, 0, 0.6);
  margin-top: -10px !important;
}

/* Big Central Play Button Styling */
.central-play-btn {
  background-color: #d61c38;
  /* Signature Red tone */
  width: 120px;
  height: 120px;
  opacity: .8;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.central-play-btn i {
  font-size: 3rem;
  margin-left: 6px;
  /* Offsets triangle icon horizontally to optical center */
}

.central-play-btn:hover {
  background-color: #be122b;
  transform: scale(1.08);
}

/* Thumbnails Panel Rules */
.thumbnails-container {
  z-index: 3;
  /* Kept safely above video and interactive overlays */
}

.video-thumb {
  width: 200px;
  height: 150px;
  cursor: pointer;
  scroll-snap-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.video-thumb img {
  transition: transform 0.3s ease;
}

.video-thumb span:first-child {
  text-transform: uppercase;
  font-weight: 200;
  font-size: 14px;
  letter-spacing: 5px;
}

.video-thumb span:last-child {
  color: #ccc;
}

/* Thumbnail Overlay Gradient Context */
.thumb-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 15px;
  background: linear-gradient(transparent 30%, rgba(0, 0, 0, 0.85));
  transition: background-color 0.25s ease;
}

/* Hover Adjustments */
.video-thumb:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.6);
}

/* ACTIVE Status Selection Overlay styling */
.video-thumb.active {
  border-color: #d61c38;
  box-shadow: 0 0 12px rgba(214, 28, 56, 0.4) !important;
}

.video-thumb.active .thumb-overlay {
  background: rgba(214, 28, 56, 0.45);
  /* Gives that pinkish-red filter effect seen on thumb 1 */
}

.scrollable-thumb-row {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;

  /* Smooth Touch Interactivity */
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;

  /* Padding fix for mobile views to prevent bounding clipping */
  padding: 10px 20px;
}

/* Hide Scrollbar tracks cleanly across all web engines */
.scrollable-thumb-row::-webkit-scrollbar {
  display: none;
  /* Safari and Chrome */
}

.scrollable-thumb-row {
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
}

.main-video::-webkit-media-controls-enclosure {
  display: none !important;
}

/* Force native controls to appear beautifully on hover only when the video is actually playing */
.main-video.video-playing:hover::-webkit-media-controls-enclosure {
  display: flex !important;
}

.ui-layer.playing-state {
  pointer-events: none;
}

/* Ensure the background video explicitly accepts hover interactions */
.main-video {
  pointer-events: auto !important;
  z-index: 0;
}

@media(min-width:1400px) {
  .video-gallery-section {
    min-height: 850px;

  }

  .video-gallery-section h3 {
    font-size: 48px;
  }

  .video-gallery-section h2 {
    font-size: 200px;
  }

  .video-thumb {
    width: 300px;
    height: 200px;
  }
}

@media(max-width:992px) {
  .video-gallery-section {
    margin-top: 81px;
    min-height: 720px;
  }

  .video-thumb {
    width: 190px;
    height: 140px;

  }

}

/* Responsive break tweaks */
@media (max-width: 768px) {
  .script-title {
    font-size: 3.2rem;
  }

  .central-play-btn {
    width: 70px;
    height: 70px;
  }

  .central-play-btn i {
    font-size: 2.2rem;
    margin-left: 4px;
  }

  .video-thumb {
    width: 125px;
    height: 90px;
  }

  .scrollable-thumb-row {
    justify-content: flex-start !important;
  }

  .thumb-overlay {
    background-color: rgba(0, 0, 0, 0.9);
    padding: 5px;
  }

  .video-thumb span:first-child {
    letter-spacing: 2px;
    font-size: 12px;
  }



  .video-gallery-section {
    max-height: 500px;
    min-height: 500px;
  }

  .video-gallery-section h3 {
    font-size: 36px;
    padding-bottom: 20px;
  }

  .video-gallery-section h2 {
    font-size: 70px;
  }
}