/* 旧暗房 viewer 已退役；仅灯箱打开时锁滚动 */
body.sample-viewer-open:not(.sample-folio-open) {
  overflow: hidden !important;
}

.sample-viewer-scroll {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
}

/* 样片详情标题栏：滚动时固定在顶部 */
.sample-viewer-scroll > header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(12, 11, 10, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

body.sample-lightbox-open #root header,
body.sample-viewer-open.sample-lightbox-open #root header {
  visibility: hidden !important;
  pointer-events: none !important;
}

body.sample-lightbox-open .salon-lightbox {
  background-color: rgba(0, 0, 0, 0.95);
}

body.sample-lightbox-open .salon-lightbox button[aria-label="关闭"] {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.85);
}

body.sample-lightbox-open .salon-lightbox button[aria-label="上一张"],
body.sample-lightbox-open .salon-lightbox button[aria-label="下一张"] {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.85);
}
