/* Shared extensions for the AIC UK gallery and story pages. */
.gallery-more{margin-top:32px}.history-more{margin-top:26px}
.header .nav{gap:17px}.header .header-inner{gap:22px}.header .header-actions{gap:16px}
.nav [aria-current=page]{color:var(--accent);font-weight:700}
[hidden]{display:none!important}
.chapter-page h1{font-size:clamp(48px,6.6vw,96px);line-height:1.02;max-width:1000px;overflow-wrap:break-word}
.chapter-page h1 em,.chapter-page h2 em{color:var(--accent)}
.chapter-heading{padding-top:34px;padding-bottom:65px;position:relative}
.breadcrumbs{display:flex;gap:13px;font-size:11px;color:var(--muted);margin-bottom:54px}
.breadcrumbs a{border-bottom:1px solid var(--line)}
.chapter-heading>.eyebrow{color:var(--accent);margin-bottom:24px}
.chapter-intro{max-width:640px;margin-top:28px;font-size:16px;line-height:1.85}
.gallery-toolbar{display:flex;flex-wrap:wrap;gap:18px;justify-content:space-between;align-items:center;border-top:1px solid var(--line);padding:24px 0 32px}
.gallery-filters{display:flex;gap:9px;flex-wrap:wrap}
.gallery-filters button{border:1px solid var(--line);background:transparent;padding:11px 17px;color:var(--ink);font-size:12px;min-height:44px;border-radius:2px}
.gallery-filters button:hover{border-color:var(--ink)}
.gallery-filters button[aria-pressed=true]{background:var(--ink);border-color:var(--ink);color:var(--paper)}
.photo-wall{columns:3;column-gap:27px}
.photo-card{break-inside:avoid;margin:0 0 36px;display:inline-block;width:100%}
.photo-frame{background:#e4dfd3;position:relative;overflow:hidden}
.photo-frame img{display:block;width:100%;height:auto;transition:transform .35s}
.photo-open{display:block}.photo-open:hover img{transform:scale(1.025)}
.photo-expand{position:absolute;right:12px;bottom:12px;display:grid;place-items:center;border-radius:50%;width:38px;height:38px;background:var(--paper);color:var(--ink);font-size:20px;box-shadow:0 2px 10px #0002}
.photo-card figcaption{padding-top:16px;border-top:3px solid var(--gold)}
.photo-card h2{font-family:var(--serif);font-size:25px;letter-spacing:-.025em;line-height:1.2}
.photo-card p{font-size:12px;margin-top:7px;line-height:1.7}
.chapter-outro{display:grid;grid-template-columns:1fr 1fr;gap:55px;align-items:center;padding-top:62px;padding-bottom:90px;margin-top:25px;border-top:1px solid var(--line)}
.chapter-outro h2{font-size:clamp(35px,4vw,60px)}
.chapter-outro p{max-width:420px;margin-bottom:23px}
.photo-dialog{padding:20px;border:1px solid #627067;border-radius:3px;max-width:1040px;width:calc(100% - 32px);max-height:calc(100dvh - 32px);overflow:auto;background:#142b23;color:var(--paper)}
.photo-dialog::backdrop{background:#07120ff2;backdrop-filter:blur(5px)}
.lightbox-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;font-size:12px}
.photo-dialog button{background:transparent;color:var(--paper);border:1px solid #8e9b91;padding:10px 15px;min-height:44px;min-width:44px;font-size:13px;border-radius:2px}
.photo-dialog button:hover{background:#31493d}
#lightbox-image{width:100%;height:65dvh;object-fit:contain;margin:auto}
.lightbox-bottom{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:24px;margin-top:20px}
.lightbox-bottom h2{font-size:25px;color:var(--paper);line-height:1.15}
.lightbox-bottom p{font-size:12px;color:#cbd2c8;line-height:1.6;margin-top:7px}
.story-banner{margin:0;position:relative;background:#dfd8ca}
.story-banner img{width:100%;height:clamp(300px,43vw,550px);object-fit:cover;object-position:center 38%}
.story-banner figcaption{position:absolute;bottom:0;left:0;background:var(--ink);color:var(--paper);padding:15px 24px;font-size:12px}
.story-editorial{display:grid;grid-template-columns:.8fr 1.2fr;gap:80px;padding-top:90px;padding-bottom:90px}
.story-editorial .eyebrow,.association-section .eyebrow,.future-section>.eyebrow{color:var(--accent);margin-bottom:20px}
.reading-copy{max-width:660px}.reading-copy p{font-size:15px;line-height:1.9;margin-bottom:22px}.reading-copy p:last-child{margin-bottom:0}
.association-section{background:#e9eadd;padding:78px 0}
.association-section h2{font-size:clamp(36px,4.2vw,62px)}
.association-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px}
.association-cards article{border-top:1px solid #b5c0af;padding-top:25px;display:flex;flex-direction:column;align-items:flex-start}
.chapter-number{font-family:var(--serif);font-size:28px;color:#8b7959;margin-bottom:17px}
.association-cards h3{font-family:var(--serif);font-size:29px;line-height:1.12;letter-spacing:-.025em;margin-bottom:20px}
.association-cards p{font-size:14px;line-height:1.85;margin-bottom:25px}.association-cards .text-link{margin-top:auto}
.timeline-intro{max-width:280px;font-size:14px;margin-top:25px}
.timeline{list-style:none;margin:0;padding:0 0 0 26px;border-left:1px solid #a3b3a0}
.timeline li{position:relative;padding-bottom:42px}.timeline li:last-child{padding-bottom:0}
.timeline li:before{content:"";position:absolute;width:10px;height:10px;left:-32px;top:7px;border:1px solid var(--ink);background:var(--paper);border-radius:50%}
.timeline .timeline-date{font-size:10px;font-weight:700;color:var(--accent);letter-spacing:.13em;margin-bottom:13px}
.timeline h3{font-family:var(--serif);font-size:32px;line-height:1.15;letter-spacing:-.02em;margin-bottom:14px}
.timeline p:not(.timeline-date){font-size:14px;line-height:1.85;max-width:630px}
.timeline .text-link{margin-top:16px}
.future-section{padding-top:55px;padding-bottom:60px;border-top:1px solid var(--line)}
.future-section h2{font-size:clamp(38px,4.6vw,64px);max-width:1000px}
.future-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:34px;margin:42px 0 30px}
.future-grid h3{font-family:var(--serif);font-size:26px;margin-bottom:12px}.future-grid p{font-size:14px;line-height:1.8}
.future-note{max-width:710px;font-size:14px;margin-bottom:24px}
.sources-section{padding-bottom:60px}.sources-section details{border-top:1px solid var(--line);padding-top:20px;font-size:12px;color:var(--muted)}
.sources-section summary{cursor:pointer;min-height:44px;align-content:center;color:var(--ink)}
.sources-section li{margin:12px 0}.sources-section a{text-decoration:underline;text-underline-offset:3px}
.chapter-page .footer-links a{overflow-wrap:anywhere}
@media(max-width:1280px){.header-inner{height:80px}.header .nav{position:absolute;left:0;right:0;top:80px;background:var(--paper);border-bottom:1px solid var(--line);display:none;flex-direction:column;padding:18px var(--gutter);align-items:stretch;gap:0;font-size:15px;max-height:calc(100dvh - 100px);overflow-y:auto}.header .nav.open{display:flex}.header .nav a{padding:10px 0}.menu-toggle{display:block}.header-actions{margin-left:auto}}
@media(max-width:900px){.photo-wall{columns:2}.story-editorial{grid-template-columns:1fr;gap:34px;padding-top:60px;padding-bottom:60px}.timeline-intro{max-width:520px}.association-cards{gap:20px}.association-cards h3{font-size:25px}.association-section .section-head{grid-template-columns:1fr;gap:25px}.association-section .section-head p{max-width:600px}.chapter-heading{padding-bottom:48px}.future-grid{gap:23px}.chapter-page .footer-main{gap:35px}}
@media(max-width:650px){.chapter-heading{padding-top:22px}.breadcrumbs{margin-bottom:35px}.chapter-intro{font-size:14px;line-height:1.8}.gallery-toolbar{gap:14px;padding-top:20px}.gallery-filters{gap:7px}.gallery-filters button{padding:9px 12px;font-size:11px}.photo-wall{columns:1}.photo-card{margin-bottom:30px}.photo-card h2{font-size:25px}.chapter-outro{grid-template-columns:1fr;gap:25px;padding-top:40px;padding-bottom:55px}.association-cards,.future-grid{grid-template-columns:1fr;gap:32px}.association-section{padding:55px 0}.association-cards h3{font-size:29px}.association-cards p{margin-bottom:18px}.story-banner figcaption{padding:12px 16px;font-size:11px}.story-banner img{height:280px}.timeline h3{font-size:28px}.chapter-page .footer-main{grid-template-columns:1fr}.chapter-page .footer-links{flex-wrap:wrap}.lightbox-bottom{gap:10px;grid-template-columns:44px 1fr 44px}.photo-dialog{padding:12px;width:calc(100% - 16px);max-height:calc(100dvh - 16px)}#lightbox-image{height:55dvh}.lightbox-bottom h2{font-size:21px}.lightbox-bottom p{font-size:11px}.photo-dialog button{padding:8px}.future-section{padding-top:40px}.chapter-page .chapter-heading h1{font-size:clamp(45px,11vw,70px)}}
@media(prefers-reduced-motion:reduce){.photo-frame img{transition:none}.photo-open:hover img{transform:none}}
@media print{.gallery-filters,.photo-expand,.photo-dialog,.sources-section{display:none}.photo-wall{columns:2}.story-editorial{display:block}.timeline{margin-top:25px}.chapter-heading{padding:20px 0}.breadcrumbs{margin-bottom:20px}}
