/* ===== Galeri Detay ===== */
.gd-page { background: var(--bg); padding-bottom: 80px; }
.gd-pagewrap { padding: 28px 0 32px; }
.gd-billboard { display: flex; justify-content: center; padding: 8px 0; }
.gd-billboard .ad-slot { width: min(970px, 100%); max-width: 100%; }

/* Site genişliği — haber detay (.hd-grid) ile aynı iki kolon */
.gd-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 36px;
  align-items: start;
  padding-top: 20px;
}

.gd-rail {
  position: sticky;
  top: 118px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.gd-rail .hd-rail-box {
  width: 100%;
}

.gd-rail .hd-rail-h a {
  color: inherit;
  text-decoration: none;
}

.gd-rail .hd-rail-h a:hover {
  color: var(--accent);
}

.gd-rail-ad {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 250px;
  background:
    repeating-linear-gradient(45deg, transparent 0 10px, rgba(15,20,30,0.05) 10px 20px),
    var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  font-weight: 700;
  flex-direction: column;
  gap: 6px;
}

.gd-rail-ad-dims {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: oklch(72% 0.008 260);
  font-weight: 500;
}

.gd-meta-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.gd-meta-row .gd-meta {
  margin-bottom: 0;
}

.gd-share-bar {
  flex-shrink: 0;
}

/* Article — match .hd-article (white card, border, radius, shadow) */
.gd-article {
  min-width: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 32px 36px 40px;
  box-shadow: 0 1px 2px rgba(15,20,35,0.03);
}

.gd-breadcrumb {
  /* Match .hd-crumb — mono 12px, ink-3 */
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--ink-3);
  margin-bottom: 22px;
  padding-bottom: 0;
  border-bottom: 0;
}
.gd-breadcrumb a { color: var(--ink-3); transition: color .15s; }
.gd-breadcrumb a:hover { color: var(--accent); }
.gd-breadcrumb span { color: oklch(80% 0.008 250); }
.gd-bc-current { color: var(--ink-2) !important; font-weight: 500; }

.gd-title {
  /* Match .hd-title — sans 800, clamp(28–42), tight line/letter */
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.028em;
  color: var(--ink);
  margin: 8px 0 16px;
  text-wrap: balance;
}
.gd-meta {
  /* Match .hd-meta-info — mono 11.5px ink-3 */
  display: flex; gap: 14px; align-items: center;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: var(--ink-3);
  margin-bottom: 14px;
}
.gd-time { font-weight: 600; color: var(--ink-2); }
.gd-share-mini {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 28px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 600;
}
.gd-share-line { flex: 1; height: 0; border-top: 1px dashed var(--line-2); }

/* Spot (galeri açıklaması) — başlık altı giriş paragrafı */
.gd-spot {
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.55;
  color: oklch(34% 0.012 265);
  font-weight: 500;
  margin: -4px 0 18px;
  padding-left: 14px;
  border-left: 3px solid var(--accent, #c8102e);
  text-wrap: pretty;
}

/* Figures — her fotoğraf çerçeveli kart */
.gd-fig {
  margin: 0 0 28px;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 1px 2px rgba(15,20,35,0.03);
}

.gd-fig-media {
  position: relative;
}

.gd-img {
  border-radius: 0;
  width: 100%;
  display: block;
}
.gd-badge {
  position: absolute;
  top: 14px; left: 14px;
  color: #fff;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.015em;
  z-index: 2;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
  padding: 2px 4px;
}
.gd-zoom {
  position: absolute;
  top: 14px; right: 14px;
  background: rgba(0,0,0,0.4);
  color: #fff;
  border: 0;
  width: 36px; height: 36px;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  z-index: 2;
  transition: background .15s;
}
.gd-zoom:hover { background: rgba(0,0,0,0.6); }
.gd-cap {
  /* Match .hd-body reading typography — serif Newsreader, 17px, line 1.6 */
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.6;
  color: oklch(22% 0.010 265);
  padding: 14px 18px 16px;
  border-top: 1px solid var(--line);
  background: var(--paper);
  font-weight: 400;
  letter-spacing: -0.002em;
  text-wrap: pretty;
}
.gd-cap-h {
  /* Match .hd-body h3 style — sans 700, tight, dark ink */
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin-bottom: 6px;
  text-transform: uppercase;
}
.gd-fig-hero { margin-bottom: 32px; }
.gd-fig-hero .gd-cap { font-size: 17.5px; }

/* Mid ad */
.gd-mid-ad {
  display: flex;
  justify-content: center;
  margin: 8px 0 32px;
}
.gd-mid-ad .ad-slot { width: 300px; height: 250px; }

/* Floating action bar */
.gd-fab {
  position: fixed;
  bottom: 18px; left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: min(620px, calc(100% - 24px));
}
.gd-fab-inner {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 14px;
  padding: 8px 18px;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  border: 1px solid oklch(91% 0.006 250);
  border-radius: 999px;
  box-shadow: 0 12px 32px -8px rgba(15,20,35,0.18);
}
.gd-fab-l { display: flex; gap: 6px; align-items: center; }
.gd-fab-l .fs-iconbtn { padding: 6px; }
.gd-fab-sep { width: 1px; height: 24px; background: oklch(88% 0.008 250); }
.gd-fab-next {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink);
  padding-right: 6px;
  text-transform: uppercase;
}
.gd-fab-down {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px;
  background: oklch(94% 0.005 250);
  border-radius: 50%;
  margin-left: 12px;
  color: var(--ink);
}
.gd-fab-next:hover { color: var(--accent); }

/* Side progress badge */
.gd-progress {
  position: fixed;
  right: 24px; bottom: 90px;
  z-index: 99;
  pointer-events: none;
  display: none;
}
.gd-progress-val {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: rgba(0,0,0,0.5);
  background: rgba(255,255,255,0.9);
  padding: 4px 10px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

/* Lightbox — tam ekran orijinal görsel + oklar */
.gd-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 10, 15, 0.94);
  backdrop-filter: blur(4px);
  padding: 56px 16px;
  animation: gd-lb-fade .18s ease;
}
@keyframes gd-lb-fade { from { opacity: 0; } to { opacity: 1; } }

.gd-lb-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 100%;
  max-height: 100%;
}
.gd-lb-img {
  max-width: min(1600px, 94vw);
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 20px 60px -20px rgba(0,0,0,0.7);
}
.gd-lb-cap {
  font-family: var(--font-serif);
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255,255,255,0.85);
  text-align: center;
  max-width: 760px;
  text-wrap: pretty;
}

.gd-lb-close {
  position: fixed;
  top: 18px; right: 20px;
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: background .15s;
  z-index: 2;
}
.gd-lb-close:hover { background: rgba(255,255,255,0.24); }

.gd-lb-counter {
  position: fixed;
  top: 24px; left: 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.9);
  z-index: 2;
}

.gd-lb-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 56px; height: 56px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: background .15s;
  z-index: 2;
}
.gd-lb-nav:hover { background: rgba(255,255,255,0.24); }
.gd-lb-prev { left: 20px; }
.gd-lb-next { right: 20px; }

.gd-zoom { cursor: pointer; }

@media (max-width: 720px) {
  .gd-lightbox { padding: 48px 8px; }
  .gd-lb-img { max-width: 96vw; max-height: 74vh; }
  .gd-lb-nav { width: 44px; height: 44px; }
  .gd-lb-prev { left: 8px; }
  .gd-lb-next { right: 8px; }
  .gd-lb-nav svg { width: 26px; height: 26px; }
}

/* Responsive */
@media (max-width: 1100px) {
  .gd-grid { grid-template-columns: 1fr; }
  .gd-rail { position: static; }
  .gd-rail-ad { display: none; }
}
@media (max-width: 720px) {
  /* Match haber-detay mobile structure: hide chrome, tighten card padding */
  .gd-pagewrap { padding: 12px 0 20px; }
  .gd-billboard { display: none; } /* haber-detay mobilde billboard yok */
  .gd-breadcrumb { display: none; } /* haber-detay ile aynı kural */
  .gd-article { padding: 20px var(--card-inset-x, 16px) 24px; }
  /* Typography (title 30 / body 18) — haber-detay ile aynı */
  .gd-title { font-size: 30px; line-height: 1.12; }
  .gd-cap { font-size: 16px; padding: 12px 14px 14px; line-height: 1.6; }
  .gd-fig-hero .gd-cap { font-size: 16.5px; }
  .gd-meta { font-size: 11.5px; gap: 12px; }
  .gd-share-mini { font-size: 11px; }
  .gd-badge { font-size: 18px; top: 10px; left: 10px; }
  .gd-zoom { width: 32px; height: 32px; top: 10px; right: 10px; }
  .gd-fab { bottom: 12px; }
  .gd-fab-inner { padding: 6px 14px; gap: 10px; }
  .gd-fab-next span:first-child { font-size: 11px; }
  .gd-mid-ad { margin: 4px 0 24px; }
}
