.youtube-gallery {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  border: 2px;
}

.youtube-player {
  max-width: 1200px;
  margin: auto;
  background: #000;
  border-radius: 14px;
  position: relative;
  overflow: visible !important;
  padding-bottom: 0 !important;
}
.youtube-player.landscape iframe {
  min-height: 680px !important;
}

.youtube-player.portrait iframe {
  min-height: 900px !important;
  max-width: 520px;
  margin: auto;
}

.youtube-player iframe {
  width: 100% !important;
  height: auto;
  min-height: 900px !important;
  border: 0;
  display: block;
}
@media (max-width: 768px) {
  .youtube-player,
  .youtube-player iframe {
    height: 280px !important;
  }
}

.youtubeCarousel {
  max-width: 900px;
  margin: 0 auto;
  margin-top: 10px;
}

.youtube-item {
  cursor: pointer;
  background: #fff;
  border-radius: 12px;
  text-align: center;
  position: relative;
}

.youtube-item img {
  width: 100%;
  display: block;
  
}
.youtube-item.active img {
  filter: blur(3px) brightness(0.7);
  transform: scale(1.05);
  transition: 0.3s ease;
  object-fit: contain; /* Papar penuh tanpa crop */
  background: #000;
  border-radius: 10px;
  flex-shrink: 0;
}

.youtube-title {
 position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;

  padding: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;

  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);

  opacity: 0;
  transform: translateY(20px);
  transition: 0.3s ease;
}

.swiper {
  width: 100%;
}

.swiper-wrapper {
  display: flex;
  align-items: center;
}
.swiper-slide {
  opacity: 0.6;
  transform: scale(0.9);
  transition: 0.3s;
}

.swiper-slide-active {
  opacity: 1;
  transform: scale(1);
}
.thumb-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.thumb-wrapper img {
  width: 100%;
  display: block;
}
.youtube-item:hover img {
  transform: scale(1.05);
  transition: 0.3s;
}
.youtube-item:hover .youtube-title {
  transform: translateY(0);
}
.youtube-item.active::before {
  margin-top: 20px;
  content: "▶";
  position: absolute;
  font-size: 30px;
  color: #fff;
  z-index: 2;
}
.youtube-item.active .youtube-title {
  transform: translateY(0);
}

