html{text-size-adjust:100%;-webkit-text-size-adjust:100%}
.masthead-links{display:flex;justify-content:space-between;align-items:center;gap:20px}
.photo-help{text-align:center;color:var(--cream);font-size:18px;margin:4px auto 28px}
.photo-figure{min-width:0;max-width:900px;margin:32px auto;text-align:center}
.photo-link{display:block;width:fit-content;max-width:100%;margin:auto;cursor:zoom-in}
.photo-link:hover{outline:2px solid var(--blue);outline-offset:4px;border-radius:8px}
.photo-figure img{display:block;width:auto;max-width:100%;height:auto;margin:0 auto;border:1px solid var(--line);border-radius:8px}
.photo-figure figcaption{font-size:19px;line-height:1.65;color:var(--cream);text-align:center;margin:10px auto 0;max-width:800px}
.photo-figure .credit{display:block;font-size:16px}
.reference-photo{max-width:720px}.profile{max-width:700px}
.photo-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px;max-width:850px;margin:32px auto;align-items:start}
.photo-pair .photo-figure{width:100%;margin:0}
button{font:inherit;cursor:pointer}button:focus-visible{outline:3px solid var(--blue);outline-offset:4px}
dialog{padding:0;border:1px solid #6b7792;border-radius:8px;background:#050b18;color:#fff;width:min(1320px,calc(100% - 24px));max-width:none;max-height:calc(100dvh - 24px);overflow:auto}
dialog::backdrop{background:rgba(0,0,0,.92)}
.viewer-shell{padding:14px}
.viewer-toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;font-size:16px}
.viewer-toolbar button,.viewer-stage>button{border:1px solid #64718a;background:#15213c;color:#fff;border-radius:6px;padding:8px 14px;min-width:44px;min-height:44px}
.viewer-stage{position:relative;display:block;padding:0 44px;margin-top:12px}
.viewer-stage>button{position:absolute;top:40%;z-index:2}
.viewer-stage>#previous-photo{right:0;left:auto}.viewer-stage>#next-photo{left:0;right:auto}
.viewer-stage figure{margin:0;width:100%;max-width:none;overflow:auto;max-height:calc(100dvh - 160px)}
.viewer-stage img{display:block;width:auto;max-width:100%;height:auto;max-height:calc(100dvh - 230px);object-fit:contain;border:0;border-radius:0;box-shadow:none;margin:0 auto}
.viewer-stage figcaption{font-size:18px;line-height:1.6;color:#eee;text-align:center;margin:12px auto 0;max-width:100%}
.viewer-stage .credit{display:block;font-size:15px}
.viewer-help{text-align:center;font-size:15px;color:#bbc5d8;margin:12px 0 0}
.viewer-zoomed .viewer-stage img{width:max(100%,1200px);max-width:none;max-height:none}
.viewer-zoomed .viewer-stage figure{overscroll-behavior:contain}
body.viewer-open{overflow:hidden}
@media(max-width:700px){.photo-pair{grid-template-columns:minmax(0,1fr);gap:28px}.photo-figure{margin:28px auto}.photo-help{font-size:18px}.photo-figure figcaption{font-size:20px}.viewer-shell{padding:10px}.viewer-toolbar{gap:8px;font-size:14px}.viewer-toolbar button{padding:6px 9px}.viewer-stage{padding:0}.viewer-stage>button{opacity:.88}.viewer-stage>#previous-photo{right:3px}.viewer-stage>#next-photo{left:3px}.viewer-stage img{max-height:calc(100dvh - 260px)}.viewer-stage figcaption{font-size:17px}.viewer-stage .credit{font-size:14px}}
@media print{.photo-help,dialog{display:none}.photo-figure,.photo-pair{break-inside:avoid}}
