video-banner-slider {
  display: block;
  position: relative;
  width: 100%;
  overflow: hidden;
}

.video-banner__carousel {
  width: 100%;
}

.video-banner__track {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.video-banner__slide {
  position: relative;
  width: 100%;
  flex-shrink: 0;
  overflow: hidden;
}

.video-banner__media {
  width: 100%;
  height: 100vh;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.video-banner__media video,
.video-banner__media iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* Hide the default play button overlay rendered by theme-video-media when autoplay is on */
.video-banner__media .theme-video-media__play-button,
.video-banner__media .theme-video-media__poster,
.video-banner__media .theme-video-media__poster-image,
.video-banner__media .theme-video-media__poster-play {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Overlay layer for text */
.video-banner__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
}

.video-banner__content {
  text-align: center;
  pointer-events: auto;
  max-width: 800px;
  padding: 20px;
}

/* Group container for global blocks (heading, description, button) */
.video-banner__group {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: var(--vb-margin-top, 0px);
  margin-right: var(--vb-margin-right, 0px);
  margin-bottom: var(--vb-margin-bottom, 0px);
  margin-left: var(--vb-margin-left, 0px);
}

/* Heading and description text - hardcoded white */
.video-banner__group .block-heading,
.video-banner__group .block-description {
  color: #fff !important;
  width: 100%;
}

/* Button inside the group - hardcoded white style
   - default: no border, no border-radius (square)
   - hover: black border (1px) - same border-radius
   - text uppercase
   - 50px top margin
   The global .button uses a box-shadow on ::after to draw a "border";
   we override --button-border-thickness to 0 by default and switch it on hover. */
.video-banner__group .button {
  --button-border-thickness: 0px !important;
  --button-border-radius: 0 !important;
  color: #000 !important;
  background-color: #fff !important;
  padding: 13px 33px !important; /* compensate removed border */
  margin-top: 50px !important;
  font-size: 12px !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  transition: opacity 0.2s ease, --button-border-thickness 0.2s ease;
}

.video-banner__group .button:hover {
  --button-border-thickness: 1px !important;
  --button-border-radius: 0 !important;
  background-color: #fff !important;
  color: #000 !important;
  opacity: 1 !important;
}

/* Single progress bar shared across all videos */
.video-banner__progress {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  height: 4px;
  width: 80%;
  max-width: 600px;
  background-color: rgba(255, 255, 255, 0.35);
  border-radius: 2px;
  overflow: visible;
  z-index: 3;
  cursor: pointer;
}

.video-banner__progress-fill {
  height: 100%;
  width: 0%;
  background-color: #fff;
  border-radius: 2px;
  transition: width 0.05s linear;
  pointer-events: none;
}

.video-banner__progress-dot {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 14px;
  height: 14px;
  background-color: #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
  display: block;
}

/* Arrow buttons (icons/arrow-circle is a horizontal left-pointing arrow with stroke=currentColor)
   - white color
   - hidden by default, show on hover over carousel */
.video-banner__arrow {
  position: absolute;
  top: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #fff !important;
  border: 0;
  cursor: pointer;
  z-index: 4;
  padding: 0;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.video-banner__arrow svg {
  width: 44px;
  height: 44px;
  color: #fff !important;
  fill: none;
}

.video-banner__arrow svg rect,
.video-banner__arrow svg path {
  stroke: #fff !important;
}

.video-banner__arrow--prev {
  left: 20px;
}

.video-banner__arrow--next {
  right: 20px;
  transform: translateY(-50%) scaleX(-1);
}

/* Show arrows when hovering the carousel */
.video-banner__carousel:hover .video-banner__arrow,
.video-banner__arrow:focus-visible {
  opacity: 1;
}

.video-banner__arrow:hover {
  opacity: 0.85 !important;
}

.video-banner__arrow:disabled {
  opacity: 0;
  cursor: not-allowed;
}

/* Mobile responsive */
@media (max-width: 959px) {
  .video-banner__media {
    height: 100vh;
  }

  .video-banner__group .button {
    padding: 11px 25px !important;
  }

  .video-banner__progress {
    bottom: 24px;
    width: 90%;
  }

  /* On touch devices, always show the arrows (no hover) */
  .video-banner__arrow {
    opacity: 1;
  }

  .video-banner__arrow {
    width: 36px;
    height: 36px;
  }

  .video-banner__arrow svg {
    width: 36px;
    height: 36px;
  }

  .video-banner__arrow--prev {
    left: 12px;
  }

  .video-banner__arrow--next {
    right: 12px;
  }
}
