.photo-page { width: min(1050px, calc(100% - 64px)); margin: 18px auto 60px; }
.photo-intro { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 10px; }
.photo-intro h1 { font-size: clamp(23px, 2.3vw, 28px); line-height: 1.3; margin: 0; }
.photo-intro p { font-size: 12px; line-height: 1.5; margin: 5px 0 0; color: var(--muted); }
.filmstrip { position: relative; display: flex; overflow-x: auto; gap: 8px; padding: 4px 2px 8px; overscroll-behavior-x: contain; scrollbar-width: thin; scroll-padding-inline: 24px; }
.photo-tab { flex: 0 0 60px; min-width: 0; padding: 3px; color: var(--ink); background: transparent; border: 2px solid transparent; border-radius: 8px; cursor: pointer; }
.photo-tab[aria-selected="true"] { border-color: var(--accent); background: #eee8df; }
.photo-tab img { display: block; width: 50px; height: 58px; object-fit: cover; border-radius: 3px; }
.photo-tab span { display: block; font-size: 10px; line-height: 1.35; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.photo-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; border-block: 1px solid var(--line); padding: 8px 0; margin-bottom: 14px; }
.playback { grid-column: 1; grid-row: 1; justify-self: start; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.playback button { font: inherit; font-size: 13px; background: var(--white); color: var(--ink); border: 1px solid #c9c0b4; padding: 10px 13px; border-radius: 5px; cursor: pointer; }
.photo-count { font-size: 12px; color: var(--muted); min-width: 48px; font-variant-numeric: tabular-nums; }
.read-photo { grid-column: 2; grid-row: 1; justify-self: center; white-space: nowrap; font-size: 13px; padding: 10px 16px; }
.stage-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); align-items: center; gap: 34px; }
.photo-frame { height: clamp(300px, 48svh, 560px); position: relative; display: flex; align-items: center; justify-content: center; background: #ebe7e0; overflow: hidden; border-radius: 8px; touch-action: pan-y; user-select: none; }
.photo-frame img { display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.photo-frame.loading img { opacity: 0; }
.photo-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 48px; border: 1px solid #ccc5bc; background: rgba(255,255,255,.93); border-radius: 6px; font-size: 25px; color: #332e28; cursor: pointer; box-shadow: 0 2px 12px #0001; }
.photo-arrow.previous { left: 9px; }
.photo-arrow.next { right: 9px; }
.photo-caption h2 { margin: 12px 0 20px; font-size: clamp(23px,2.3vw,30px); line-height: 1.55; }
.photo-caption > p, .caption-copy p { font-size: 17px; line-height: 1.95; }
.photo-caption .category { margin: 0; font-size: 12px; }
.photo-caption .article-target { padding-top: 20px; margin-top: 25px; border-top: 1px solid var(--line); }
.article-target span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 7px; }
.article-target strong { display: block; font-size: 15px; font-weight: 500; line-height: 1.7; }
.photo-help { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; color: var(--muted); font-size: 12px; }
.photo-help p { margin: 0; }
.reader-return { padding-block: 22px 0; }
.reader-return a { display: inline-block; padding: 10px 15px; border: 1px solid var(--line); text-decoration: none; font-size: 14px; }
.photo-hub-link { margin: 18px 0; }
.photo-error { padding: 30px 60px; text-align: center; font-size: 15px; }
@media(max-width: 760px) {
  .photo-page { width: calc(100% - 32px); margin-top: 18px; }
  .photo-intro { display: block; }
  .photo-intro p { margin-top: 8px; }
  .stage-grid { grid-template-columns: minmax(0,1fr); gap: 24px; }
  .photo-frame { height: min(52svh, 540px); min-height: 310px; }
  .photo-tab { flex-basis: 59px; }
  .photo-tab img { width: 49px; height: 57px; }
  .photo-toolbar { margin-bottom: 12px; }
  .playback { gap: 8px; }
  .playback button, .read-photo { font-size: 12px; padding: 10px; }
  .photo-caption h2 { font-size: 24px; margin-bottom: 16px; }
  .photo-caption > p, .caption-copy p { font-size: 16px; }
  .photo-caption .article-target { margin-top: 18px; }
  .photo-arrow { width: 35px; height: 44px; }
  .photo-help { margin-top: 20px; }
}
@media(prefers-reduced-motion: reduce) { .photo-frame img { transition: none; } }

@media(max-width: 560px) {
  .photo-toolbar { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .read-photo { grid-column: 1; grid-row: 1; }
  .playback { grid-column: 1; grid-row: 2; }
}

.caption-copy p { margin:0 0 10px; }
