/*  */
.video-gallery {
    width: 100%;
    background-color: #000;
    color: #fff;
    padding: 2rem 1rem;
  }
  
  .container {
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .gallery-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
  }
  
  /* Carousel Container */
  .carousel-container {
    position: relative;
  }
  
  /* Carousel */
  .carousel {
    display: flex;
    /* gap: 1rem; */
    gap: 10px;
    justify-content: space-evenly;
    overflow-x: auto;
    padding-bottom: 1.5rem;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    
    /* Hide scrollbar */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
  }
  
  .carousel::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
  }
  
  /* Video Item */
  .video-item {
    flex-shrink: 0;
    width: 100%;
    max-width: 350px;
    scroll-snap-align: start;
    padding: 10px;
  }

  .video-item:nth-of-type(even) {
    border-left: 1px solid #393939;
    border-right: 1px solid #393939;
  }
  
  .video-thumbnail {
    position: relative;
    aspect-ratio: 4 / 3;
    max-width:500px;
    background-color: #333;
    border-radius: 2px;
    overflow: hidden;
  }
  
  .video-title:focus{
      color:#FECD06 !important;
  }

  .thumbnail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  /* Logo overlay */
  .logo-overlay {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    color: white;
    font-weight: bold;
    font-size: 13px;
  }
  
  /* Badge */
  .badge-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
  }
  
  .badge {
    background-color: #22c55e;
    color: white;
    padding: 0.25rem 1rem;
    font-weight: bold;
    font-size: 1.25rem;
  }
  
  .badge-subtitle {
    color: #22c55e;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    text-align: center;
  }
  
  /* Play button */
  .play-button {
    position: absolute;
    bottom: 0.5rem;
    left: 0.5rem;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Duration */
  .duration {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 0 0.25rem;
    font-size: 0.75rem;
  }
  
  /* Video title */
  .video-title {
    margin-top: 0.5rem;
    font-size: 1.2rem;
    font-weight: 500;
    color: #fff;
    font-weight: bold;
    
    /* Limit to 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  
  .video-title:hover{
    text-decoration: underline;
  }
  /* Navigation buttons */
  .nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    padding: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
  }
  
  .nav-button:hover {
    background-color: rgba(0, 0, 0, 0.9);
  }
  
  .prev-button {
    left: 0;
    margin-left: -1rem;
  }
  
  .next-button {
    right: 0;
    margin-right: -1rem;
  }
  
  /* Subscribe button */
  .subscribe-container {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .subscribe-button {
    background-color: #e50914;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.5rem 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
  }
  
  .subscribe-button:hover {
    background-color: #f40612;
  }
  
  /* Indicator dots */
  .indicator-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
  }
  
  .dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background-color: #4b5563;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
  }
  
  .dot:hover {
    background-color: #9ca3af;
  }
  
  .dot.active {
    background-color: white;
  }
  
  /* Responsive adjustments */
  @media (max-width: 768px) {
    .video-gallery {
      padding: 1.5rem 0.5rem;
    }
    
    .nav-button {
      padding: 0.25rem;
    }
    
    .prev-button {
      margin-left: -0.5rem;
    }
    
    .next-button {
      margin-right: -0.5rem;
    }
  }


  /* POPUP */
  .popup { position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(0, 0, 0, 0.8); display: flex; align-items: center; justify-content: center; z-index:99999;}
.popup-content { position: relative; width: 80%; max-width: 800px; }
.popup-content iframe { width: 100%; height: 400px; }
.close-btn { position: absolute; top: 10px; right: 10px; background: red; color: white; 
        border: none; padding: 5px 10px; cursor: pointer; }