/* jekcms — Ortak İçerik Tipografisi (editör ↔ sayfa paritesi)
 *
 * jek-editor.css (yönetim panelindeki editör) ile AYNI okuma standardını
 * kullanır: editörde ne görürsen sayfada birebir o çıkar. style.css'ten
 * SONRA yüklenir (output_head_scripts, header'da style.css'in altında) →
 * temaların paragraf aralığı + satır yüksekliğini standardize eder.
 * Renk, font ailesi, başlık tasarımı TEMA-ÖZEL kalır; yalnız metin gövdesi
 * spacing'i eşitlenir (kullanıcı şikayeti: satır aralığı + shift+enter <br>).
 *
 * Standart: line-height 1.75 · paragraf arası 1.3em (jek-editor.css ile aynı).
 */
.article-content,
.entry-content,
.post-content,
.post-body,
.prose {
  line-height: 1.75;
}

.article-content p,
.entry-content p,
.post-content p,
.post-body p,
.prose p {
  margin-top: 0;
  margin-bottom: 1.3em;
}

/* Son paragraf alt boşluğu taşmasın (kart/kutu içi tutarlılık). */
.article-content > p:last-child,
.entry-content > p:last-child,
.post-content > p:last-child,
.post-body > p:last-child,
.prose > p:last-child {
  margin-bottom: 0;
}

/* jek_icon (Lucide) — metin yanında dikey ortalama, esnek kutuda küçülmesin. */
.jek-icon { display: inline-block; vertical-align: middle; flex-shrink: 0; }

/* ── Görsel konumlandırma (editörden data-align: sol/sağ metni sarar, orta ortalar) ──
   Quick.CMS tarzı yerleşim. Editör JekImage bu data-align'ı üretir. */
.article-content img[data-align="center"], .entry-content img[data-align="center"],
.post-content img[data-align="center"], .prose img[data-align="center"] {
  display: block; margin-left: auto; margin-right: auto;
}
.article-content img[data-align="left"], .entry-content img[data-align="left"],
.post-content img[data-align="left"], .prose img[data-align="left"] {
  float: left; margin: 0.35em 1.4em 0.9em 0; max-width: min(48%, 400px);
}
.article-content img[data-align="right"], .entry-content img[data-align="right"],
.post-content img[data-align="right"], .prose img[data-align="right"] {
  float: right; margin: 0.35em 0 0.9em 1.4em; max-width: min(48%, 400px);
}
/* Float sonrası başlıklar/blok taşmasın: heading kendi satırına iner. */
.article-content h2, .article-content h3, .entry-content h2, .entry-content h3,
.post-content h2, .post-content h3 { clear: both; }

/* ── Galeri (çoklu görsel grid + lightbox tetikleyici) ── */
.jek-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin: 1.4em 0; }
.jek-gallery a { display: block; overflow: hidden; aspect-ratio: 1 / 1; }
.jek-gallery img { width: 100%; height: 100%; object-fit: cover; margin: 0; cursor: zoom-in; transition: transform .25s ease; }
.jek-gallery a:hover img { transform: scale(1.05); }

/* Lightbox — galeri görseli tıklanınca tam ekran (gallery.js açar). */
.jek-lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.88); display: flex; align-items: center; justify-content: center; z-index: 9999; cursor: zoom-out; padding: 24px; }
.jek-lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
