/* Video Thumbnails Container */
.fancybox__video-thumbnails {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 1000;
  padding: 10px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 8px;
  backdrop-filter: blur(5px);
}

/* Individual Thumbnail */
.fancybox__video-thumbnail {
  position: relative;
  width: 80px;
  height: 60px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  background: #000;
}

.fancybox__video-thumbnail:hover,
.fancybox__video-thumbnail.thumbnail-hover {
  transform: scale(1.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.fancybox__video-thumbnail--active {
  border-color: #fff !important;
  transform: scale(1.1) !important;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Thumbnail Video */
.thumbnail-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* Thumbnail Overlay */
.thumbnail-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}

.fancybox__video-thumbnail:hover .thumbnail-overlay {
  background: rgba(0, 0, 0, 0.5);
}

/* Play Icon */
.thumbnail-overlay .play-icon {
  color: white;
  font-size: 16px;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.fancybox__video-thumbnail:hover .play-icon {
  opacity: 1;
  transform: scale(1.2);
}

.fancybox__video-thumbnail--active .play-icon {
  opacity: 1;
  color: #fff;
}

/* Thumbnail Number */
.thumbnail-number {
  position: absolute;
  top: 2px;
  right: 2px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  font-size: 10px;
  padding: 2px 4px;
  border-radius: 3px;
  line-height: 1;
  font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
  .fancybox__video-thumbnails {
    bottom: 10px;
    gap: 8px;
    padding: 8px;
  }
  
  .fancybox__video-thumbnail {
    width: 60px;
    height: 45px;
  }
  
  .thumbnail-overlay .play-icon {
    font-size: 12px;
  }
  
  .thumbnail-number {
    font-size: 8px;
    padding: 1px 3px;
  }
}

@media (max-width: 480px) {
  .fancybox__video-thumbnails {
    bottom: 5px;
    gap: 6px;
    padding: 6px;
  }
  
  .fancybox__video-thumbnail {
    width: 50px;
    height: 38px;
  }
  
  .thumbnail-overlay .play-icon {
    font-size: 10px;
  }
}

/* Custom Video Container Improvements */
.custom-video-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-video-player {
  width: 100%;
  height: 100%;
  position: relative;
}

.custom-video {
  width: 100% !important;
  height: auto !important;  
  object-fit: contain;
  max-height: 70vh !important;
}

/* Loading State */
.fancybox__video-thumbnail.loading {
  background: #333;
}

.fancybox__video-thumbnail.loading::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid #666;
  border-top: 2px solid #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}



/* Video Thumbnails Container */
.fancybox__video-thumbnails {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 1000;
  padding: 10px;
  background: transparent;  
}

/* Individual Thumbnail */
.fancybox__video-thumbnail {
  position: relative;
  width: 80px;
  height: 60px;
  border-radius: 0px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  background: rgba(0,0,0,0.5);
}

.fancybox__video-thumbnail:hover,
.fancybox__video-thumbnail.thumbnail-hover {
  transform: scale(1.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.fancybox__video-thumbnail--active {
  border-color: #fff !important;
  transform: scale(1.1) !important;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Thumbnail Image Container */
.thumbnail-image-container {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

/* Thumbnail Image */
.thumbnail-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  transition: transform 0.3s ease;
}

.fancybox__video-thumbnail:hover .thumbnail-image {
  transform: scale(1.05);
}

/* Thumbnail Video (fallback) */
.thumbnail-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* Thumbnail Overlay */
.thumbnail-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}

.fancybox__video-thumbnail:hover .thumbnail-overlay {
  background: rgba(0, 0, 0, 0.5);
}

.fancybox__video-thumbnail--active .thumbnail-overlay {
  background: rgba(0, 0, 0, 0.4);
}

/* Play Icon */
.thumbnail-overlay .play-icon {
  color: white;
  font-size: 16px;
  opacity: 0.8;
  transition: all 0.3s ease;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.fancybox__video-thumbnail:hover .play-icon {
  opacity: 1;
  transform: scale(1.2);
}

.fancybox__video-thumbnail--active .play-icon {
  opacity: 1;
  color: #fff;
  transform: scale(1.1);
}

/* Thumbnail Number */
.thumbnail-number {
  position: absolute;
  top: 2px;
  right: 2px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  font-size: 10px;
  padding: 2px 4px;
  border-radius: 3px;
  line-height: 1;
  font-weight: bold;
  text-shadow: none;
  display: none;
}

.fancybox__video-thumbnail--active .thumbnail-number {
  background: rgba(255, 255, 255, 0.9);
  color: #000;
}

/* Loading State */
.fancybox__video-thumbnail.loading {
  background: #333;
}

.fancybox__video-thumbnail.loading::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid #666;
  border-top: 2px solid #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 10;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Error State */
.thumbnail-image[src*="placeholder"] {
  opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
  .fancybox__video-thumbnails {
    bottom: 10px;
    gap: 8px;
    padding: 8px;
  }
  
  .fancybox__video-thumbnail {
    width: 60px;
    height: 45px;
  }
  
  .thumbnail-overlay .play-icon {
    font-size: 12px;
  }
  
  .thumbnail-number {
    font-size: 8px;
    padding: 1px 3px;
  }
}

@media (max-width: 480px) {
  .fancybox__video-thumbnails {
    bottom: 5px;
    gap: 6px;
    padding: 6px;
    max-width: 90%;
  }
  
  .fancybox__video-thumbnail {
    width: 50px;
    height: 38px;
  }
  
  .thumbnail-overlay .play-icon {
    font-size: 10px;
  }
  
  .thumbnail-number {
    font-size: 7px;
    padding: 1px 2px;
  }
}

/* Custom Video Container Improvements */
.custom-video-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-video-player {
  width: 100%;
  height: 100%;
  position: relative;
}

.custom-video {
  width: 100% !important;
  height: auto !important;
  max-height: 76vh !important;
  object-fit: contain;
}

/* Smooth transitions for all elements */
.fancybox__video-thumbnail * {
  transition: all 0.3s ease;
}

/******** */
.fancybox__content
{
  background: transparent !important;
}

.thumbnail-overlay
{
  display: none !important;
}



/************ PREVENT CLICKS ********/
.slider-fullpage-backgrounds__wrapper-content
{
    pointer-events: none !important;
}