/* 全屏预览 — 深色静谧，突出照片 */
#lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(28, 24, 34, 0.94);
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  touch-action: none;
}

#lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.12);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  z-index: 2001;
  transition: background 0.2s ease;
  font-weight: 400;
  line-height: 1;
}

#lightbox-close:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: none;
}

#lightbox-content {
  width: 100%;
  height: 80%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

#lightbox-img,
#lightbox-video {
  max-width: 96%;
  max-height: 96%;
  object-fit: contain;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
  border-radius: var(--radius-sm);
}

.lightbox-counter {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.82rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  z-index: 2001;
  pointer-events: none;
}

#lightbox-info-area {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
  padding: 28px 16px 22px;
  background: linear-gradient(to top, rgba(20, 16, 24, 0.85), transparent);
}

.lightbox-info {
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.88);
  min-height: 1.2em;
}

#lightbox-tags {
  margin-top: 8px;
}

.lightbox-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin: 0 4px 4px;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  font: inherit;
  appearance: none;
  -webkit-appearance: none;
  transition: background 0.15s ease;
}

.lightbox-tag:hover {
  background: rgba(255, 255, 255, 0.22);
}

.nav-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.16);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  z-index: 2002;
  transition: background 0.2s ease;
  font-weight: 400;
}

.nav-button:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%);
}

.nav-button:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

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