/* ===== Galeri lightbox ===== */
.lb {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .88);
  color: #fff;
  opacity: 0;
  transition: opacity .25s ease;
}
.lb[hidden] { display: none; }
.lb.open { opacity: 1; }

.lb-counter {
  position: absolute;
  top: 24px;
  left: 28px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: .5px;
}

.lb-tools {
  position: absolute;
  top: 16px;
  right: 20px;
  display: flex;
  gap: 8px;
}
.lb-btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  transition: background .2s;
}
.lb-btn:hover { background: rgba(255, 255, 255, .15); }
.lb-btn svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
}
.lb-nav svg { width: 32px; height: 32px; stroke-width: 3; }
.lb-prev { left: 90px; }
.lb-next { right: 90px; }

.lb-stage {
  margin: 0;
  max-width: 80vw;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lb-img {
  max-width: 100%;
  max-height: calc(80vh - 50px);
  object-fit: contain;
  background: #fff;
  cursor: zoom-in;
  transition: transform .3s ease, opacity .2s ease;
  user-select: none;
}
.lb-img.zoomed { transform: scale(1.8); cursor: zoom-out; }
.lb-caption {
  margin-top: 18px;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
}

body.lb-lock { overflow: hidden; }

@media (max-width: 767px) {
  .lb-counter { top: 18px; left: 16px; font-size: 16px; }
  .lb-tools { top: 10px; right: 8px; gap: 0; }
  .lb-btn { width: 38px; height: 38px; }
  .lb-btn svg { width: 22px; height: 22px; }
  .lb-prev { left: 6px; }
  .lb-next { right: 6px; }
  .lb-nav { width: 40px; height: 40px; background: rgba(0, 0, 0, .35); }
  .lb-stage { max-width: 94vw; }
  .lb-caption { font-size: 15px; }
}