/* ============================================================
   Fotoğraflarımız sayfası: filtrelenebilir grid + lightbox.
   ============================================================ */

.gallery-hero {
  text-align: center;
  max-width: 640px;
  margin: 1rem auto 2rem;
}
.gallery-hero .story-kicker { color: var(--primary); }
.gallery-hero h1 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -.01em;
  margin: .5rem 0 .6rem;
}
.gallery-hero p { color: var(--text-muted); font-size: 1.05rem; }

.gallery-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 2rem;
}
.gallery-filter-btn {
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text);
  font-weight: 600;
  font-size: .88rem;
  padding: .45rem 1.1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.gallery-filter-btn:hover { border-color: var(--primary); }
.gallery-filter-btn.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.gallery-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-alt);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: box-shadow .15s ease, transform .15s ease;
}
.gallery-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }

.gallery-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  background-color: #171a24; /* Fotoğraf yüklenmezse/henuz eklenmediyse gorunecek zemin */
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-thumb.accent-gold { background-image: linear-gradient(155deg, #1c1f2a 0%, #2a2410 100%); }
.gallery-thumb.accent-ink { background-image: linear-gradient(155deg, #0e1016 0%, #1c1f2a 100%); }
.gallery-thumb-icon {
  font-size: 2.4rem;
  opacity: .85;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .35));
}
.gallery-thumb-badge {
  position: absolute;
  bottom: .6rem;
  right: .6rem;
  background: rgba(14, 16, 22, .65);
  color: rgba(255, 255, 255, .75);
  font-size: .68rem;
  font-weight: 600;
  padding: .2rem .55rem;
  border-radius: 999px;
  backdrop-filter: blur(2px);
}

.gallery-card-body { padding: 1.1rem 1.2rem 1.3rem; }
.gallery-card-tag {
  display: inline-block;
  background: var(--accent-soft);
  color: #9a5b00;
  font-size: .72rem;
  font-weight: 700;
  padding: .18rem .55rem;
  border-radius: 999px;
  margin-bottom: .5rem;
}
.gallery-card-title { font-size: 1rem; font-weight: 700; margin: 0; }

.gallery-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 3rem 1rem;
}

/* ---------- Lightbox ---------- */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1080;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(10, 11, 16, .88);
}
.gallery-lightbox.open { display: flex; }
.gallery-lightbox-panel {
  position: relative;
  width: 100%;
  max-width: 640px;
  background: var(--ink-2);
  border: 1px solid var(--ink-border);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
  color: #fff;
}
.gallery-lightbox-media {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-color: #171a24;
}
.gallery-lightbox-media .gallery-thumb-icon { font-size: 4rem; }
.gallery-lightbox-caption { padding: 1.1rem 1.4rem 1.4rem; }
.gallery-lightbox-caption .gallery-card-tag { margin-bottom: .6rem; }
.gallery-lightbox-caption h3 { font-size: 1.15rem; font-weight: 700; margin: 0; }
.gallery-lightbox-close {
  position: absolute;
  top: .75rem;
  right: .75rem;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}
.gallery-lightbox-close:hover { background: rgba(255, 255, 255, .2); }
