/* 
 * Стили для галереи в виде карусели
 * Добавлено: 2025-05-04
 */

.gallery-swiper {
  width: 100%;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
  border-radius: 5px;
}

.gallery-swiper .swiper-slide {
  height: 300px;
}

.gallery-slide {
  height: 100%;
  width: 100%;
  position: relative;
}

.gallery-slide a {
  display: block;
  height: 100%;
  width: 100%;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-slide .caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 18, 40, 0.7);
  color: white;
  padding: 15px;
  font-size: 16px;
}

.gallery-swiper .swiper-button-next,
.gallery-swiper .swiper-button-prev {
  color: white;
  background: rgba(0, 18, 40, 0.5);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-swiper .swiper-button-next:after,
.gallery-swiper .swiper-button-prev:after {
  font-size: 18px;
}

.gallery-swiper .swiper-pagination {
  bottom: 15px;
}

.gallery-swiper .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: white;
  opacity: 0.7;
}

.gallery-swiper .swiper-pagination-bullet-active {
  opacity: 1;
  background: #003366;
}

/* Адаптивные стили */
@media (max-width: 991px) {
  .gallery-swiper .swiper-slide {
    height: 250px;
  }
}

@media (max-width: 767px) {
  .gallery-swiper .swiper-slide {
    height: 200px;
  }
  
  .gallery-slide .caption {
    padding: 10px;
    font-size: 14px;
  }
}
