/* ==========================================================================
   Galeri sayfa stilleri  (gl-)
   ========================================================================== */

/* ============================================================
   1. HERO
   ============================================================ */

.gl-hero {
  position: relative;
  padding-block: clamp(5rem, 10vw, 8rem) clamp(4rem, 8vw, 6rem);
  color: #fff;
  overflow: hidden;
  background-image:
    linear-gradient(135deg, rgba(74, 18, 30, 0.90) 0%, rgba(15, 30, 60, 0.85) 100%),
    url('https://images.unsplash.com/photo-1605022937936-99f6a5c3f509?auto=format&fit=crop&w=1800&q=80');
  background-size: cover;
  background-position: center 60%;
  background-attachment: fixed;
}

.gl-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.gl-hero::after {
  content: '';
  position: absolute;
  top: -6rem;
  left: -6rem;
  width: 32rem;
  height: 32rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(180,83,107,0.25) 0%, transparent 70%);
  pointer-events: none;
}

.gl-hero__ic {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--bosluk-4, 1rem);
}

.gl-hero .da-hero__breadcrumb {
  color: rgba(255,255,255,0.5);
  font-size: var(--olcek-sm);
}

.gl-hero .da-hero__breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--bosluk-2);
  list-style: none;
  padding: 0;
  margin: 0;
  align-items: center;
}

.gl-hero .da-hero__breadcrumb-list a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.gl-hero .da-hero__breadcrumb-list a:hover { color: #fff; }

.gl-hero__etiket {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.18);
  font-size: var(--olcek-xs, 0.75rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  width: fit-content;
}

.gl-hero__baslik {
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 0;
  color: #fff;
}

.gl-hero__baslik em {
  font-style: normal;
  background: linear-gradient(90deg, #f9a8b4, #fbbf24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gl-hero__alt {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.65);
  max-width: 38rem;
  line-height: 1.7;
  margin: 0;
}

/* ============================================================
   2. BÖLÜM
   ============================================================ */

.gl-bolum {
  padding-block: clamp(3rem, 6vw, 5rem);
  background: #f0f0f3;
}

/* ============================================================
   3. IZGARA — Uniform 3 sütun grid
   ============================================================ */

.gl-izgara {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

/* Tüm kartlar aynı boyutta — buyuk/normal farkı yok */
.gl-kart {
  display: block;
  overflow: hidden;
  background: #1a0a0f;
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
}

/* buyuk kart da 1 sütun kaplıyor — boşluk oluşmasın */
.gl-kart--genis {
  aspect-ratio: 4 / 3;
}

/* ============================================================
   4. KART İÇERİĞİ
   ============================================================ */

.gl-kart__btn {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  border: none;
  background: none;
  cursor: pointer;
  text-align: left;
}

.gl-kart__btn:focus-visible {
  outline: 3px solid var(--renk-marka, #7c1d32);
  outline-offset: -3px;
}

.gl-kart__cerceve {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
  overflow: hidden;
  margin: 0;
  border-radius: 8px;
}

.gl-kart__gorsel {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}

/* Hover: hafif yakınlaştır */
.gl-kart:hover .gl-kart__gorsel {
  transform: scale(1.05);
}

/* Koyu overlay — hover'da belirer, ikon yok */
.gl-kart__zum {
  position: absolute;
  inset: 0;
  background: rgba(10, 4, 8, 0.35);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gl-kart__btn:hover .gl-kart__zum,
.gl-kart__btn:focus-visible .gl-kart__zum {
  opacity: 1;
}

/* Kart hover ikonunu gizle — sadece kart zoom alanındakiler */
.gl-kart__zum-ic {
  display: none;
}

.gl-kart__zum > .icon {
  display: none;
}

/* Yedek görsel */
.gl-kart__yedek {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #3d0a16, #1a2a4a);
  color: rgba(255,255,255,0.25);
}

.gl-kart__yedek svg {
  width: 2.5rem;
  height: 2.5rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
  .gl-izgara {
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
  }
}

@media (max-width: 480px) {
  .gl-izgara {
    grid-template-columns: repeat(2, 1fr);
    gap: 3px;
  }
}

/* ============================================================
   LIGHTBOX MODAL
   ============================================================ */

.gl-lightbox {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  overflow: hidden;
  z-index: 900;
}

.gl-lightbox:not([open]) {
  display: none;
}

.gl-lightbox__arka {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(6, 2, 4, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
}

.gl-lightbox__ic {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--bosluk-3);
  padding: clamp(3rem, 5vw, 4.5rem) clamp(1rem, 4vw, 3rem);
  pointer-events: none;
}

.gl-lightbox__gorsel-kap {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 88vw;
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}

.gl-lightbox__gorsel {
  max-width: 100%;
  max-height: 86vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 32px 100px rgba(0,0,0,0.8);
  display: block;
  transform: scale(0.92) translateY(8px);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.28s ease;
}

.gl-lightbox[open] .gl-lightbox__gorsel {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.gl-lightbox__kapat {
  position: absolute;
  top: clamp(0.75rem, 2vw, 1.25rem);
  right: clamp(0.75rem, 2vw, 1.25rem);
  z-index: 10;
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: #fff;
  cursor: pointer;
  pointer-events: auto;
  backdrop-filter: blur(6px);
  transition: background 0.2s, transform 0.2s;
}

.gl-lightbox__kapat:hover {
  background: rgba(255,255,255,0.2);
  transform: scale(1.1) rotate(90deg);
}

.gl-lightbox__kapat .icon {
  width: 1.2rem;
  height: 1.2rem;
}

.gl-lightbox__nav {
  flex-shrink: 0;
  width: 3.25rem;
  height: 3.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #1a0a0f;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45), 0 1px 4px rgba(0, 0, 0, 0.3);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.gl-lightbox__nav:hover {
  background: #fff;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55);
  transform: scale(1.1);
}

.gl-lightbox__nav--onceki:hover { transform: scale(1.1) translateX(-3px); }
.gl-lightbox__nav--sonraki:hover { transform: scale(1.1) translateX(3px); }

.gl-lightbox__nav .icon,
.gl-lightbox__nav svg {
  display: block !important;
  visibility: visible !important;
  width: 1.5rem !important;
  height: 1.5rem !important;
  min-width: 1.5rem !important;
  min-height: 1.5rem !important;
  stroke: #1a0a0f !important;
  stroke-width: 2.5 !important;
  color: #1a0a0f !important;
  opacity: 1 !important;
}

@media (max-width: 600px) {
  .gl-lightbox__ic {
    gap: var(--bosluk-2);
    padding: 3.5rem 0.5rem 1rem;
  }

  .gl-lightbox__nav {
    width: 2.25rem;
    height: 2.25rem;
  }

  .gl-lightbox__gorsel-kap {
    max-width: 96vw;
  }

  .gl-lightbox__gorsel {
    max-height: 80vh;
  }
}
