.instrument-hero{max-width:1180px;margin:1rem auto 2rem;padding:0 1.5rem}
.instrument-hero .photo-zoom{display:block;margin:0 auto;max-height:360px;background:transparent;border:0;padding:0;cursor:zoom-in}
.instrument-hero img{display:block;max-width:min(100%,900px);max-height:360px;object-fit:contain}
.chapter-nav{max-width:1180px;margin:3rem auto;padding:1rem 1.5rem;border-top:1px solid #d8dfe3;display:flex;flex-wrap:wrap;justify-content:space-between;gap:.8rem}
.chapter-nav a,.instrument-link{color:inherit;text-decoration-color:#9aaab4;text-underline-offset:.18em}
.chapter-nav a:hover,.instrument-link:hover{color:#365f7a;text-decoration-color:currentColor}
.photo-dialog{width:min(94vw,1200px);max-width:none;max-height:92vh;border:0;padding:1rem;background:#101820;color:#fff;border-radius:4px}
.photo-dialog::backdrop{background:rgba(0,0,0,.82)}
.photo-dialog-head{display:flex;justify-content:space-between;align-items:center;gap:1rem}
.photo-dialog-head p{margin:.25rem 0}
.photo-dialog-head button{padding:.55rem .9rem}
.photo-dialog figure{margin:.75rem 0 0;text-align:center}
.photo-dialog img{max-width:100%;max-height:78vh;object-fit:contain}
.photo-dialog figcaption{margin-top:.5rem;color:#e1e7eb}
@media(max-width:640px){.instrument-hero{padding:0 1rem;margin:.75rem auto 1.25rem}.instrument-hero img{max-height:260px}.chapter-nav{padding:1rem;justify-content:flex-start}.chapter-nav a{flex:1 1 42%}}

/* Ver.1.0: referenced historical figures, placed within existing prose. */
.archive-figure { width:min(100%,680px); margin:2rem auto 2.4rem; text-align:center; }
.archive-figure .photo-zoom { display:block; width:100%; padding:0; border:0; background:transparent; cursor:zoom-in; }
.archive-figure img { display:block; margin:auto; max-width:100%; max-height:440px; width:auto; height:auto; object-fit:contain; }
.archive-figure figcaption { margin:.65rem auto 0; font-size:.83rem; line-height:1.65; color:var(--ink); }
.archive-figure figcaption strong { display:block; font-weight:650; }
.archive-figure figcaption small { display:block; font-size:.72rem; color:var(--muted); }
.archive-figure .photo-zoom:focus-visible { outline:3px solid var(--accent); outline-offset:3px; }


/* v1.1: personally approved apparatus/ion-optics source figures */
.archive-figure { width:min(100%,760px); margin:2rem auto 2.5rem; }
.archive-figure img { width:100%; max-height:none; height:auto; object-fit:contain; }
/* v1.1.1: wide ion-optics panels must fit the text column; zoom opens full-resolution figure. */
.archive-figure--wide { width:100%; max-width:100%; margin-left:auto; margin-right:auto; }
.archive-figure--wide img { max-height:700px; }
@media (max-width:1190px){
  .archive-figure--wide { width:100%; margin-left:auto; margin-right:auto; }
}
.archive-figure figcaption { font-size:.85rem; line-height:1.65; }
.archive-figure figcaption small { font-size:.75rem; }
