﻿/* Gallery Styles */
.gallery-item {
  display: block;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.gallery-item img {
  transition: transform 0.5s ease;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item:hover img {
  transform: scale(1.03);
}

.gallery-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
  opacity: 1;
}

/* Slider Gallery Styles */
.events-gallery-slider {
  height: 600px;
  margin-bottom: 20px;
  border-radius: 8px;
  overflow: hidden;
}

.events-gallery-slider .swiper-slide {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f8f9fa;
}

.events-gallery-slider img,
.events-gallery-slider video {
  max-height: 100%;
  width: 100%;
  object-fit: contain;
}

/* Video container styles */
.events-gallery-slider .video-container {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.events-gallery-slider .video-container video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: #000;
}

/* For full-height videos */
.events-gallery-slider .full-height-video {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #000;
  overflow: hidden;
}

.events-gallery-slider .full-height-video video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.events-gallery-thumbs {
  height: 100px;
  box-sizing: border-box;
  padding: 10px 0;
}

.events-gallery-thumbs .swiper-slide {
  width: 150px;
  opacity: 0.5;
  cursor: pointer;
  overflow: hidden;
  transition: opacity 0.3s ease;
}

.events-gallery-thumbs .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Video thumbnail styles */
.events-gallery-thumbs .video-thumbnail {
  width: 100%;
  height: 100%;
  background-color: #212529;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.events-gallery-thumbs .video-thumbnail .bx-video {
  opacity: 0.1;
}

.events-gallery-thumbs .video-thumbnail .bx-play-circle {
  position: absolute;
  font-size: 2rem;
  color: #fff;
  opacity: 0.9;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.events-gallery-thumbs .swiper-slide:hover .bx-play-circle {
  transform: scale(1.1);
  opacity: 1;
}

.events-gallery-thumbs .swiper-slide-thumb-active {
  opacity: 1;
  border: 2px solid #3c63da;
}

.swiper-button-next,
.swiper-button-prev {
  color: #fff;
  background: rgba(0, 0, 0, 0.3);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  --swiper-navigation-size: 20px;
}

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

@media (min-width: 992px) {
  .swiper-button-next,
  .swiper-button-prev {
    width: 50px;
    height: 50px;
    --swiper-navigation-size: 24px;
  }
}

.swiper-pagination-bullet {
  width: 10px;
  height: 10px;
}

.swiper-pagination-bullet-active {
  background: #3c63da;
}

@media (max-width: 767px) {
  .events-gallery-slider {
    height: 300px;
  }
  
  .events-gallery-thumbs {
    height: 60px;
  }
  
  .events-gallery-thumbs .swiper-slide {
    width: 80px;
    height: 60px;
  }
}

@media (min-width: 992px) {
  .events-gallery-slider {
    height: 700px;
  }
}

@media (min-width: 1200px) {
  .events-gallery-slider {
    height: 800px;
  }
}

/* Video controls */
.video-mute-toggle {
  position: absolute;
  bottom: 15px;
  right: 15px;
  background-color: rgba(255, 255, 255, 0.7);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
  opacity: 0.7;
}

.video-mute-toggle:hover {
  opacity: 1;
  background-color: rgba(255, 255, 255, 0.9);
}

.events-gallery-slider .swiper-slide:hover .video-mute-toggle,
.full-height-video:hover .video-mute-toggle {
  opacity: 1;
} 