/* ============================================================
   Stationery - 轻量图片灯箱
   无第三方依赖，支持缩放、拖动、切换、快捷键
   ============================================================ */

.slb {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(20, 18, 15, 0.92);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.slb.is-open { display: flex; }
.slb__stage {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  touch-action: none;
  cursor: grab;
}
.slb__stage.is-dragging { cursor: grabbing; }
.slb__img {
  position: absolute;
  top: 50%;
  left: 50%;
  max-width: none;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  will-change: transform;
  user-select: none;
  -webkit-user-drag: none;
  transition: transform 0.22s ease;
}
.slb__stage.is-dragging .slb__img { transition: none; }

.slb__toolbar {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
  display: flex;
  gap: 8px;
}
.slb__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  transition: all 0.18s ease;
}
.slb__btn:hover { background: rgba(255, 255, 255, 0.22); }
.slb__btn svg { width: 19px; height: 19px; }

.slb__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
}
.slb__nav--prev { left: 16px; }
.slb__nav--next { right: 16px; }

.slb__caption {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 76vw;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  text-align: center;
}
.slb__counter {
  position: absolute;
  bottom: 22px;
  right: 22px;
  z-index: 3;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  letter-spacing: 0.05em;
}
.slb__caption:empty { display: none; }

@media (max-width: 640px) {
  .slb__nav { display: none; }
  .slb__toolbar { top: 12px; right: 12px; }
}
