/* ============================================================
   Lightbox2 (Lokesh Dhakar, MIT) — sadeleştirilmiş tema CSS
   Orijinal CSS'in sadece kullanılan kısmı; resim dosyaları yerine
   inline SVG / CSS spinner. Script: js/lightbox.min.js
   ============================================================ */
:root {
  --lb-overlay-bg: #0A0A0A;
  --lb-overlay-opacity: .92;
  --lb-container-bg: #111;
  --lb-text-color: #d8d4cb;
  --lb-number-color: #C8A96E;
}

body.lb-disable-scrolling { overflow: hidden; }

.lightboxOverlay {
  position: fixed; inset: 0; z-index: 9999; display: none;
  background: var(--lb-overlay-bg); opacity: var(--lb-overlay-opacity);
}

.lightbox {
  position: fixed; left: 0; width: 100%; z-index: 10000;
  text-align: center; line-height: 0; outline: none;
}

.lightbox .lb-image {
  display: block; height: auto; max-width: inherit; max-height: none;
  border: 0; border-radius: 6px 0 6px 0; object-fit: contain;
}

.lb-outerContainer {
  position: relative; width: 250px; height: 250px; margin: 0 auto;
  border-radius: 6px 0 0 0; background: var(--lb-container-bg);
}
.lb-outerContainer::after { content: ""; display: table; clear: both; }

.lb-loader { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: grid; place-items: center; }
.lb-cancel {
  display: block; width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.15); border-top-color: #C8A96E;
  animation: lb-spin .8s linear infinite;
}
@keyframes lb-spin { to { transform: rotate(360deg); } }

.lb-nav { position: absolute; inset: 0; z-index: 10; }
.lb-nav a { outline: none; }
.lb-prev, .lb-next {
  display: block; height: 100%; cursor: pointer; opacity: 0;
  background-repeat: no-repeat; transition: opacity .3s;
}
.lb-nav a.lb-prev {
  width: 34%; float: left;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 44 44'%3E%3Ccircle cx='22' cy='22' r='21' fill='%230A0A0A' fill-opacity='.55' stroke='%23C8A96E'/%3E%3Cpath d='M25 14l-8 8 8 8' fill='none' stroke='%23C8A96E' stroke-width='2'/%3E%3C/svg%3E");
  background-position: 16px 50%;
}
.lb-nav a.lb-next {
  width: 64%; float: right;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 44 44'%3E%3Ccircle cx='22' cy='22' r='21' fill='%230A0A0A' fill-opacity='.55' stroke='%23C8A96E'/%3E%3Cpath d='M19 14l8 8-8 8' fill='none' stroke='%23C8A96E' stroke-width='2'/%3E%3C/svg%3E");
  background-position: calc(100% - 16px) 50%;
}
.lb-nav a.lb-prev:hover, .lb-nav a.lb-next:hover { opacity: 1; }

/* Dokunmatik cihazlarda oklar hep görünsün */
@media (hover: none) {
  .lb-nav a.lb-prev, .lb-nav a.lb-next { opacity: .85; }
}

.lb-dataContainer { width: 100%; margin: 0 auto; padding-top: 10px; }
.lb-dataContainer::after { content: ""; display: table; clear: both; }
.lb-data { padding: 0 4px; color: var(--lb-text-color); font-family: var(--ff-body, sans-serif); }
.lb-data .lb-details { width: 85%; float: left; text-align: left; line-height: 1.4; }
.lb-data .lb-caption { font-size: 14px; font-weight: 600; letter-spacing: .02em; line-height: 1.4; }
.lb-data .lb-number {
  display: block; clear: left; padding-bottom: 1em; font-size: 12px;
  letter-spacing: .12em; color: var(--lb-number-color);
}
.lb-data .lb-close {
  display: block; float: right; width: 30px; height: 30px; cursor: pointer; opacity: .75;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3E%3Cpath d='M8 8l14 14M22 8L8 22' stroke='%23fff' stroke-width='2' fill='none'/%3E%3C/svg%3E") center no-repeat;
  transition: opacity .2s;
}
.lb-data .lb-close:hover { opacity: 1; }

/* ── Çakışma koruması ─────────────────────────────────────────
   Lightbox2 kendi kutusunu id="lightbox" ile oluşturur. Eski/anasayfa
   CSS'indeki #lightbox kuralı (opacity:0; pointer-events:none) bunu
   görünmez yapıyordu. Bu blok o kuralı ezer. */
#lightbox.lightbox {
  inset: auto;
  left: 0;
  width: 100%;
  z-index: 10000;
  opacity: 1;
  pointer-events: auto;
  background: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transition: none;
  align-items: normal;
  justify-content: normal;
}
