/* Galeri — Wayback (Elementor) 10 sütun küçük resim + wave-brush + lightbox */

.gallery-archive-wrap {
  background: #fff;
  padding: clamp(1rem, 3vw, 2rem) 1rem 0;
}

.gallery-archive-inner {
  max-width: var(--container);
  margin: 0 auto;
}

.gallery.gallery-columns-10 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin: 0;
  padding: 0;
}

@media (min-width: 480px) {
  .gallery.gallery-columns-10 {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (min-width: 960px) {
  .gallery.gallery-columns-10 {
    grid-template-columns: repeat(10, 1fr);
  }
}

.gallery-item {
  margin: 0;
}

.gallery-item dt.gallery-icon {
  margin: 0;
}

.gallery-item a {
  display: block;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.gallery-item a:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

.gallery-item a:focus-visible {
  outline: 3px solid var(--nv-primary);
  outline-offset: 2px;
}

.gallery-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
}

/* Elementor wave-brush — CTA gradient ile uyumlu dolgu */
.gallery-wave-brush {
  line-height: 0;
  margin-top: clamp(1.25rem, 3vw, 2rem);
}

.gallery-wave-brush svg {
  width: 100%;
  height: clamp(22px, 5vw, 40px);
  display: block;
}

.gallery-wave-brush .elementor-shape-fill {
  fill: rgba(8, 100, 118, 0.98);
}

/* Lightbox */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.88);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.gallery-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.gallery-lightbox__frame {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: min(96vw, 1200px);
  max-height: 92vh;
  margin: auto;
}

.gallery-lightbox__frame img {
  max-width: 100%;
  max-height: min(85vh, 900px);
  width: auto;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  border-radius: 4px;
}

.gallery-lightbox__caption {
  margin-top: 0.75rem;
  text-align: center;
  color: #fff;
  font-size: 0.9rem;
  opacity: 0.9;
  word-break: break-word;
}

.gallery-lightbox__close,
.gallery-lightbox__prev,
.gallery-lightbox__next {
  position: absolute;
  border: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-radius: 4px;
  font-size: 1.25rem;
  line-height: 1;
  padding: 0.65rem 0.85rem;
  transition: background 0.2s ease;
}

.gallery-lightbox__close:hover,
.gallery-lightbox__prev:hover,
.gallery-lightbox__next:hover,
.gallery-lightbox__close:focus-visible,
.gallery-lightbox__prev:focus-visible,
.gallery-lightbox__next:focus-visible {
  background: rgba(255, 255, 255, 0.22);
}

.gallery-lightbox__close {
  position: fixed;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2001;
  transform: none;
}

.gallery-lightbox__prev {
  left: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
}

.gallery-lightbox__next {
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 639px) {
  .gallery-lightbox__prev {
    left: 0.25rem;
  }

  .gallery-lightbox__next {
    right: 0.25rem;
  }
}

body.gallery-lightbox-open {
  overflow: hidden;
}
