:root {
  --lb-bg: rgba(15, 23, 42, 0.88);
  --lb-brand: #1890ff;
}

.lb-ready img {
  cursor: zoom-in;
}

.lb-overlay {
  position: fixed;
  inset: 0;
  z-index: 19891020;
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--lb-bg);
  padding: 24px;
  box-sizing: border-box;
}

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

.lb-stage {
  position: relative;
  max-width: min(96vw, 1200px);
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lb-stage img {
  max-width: 96vw;
  max-height: 86vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  cursor: default;
  background: #0b1220;
}

.lb-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease;
}

.lb-btn:hover {
  background: rgba(255, 255, 255, 0.28);
}

.lb-prev { left: 12px; }
.lb-next { right: 12px; }

.lb-close {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 26px;
  cursor: pointer;
  z-index: 19891021;
}

.lb-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lb-counter {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  letter-spacing: 0.04em;
  z-index: 19891021;
  user-select: none;
}

body.lb-lock {
  overflow: hidden;
}

@media (max-width: 720px) {
  .lb-btn {
    width: 38px;
    height: 38px;
    font-size: 18px;
  }
  .lb-prev { left: 6px; }
  .lb-next { right: 6px; }
}
