/* ==========================================================================
   MOST — görsel büyütme (lightbox)
   ========================================================================== */

.lb {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, .9);
  opacity: 0;
  transition: opacity .25s ease;
}

.lb.is-open {
  display: flex;
}

.lb.is-visible {
  opacity: 1;
}

/* Arka plana tıklayınca kapanır. */
.lb__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: zoom-out;
}

.lb__figure {
  position: relative;
  z-index: 1;
  display: flex;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
  pointer-events: none;
}

.lb__img {
  display: block;
  max-width: min(1400px, 92vw);
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
  transform: scale(.97);
  opacity: 0;
  transition: transform .25s ease, opacity .25s ease;
}

.lb.is-visible .lb__img {
  transform: scale(1);
  opacity: 1;
}

/* ---------- düğmeler ---------- */
.lb__btn {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  cursor: pointer;
  transition: background .3s, border-color .3s, color .3s;
}

@media (hover: hover) {
  .lb__btn:hover {
    background: #fff;
    border-color: #fff;
    color: #000;
  }
}

.lb__btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.lb__btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lb__close { top: 24px;  right: 24px; }
.lb__prev  { left: 24px;  top: 50%; transform: translateY(-50%); }
.lb__next  { right: 24px; top: 50%; transform: translateY(-50%); }

.lb__btn[hidden] { display: none; }

/* ---------- sayaç ---------- */
.lb__counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .12em;
  color: rgba(255, 255, 255, .7);
}

/* ---------- küçük ekran ---------- */
@media (max-width: 768px) {
  .lb { padding: 12px; }

  .lb__img { max-height: 70vh; }

  .lb__btn { width: 44px; height: 44px; }

  .lb__close { top: 12px; right: 12px; }
  .lb__prev  { left: 12px; }
  .lb__next  { right: 12px; }

  .lb__counter { bottom: 14px; }
}

/* Hareket azaltma tercihi olanlar için geçişleri kapat. */
@media (prefers-reduced-motion: reduce) {
  .lb,
  .lb__img {
    transition: none;
  }
}
