/* SDS */
/* Gallery */
.gallery-section {
  margin-top: var(--gallery-top-margin);
  margin-bottom: var(--gallery-bottom-margin);
  background: transparent;
  position: relative;
  z-index: 1;
}
.gallery-container {
  width: 100%;
  position: relative;
  background: transparent;
}
.gallery-swiper {
  width: 100%;
  aspect-ratio: 21 / 9;
  position: relative;
  overflow: hidden;
  background: transparent;
  margin: 0;
}
.gallery-swiper .swiper-wrapper {
  height: 100%;
}
.gallery-swiper .swiper-slide {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.gallery-swiper .swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  background: rgba(20, 20, 20, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--newsletter-border-radius);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  font-size: 24px;
  z-index: 50;
  transition: all var(--animation-duration-normal) var(--animation-easing-smooth);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.25),
    0 2px 8px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.gallery-nav-btn:hover {
  background: rgba(40, 40, 40, 0.85);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) translateY(-2px) scale(1.05);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.3),
    0 4px 12px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.gallery-nav-btn:active {
  background: rgba(60, 60, 60, 0.9);
}
.gallery-nav-btn:focus {
  outline: none;
}
.gallery-nav-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}
.gallery-nav-prev {
  left: 20px;
}
.gallery-nav-next {
  right: 20px;
}
.gallery-nav-btn::before {
  content: '';
  width: 14px;
  height: 14px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  display: block;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}
.gallery-nav-prev::before {
  transform: rotate(225deg);
  margin-left: var(--spacing-3);
}
.gallery-nav-next::before {
  transform: rotate(45deg);
  margin-right: var(--spacing-3);
}
.gallery-nav-prev:hover::before {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}
.gallery-nav-next:hover::before {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}
.gallery-main-slider {
  width: 100%;
  max-width: var(--container-max-width);
  height: 70vh;
  min-height: 400px;
  max-height: 800px;
  margin-bottom: 1.5rem;
  border-radius: var(--newsletter-border-radius);
  overflow: hidden;
  background: rgb(0 0 0 / 90%);
  box-shadow: var(--newsletter-shadow);
}
.gallery-slide-content {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.gallery-main-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--newsletter-border-radius);
}
.gallery-nav,
.gallery-nav *,
.gallery-nav-btn,
.gallery-nav-prev,
.gallery-nav-next,
.gallery-nav-btn *,
.gallery-nav-prev *,
.gallery-nav-next *,
.gallery-thumbnails-nav,
.gallery-thumbnails-nav *,
.gallery-thumbnails-toggle,
.gallery-thumbnails-toggle *,
.gallery-nav-next,
.gallery-nav-prev,
.gallery-nav-next *,
.gallery-nav-prev *,
.swiper-button-next,
.swiper-button-prev,
.swiper-pagination,
.swiper-pagination *,
[class*='gallery-nav'],
[class*='gallery-nav'],
[class*='gallery-thumb'] {
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}
.gallery-main-image[data-loading='true'] {
  opacity: 0.7;
  filter: blur(2px);
}
.swiper-fade .swiper-slide {
  pointer-events: none;
  transition-property: opacity;
}
.swiper-fade .swiper-slide .swiper-slide-active {
  pointer-events: auto;
}



.gallery-swiper .swiper-button-next,
.gallery-swiper .swiper-button-prev {
  color: var(--accent-color, #4389b8);
}
.gallery-swiper .swiper-pagination-bullet-active {
  background: var(--accent-color, #4389b8);
}

/* Responsive Design - Media Queries */
@media (prefers-reduced-motion: no-preference) {
  .gallery-main-image,
  .gallery-nav-next,
  .gallery-nav-prev {
    transition: all var(--animation-duration-fast) var(--animation-easing-smooth);
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-main-image,
  .gallery-nav-next,
  .gallery-nav-prev {
    transition: none;
    animation: none;
  }
}

@media (hover: none) and (pointer: coarse) {
  .gallery-nav-next:active,
  .gallery-nav-prev:active {
    background: rgb(255 255 255 / 40%);
    border-color: rgb(255 255 255 / 60%);
  }
}

@media (max-width: 768px) {
  .gallery-section,
  .gallery-container,
  .swiper,
  .gallery-swiper {
    z-index: 10 !important; /* Lower than menu */
    position: relative;     /* Ensure z-index applies */
  }
  .gallery-nav-btn {
    z-index: 11 !important;
    position: relative;
  }
  .claim-container {
    z-index: 12 !important;
    position: relative;
  }
}
