/**
 * Photo Slider Widget Styles
 * 
 * @package MG LeadBuilder
 * @since 2025.12.10
 */

/* Photo Slider Wrapper */
.mg-photo-slider-wrapper {
  position: relative;
  width: 100%;
}

/* Photo Slider */
.mg-photo-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.mg-photo-slider .swiper-wrapper {
  display: flex;
  align-items: stretch;
}

.mg-photo-slider .swiper-slide {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mg-photo-slide {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

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

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

/* Caption */
.mg-photo-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: #ffffff;
  padding: 1.5rem;
  font-size: 1rem;
  line-height: 1.5;
  text-align: center;
}

/* Navigation Arrows */
.mg-photo-slider-nav {
  color: #ffffff;
  background-color: rgba(0, 0, 0, 0.3);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.mg-photo-slider-nav:hover {
  background-color: rgba(0, 0, 0, 0.6);
}

.mg-photo-slider-nav::after {
  font-size: 20px;
  font-weight: bold;
}

.mg-photo-slider-nav.swiper-button-disabled {
  opacity: 0.35;
  cursor: auto;
  pointer-events: none;
}

/* Pagination */
.mg-photo-slider-pagination {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.mg-photo-slider-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: #ffffff;
  opacity: 0.5;
  margin: 0 4px;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.mg-photo-slider-pagination .swiper-pagination-bullet-active {
  opacity: 1;
  transform: scale(1.2);
}

/* Responsive */
@media (max-width: 768px) {
  .mg-photo-slider-nav {
    width: 36px;
    height: 36px;
  }

  .mg-photo-slider-nav::after {
    font-size: 16px;
  }

  .mg-photo-caption {
    padding: 1rem;
    font-size: 0.875rem;
  }
}
