.video-slider-container {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.video-slider-wrapper {
  position: relative;
  width: 100%;
  height: 730px;
}

.video-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.video-slide.active {
  opacity: 1;
  z-index: 2;
}

.video-slide video,
.video-slide iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overlay-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4); /* adjust darkness here */
  z-index: 1;
}

.overlay-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  background: rgba(0, 0, 0, 0.6);
  padding: 20px 30px;
  border-radius: 8px;
  text-align: center;
  max-width: 90%;
  z-index: 2; /* sits above overlay-layer */
}
.overlay-text h2 {
    font-size: 50px;
}

.video-slider-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 10;
}

.video-slider-nav button {
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
    font-size: 20px !important;
    padding: 7px 9px !important;
    cursor: pointer !important;
  pointer-events: all;
  z-index: 3;
}
@media (max-width:768px){
  .video-slider-wrapper {
    position: relative;
    width: 100%;
    height: 330px;
}
.overlay-text h2 {
    font-size: 30px;
}
.overlay-text p {
    font-size: 15px;
    line-height: 18px;
}
.overlay-text {
    padding: 0;

}
.overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    background: rgba(0, 0, 0, 0.6);
    padding: 20px 30px;
    border-radius: 8px;
    text-align: center;
    max-width: 100%;
    z-index: 2;
    width: 100%;
}
}