/*
 * Image Slider Album - Premium Styling
 */

:root {
  --isa-primary: #ed1c24;
  /* Red */
  --isa-secondary: #0068ff;
  /* Blue */
  --isa-white: #ffffff;
  --isa-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.isa-slider-wrapper {
  position: relative;
  width: 100%;
  margin: 0px 0;
  /* Space for pagination dots inside the overflow:hidden container */
  overflow: hidden;
  background: transparent;
  padding-bottom: 0px;
}

.isa-slider-wrapper .swiper-slide {
  position: relative;
  display: block;
  width: 100%;
  background: transparent;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #eee;
  background-color: #fff;
  aspect-ratio: 1 / 1;
}

/* Aspect Ratio Fallback for older iOS versions */
@supports not (aspect-ratio: 1/1) {
  .isa-slider-wrapper .swiper-slide::before {
    content: "";
    display: block;
    padding-top: 100%;
  }
}

.isa-slider-wrapper .swiper-slide img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  border-radius: 10px;
  padding: 10px;
}

/* Custom Navigation Buttons */
.isa-slider-wrapper .swiper-button-next,
.isa-slider-wrapper .swiper-button-prev {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  color: var(--ms-primary);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  border: 1px solid #eee;
  /* Center vertically relative to slides */
  top: 50% !important;
  bottom: auto !important;
  transform: translateY(-50%) !important;
  margin-top: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  opacity: 0;
  visibility: hidden;
  z-index: 10;
}

.isa-slider-wrapper:hover .swiper-button-next,
.isa-slider-wrapper:hover .swiper-button-prev {
  opacity: 1;
  visibility: visible;
}

.isa-slider-wrapper .swiper-button-next {
  right: 15px;
}

.isa-slider-wrapper .swiper-button-prev {
  left: 15px;
}

.isa-slider-wrapper .swiper-button-next:after,
.isa-slider-wrapper .swiper-button-prev:after {
  font-size: 20px;
  font-weight: bold;
}

.isa-slider-wrapper .swiper-button-next:hover,
.isa-slider-wrapper .swiper-button-prev:hover {
  background: var(--ms-primary);
  color: var(--isa-white);
  transform: translateY(-50%) scale(1.1) !important;
}

/* Pagination Dots */
.isa-slider-wrapper .swiper-pagination {
  bottom: 5px !important;
}

.isa-slider-wrapper .swiper-pagination-bullet {
  background: #fff;
  opacity: 1;
  width: 10px;
  height: 10px;
  margin: 0 4px !important;
  border: 2px solid #ddd;
  /* Gray border for inactive */
  transition: all 0.3s;
}

.isa-slider-wrapper .swiper-pagination-bullet-active {
  background: #000;
  border-color: #000;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .isa-slider-wrapper .swiper-slide {
    border-radius: 8px;
  }

  .isa-slider-wrapper .swiper-slide img {
    border-radius: 8px;
  }

  .isa-slider-wrapper .swiper-button-next,
  .isa-slider-wrapper .swiper-button-prev {
    width: 48px;
    height: 48px;
    bottom: auto !important;
  }

  .isa-slider-wrapper .swiper-button-next:after,
  .isa-slider-wrapper .swiper-button-prev:after {
    font-size: 16px;
  }
}

/* Pagination Styling */
.ts-pagination-wrapper {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

.ts-pagination {
  display: flex;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.ts-pagination .page-numbers {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid #eeeeee;
  border-radius: 5px;
  color: var(--ms-primary);
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 600;
}

.ts-pagination .page-numbers:hover {
  background: var(--ms-primary);
  color: #fff;
}

.ts-pagination .page-numbers.current {
  background: var(--isa-primary);
  color: #fff;
  border-color: var(--isa-primary);
}

@media (max-width: 768px) {
  .ts-pagination .page-numbers {
    padding: 6px 12px;
    font-size: 14px;
  }
}
