/* YouTube Carousel Styling - Modern and Responsive */

.youtube-carousel {
  border: 1px solid #ddd;
  border-radius: 4px;
  margin: 2rem 0;
  background-color: #000;
}

/* Hide non-active carousel items */
.carousel-item {
  display: none;
}

.carousel-item.active {
  display: block;
}

/* Responsive video container */
.video-container {
  position: relative;
  padding-bottom: 56.25%;
  padding-top: 0;
  overflow: hidden;
  margin: 0;
}

.video-container iframe,
.video-container object,
.video-container embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Bootstrap 4 Carousel controls */
.carousel-control-prev,
.carousel-control-next {
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 1;
  transition: opacity 0.3s ease;
  border-radius: 4px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 0.7;
  text-decoration: none;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 40px;
  height: 40px;
}

.sr-only {
  display: none;
}

.carousel-caption {
  display: block;
  background: rgba(0, 0, 0, 0.7);
  bottom: 0;
  font-size: 14px;
  text-align: center;
  opacity: 1;
  padding: 10px;
  z-index: 11;
  color: #fff;
}

.controls {
  display: none;
}

/* Responsive adjustments */
@media screen and (min-width: 768px) {
  .carousel-control-prev-icon,
  .carousel-control-next-icon {
    width: 50px;
    height: 50px;
  }

  .carousel-caption {
    font-size: 16px;
    padding: 15px;
  }
}

@media screen and (min-width: 992px) {
  .carousel-caption {
    font-size: 18px;
    padding: 20px;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .youtube-carousel {
    border-color: #444;
    background-color: #1a1a1a;
  }
}
