/* 实物照片 section + lightbox (src/photos.js). Palette tokens from style.css only. */
.photos { margin-top: 48px; }
.photos > p { margin: 0 0 6px; max-width: 46em; }
.photo-row { margin-top: 20px; }
.photo-row h3 {
  font-size: 19px; margin-bottom: 8px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
}
.photo-row h3 i { font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: 16px; }
.photo-row .count { font-family: var(--sans); font-size: 14px; font-weight: 400; color: var(--ink-soft); margin-left: 4px; }

/* the strip scrolls sideways inside itself; the page never does */
.photo-strip {
  list-style: none; margin: 0; padding: 4px 4px 10px; display: flex; gap: 10px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity;
  scrollbar-color: var(--ink-soft) var(--paper-deep);
}
.photo-strip li { flex: none; scroll-snap-align: start; }
.photo-strip[data-more] { mask-image: linear-gradient(to right, #000 calc(100% - 72px), transparent); }
.thumb {
  position: relative; display: block; padding: 0; margin: 0; cursor: zoom-in;
  background: var(--paper-deep); border: 1.5px solid var(--ink); border-radius: 4px; overflow: hidden;
}
.thumb img { display: block; height: 168px; width: auto; }
.thumb:hover img { opacity: 0.9; }
.thumb:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.thumb .part {
  position: absolute; left: 6px; bottom: 6px;
  font-size: 13px; font-weight: 700; line-height: 1; padding: 4px 7px; border-radius: 3px;
  background: var(--paper); color: var(--ink); border: 1.2px solid var(--ink);
}

/* lightbox */
html.lb-open { overflow: hidden; }
.lightbox {
  width: min(1100px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px);
  padding: 14px 16px; border: 2px solid var(--ink); border-radius: 6px;
  background: var(--paper); color: var(--ink);
}
.lightbox::backdrop { background: rgba(30, 39, 51, 0.78); }
.lightbox header { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.lightbox h2 { font-size: 19px; margin: 0; display: inline; }
.lb-count { margin-left: 10px; font-size: 14px; color: var(--ink-soft); }
.lightbox figure { margin: 10px 0 0; }
.lb-img {
  display: block; margin: 0 auto; background: var(--paper-deep);
  max-width: 100%; max-height: calc(100dvh - 250px); width: auto; height: auto; object-fit: contain;
}
.lightbox figcaption { margin-top: 8px; font-size: 14px; }
.lightbox .credit { margin: 0; }
.lb-meta { margin: 2px 0 0; color: var(--ink-soft); }
.lightbox nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 10px; }
.lb-nav, .lb-close {
  font: inherit; font-size: 15px; color: var(--ink); cursor: pointer; min-height: 44px; min-width: 88px; padding: 6px 14px;
  background: var(--paper); border: 1.5px solid var(--ink); border-radius: 4px;
}
.lb-nav:hover, .lb-close:hover { background: var(--paper-deep); }
.lb-nav, .lb-close { display: inline-flex; align-items: center; justify-content: center; gap: 4px; }
.lb-nav .i, .lb-close .i { width: 18px; height: 18px; }
.lb-links { margin: 2px 0 0; display: flex; flex-wrap: wrap; column-gap: 20px; }
.lb-links a { display: inline-flex; align-items: center; min-height: 44px; }

@media (max-width: 640px) {
  .thumb img { height: 132px; }
  .lightbox { padding: 12px; }
  .lb-img { max-height: calc(100dvh - 300px); }
}
