/* ============================================================
   Lightbox — tam ekran görsel popup
   ============================================================ */
.lbx {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal, 500);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(8, 22, 14, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: lbx-fade 0.3s var(--ease, ease) both;
  cursor: zoom-out;
}
/* Varsayılan gizli — yalnız JS açtığında görünür ([hidden] attribute'unu zorla) */
.lbx[hidden] { display: none !important; }

@keyframes lbx-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lbx__inner {
  position: relative;
  max-width: min(1100px, 92vw);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  cursor: default;
  animation: lbx-zoom 0.4s var(--ease, cubic-bezier(0.22, 1, 0.36, 1)) both;
}

@keyframes lbx-zoom {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}

.lbx__img {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: var(--radius, 18px);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.5);
}

.lbx__caption {
  text-align: center;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.lbx__close {
  position: fixed;
  top: clamp(1rem, 3vw, 2rem);
  right: clamp(1rem, 3vw, 2rem);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: none;
  cursor: pointer;
  z-index: 1;
  transition: background 0.25s var(--ease, ease), transform 0.35s var(--ease, ease);
}

.lbx__close:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: rotate(90deg);
}

@media (prefers-reduced-motion: reduce) {
  .lbx,
  .lbx__inner { animation: none; }
  .lbx__close:hover { transform: none; }
}
