/* ===== Lightbox 灯箱（作品详情页图片放大切换） ===== */
.lb-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28, 26, 24, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.lb-overlay.open { opacity: 1; visibility: visible; }

.lb-stage {
  position: relative;
  max-width: 92vw;
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lb-img {
  max-width: 92vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  display: block;
  border-radius: 6px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .5);
  background: #f5f5f5;
  user-select: none;
  -webkit-user-drag: none;
  cursor: pointer;
  animation: lb-pop .28s ease;
}
@keyframes lb-pop {
  from { opacity: 0; transform: scale(.96); }
  to   { opacity: 1; transform: scale(1); }
}

/* 左右切换按钮：贴页面左右边 */
.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border: none;
  border-radius: 50%;
  background: rgba(245, 245, 245, 0.14);
  color: #f5f5f5;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease, transform .15s ease;
  z-index: 2;
}
.lb-nav:hover { background: rgba(194, 104, 58, 0.85); }
.lb-nav:active { transform: translateY(-50%) scale(.92); }
.lb-prev { left: -84px; }
.lb-next { right: -84px; }

/* 视口较窄时，把按钮移进图片内侧，避免被裁切 */
@media (max-width: 820px) {
  .lb-prev { left: 14px; }
  .lb-next { right: 14px; }
}

/* 关闭按钮 */
.lb-close {
  position: absolute;
  top: 22px;
  right: 26px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(245, 245, 245, 0.14);
  color: #f5f5f5;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease;
  z-index: 3;
}
.lb-close:hover { background: rgba(194, 104, 58, 0.85); }

/* 计数说明 */
.lb-caption {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  color: #f5f5f5;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 1px;
  background: rgba(28, 26, 24, .5);
  padding: 6px 14px;
  border-radius: 20px;
  white-space: nowrap;
}
