/* Swiper.js Video Coverflow Slider Styles */

.wtn-video-slider-container {
  width: 100%;
  padding: 30px 0;
}

.swiper.wtn-video-slider {
  width: 100%;
  padding-top: 50px;
  padding-bottom: 50px;
}

.swiper-slide {
  position: relative; /* Needed to position the overlay */
  background-position: center;
  background-size: cover;
  width: 300px;
  /* Height will be auto based on video aspect ratio */
}

.unmute-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  cursor: pointer;
  z-index: 10;
  opacity: 1;
  transition: opacity 0.3s ease;
  border-radius: 10px; /* Match video border-radius */
}

.unmute-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.unmute-overlay .dashicons {
  font-size: 48px;
  width: 48px;
  height: 48px;
  line-height: 1;
}

.swiper-slide video {
  display: block;
  width: 100%;
  height: auto; /* Maintain aspect ratio */
}

/* Make sure non-active slides are visible for coverflow */
.swiper-slide {
  transition: transform 0.4s ease-out, filter 0.4s ease-out;
  filter: brightness(0.5);
}

.swiper-slide-active {
  filter: brightness(1);
}

/* Navigation Buttons */
.swiper-button-next,
.swiper-button-prev {
  color: #ffffff; /* White arrows */
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  transition: background-color 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 24px;
  font-weight: bold;
}

/* Pagination */
.swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.8);
  opacity: 0.6;
}

.swiper-pagination-bullet-active {
  background: #ffffff;
  opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .swiper-slide {
    width: 280px; /* Adjust slide width for smaller screens */
  }
}

@media (max-width: 480px) {
  .swiper-slide {
    width: 220px; /* Further adjust for mobile */
  }

  .swiper-button-next,
  .swiper-button-prev {
    width: 36px;
    height: 36px;
  }

  .swiper-button-next::after,
  .swiper-button-prev::after {
    font-size: 20px;
  }
}
