/* A compact editorial archive, with original files preserved for enlargement. */
#bach-tour-archive{--paper:#222123;--ink:#f4f0e7;--muted:#c8beb0;--line:#514b44;--accent:#dfc59e;background:var(--paper);color:var(--ink);border-color:var(--line)}
#bach-tour-archive .archive-content{max-width:820px}
#bach-tour-archive h2{margin-bottom:14px}
.archive-introduction{color:var(--muted);font-size:13px;margin:0}
.archive-instruction{font-size:11px;color:var(--muted);margin:8px 0 30px}
#bach-tour-archive .archive-collection+.archive-collection{margin-top:42px;padding-top:30px;border-top:1px solid var(--line)}
#bach-tour-archive .archive-collection-title{margin:0 0 22px;font:400 13px/1.5 Arial,Helvetica,sans-serif;letter-spacing:.08em;color:var(--muted)}
.archive-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:34px 28px;align-items:start}
.archive-item{margin:0;min-width:0}
.archive-thumbnail{position:relative;display:flex;align-items:center;justify-content:center;height:260px;padding:10px;background:#191819;border:1px solid #514b4466;cursor:zoom-in;overflow:hidden}
.archive-thumbnail img{display:block;width:100%;height:100%;object-fit:contain;transition:transform .55s ease}
.archive-thumbnail img[src="assets/vaux-sur-seine-borderless-v2.png"]{filter:saturate(.82)}
.archive-expand{position:absolute;right:8px;bottom:8px;display:grid;place-items:center;width:25px;height:25px;background:#222123e6;color:var(--ink);font-size:15px;border-radius:50%}
.archive-thumbnail:focus-visible{outline:2px solid var(--accent);outline-offset:4px}
@media(hover:hover){.archive-thumbnail:hover img{transform:scale(1.025)}.archive-thumbnail:hover{border-color:var(--accent)}}
.archive-item figcaption{padding-top:12px}
.archive-item h3{font-family:Georgia,'Times New Roman',serif;font-size:16px;font-weight:400;line-height:1.4;letter-spacing:0;margin:0 0 5px}
.archive-item figcaption p{font-size:10px;line-height:1.6;color:var(--muted);margin:0}
.archive-item figcaption .archive-credit{font-size:9px;margin-top:5px}
.archive-programme-link{display:inline-block;margin-top:9px;font-size:11px;text-underline-offset:4px;text-decoration:underline}
#bach-tour-archive .section-navigation{color:var(--ink);border-color:var(--line)}

/* The native modal keeps focus within the viewer and returns it to the thumbnail. */
#poster-dialog{box-sizing:border-box;width:min(1100px,96vw);max-height:calc(100svh - 24px);padding:0;background:#222123;color:#f4f0e7;border:1px solid #514b44;overflow:auto;overscroll-behavior:contain}
#poster-dialog::backdrop{background:rgba(10,9,9,.94)}
.archive-viewer-toolbar{display:flex;justify-content:space-between;align-items:center;min-height:52px;padding:4px 18px;position:sticky;top:0;z-index:2;background:#222123}
#archive-viewer-counter{font-size:11px;color:#c8beb0;margin:0;font-variant-numeric:tabular-nums}
#poster-dialog .close{position:static;min-height:44px;padding:10px 8px;font-size:12px;color:inherit}
.archive-viewer-stage{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:8px;align-items:center;padding:0 12px}
.archive-viewer-figure{position:relative;margin:0;min-width:0;line-height:0}
#poster-dialog .archive-viewer-figure img{display:block;width:100%;height:auto;max-height:calc(100svh - 235px);object-fit:contain;margin:0 auto}
#poster-dialog .dialog-photo-credit{font-size:9px;line-height:1.5;white-space:normal;text-align:center;color:#c8beb0;margin:9px 0 0;letter-spacing:0}
.archive-previous,.archive-next{width:44px;min-height:44px;border:1px solid #655747;background:transparent;color:#f4f0e7;font-size:20px;cursor:pointer}
.archive-previous:disabled,.archive-next:disabled{opacity:.3;cursor:default}
#poster-dialog button:focus-visible,#poster-dialog a:focus-visible{outline:2px solid #dfc59e;outline-offset:3px}
.archive-viewer-caption{padding:18px 64px 24px}
#poster-dialog h2{font-family:Georgia,'Times New Roman',serif;font-size:21px;line-height:1.35;font-weight:400;letter-spacing:0;margin:0 0 5px}
.archive-viewer-detail{font-size:11px;color:#c8beb0;margin:0 0 12px;line-height:1.5}
.archive-viewer-links{display:flex;gap:10px 24px;flex-wrap:wrap;font-size:11px;line-height:1.6}
.archive-viewer-links a{text-decoration:underline;text-underline-offset:4px;padding:4px 0}
.archive-viewer-links [hidden]{display:none}
@media(max-width:600px){
 .archive-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:26px 16px}
 .archive-thumbnail{height:190px;padding:7px}
 .archive-item h3{font-size:15px}
 #poster-dialog{width:calc(100vw - 16px);max-height:calc(100svh - 16px)}
 .archive-viewer-stage{grid-template-columns:1fr 1fr;gap:12px;padding:0 14px}
 .archive-viewer-figure{grid-column:1 / -1;grid-row:1}
 .archive-previous{grid-column:1;grid-row:2;justify-self:start}
 .archive-next{grid-column:2;grid-row:2;justify-self:end}
 #poster-dialog .archive-viewer-figure img{max-height:calc(100svh - 320px)}
 .archive-viewer-caption{padding:14px 18px 20px}
 #poster-dialog h2{font-size:19px}
 #poster-dialog .dialog-photo-credit{font-size:9px}
}
@media(max-width:360px){.archive-thumbnail{height:166px}.archive-gallery{gap:24px 12px}}
@media(prefers-reduced-motion:reduce){.archive-thumbnail img{transition:none}}

/* Discreet links to the documented Paris concert, outside the main menu. */
.concert-context-link{text-decoration:underline;text-decoration-color:rgba(200,190,176,.5);text-underline-offset:4px;text-decoration-thickness:1px}
.concert-context-link:hover{text-decoration-color:currentColor}
.concert-archive-portal{font-size:12px;line-height:1.6;margin:12px 0 18px;color:var(--ink)}
.concert-archive-portal a{display:inline-block;border-bottom:1px solid var(--line);padding-bottom:3px}
.concert-archive-portal span{margin-left:8px}

/* Preserve the original archival pixels; restrained color correction in both gallery views. */
.archive-thumbnail[data-photo-grade="saint-severin"] img,#poster-dialog img.archive-grade-saint-severin{filter:saturate(.84) brightness(1.025) contrast(.97)}

.archive-thumbnail[data-photo-grade="eisenach"] img,#poster-dialog img.archive-grade-eisenach{filter:brightness(1.10) contrast(.96) saturate(.95) sepia(.025)}

/* Original celebration artifact: restrained color, with its inscription linked to the concert. */
.archive-image-open[data-photo-grade="celebration"] img,#poster-dialog img.archive-grade-celebration{filter:saturate(.82) brightness(1.025) contrast(.98)}
.archive-linked-image{position:relative;height:100%;aspect-ratio:9/16;max-width:100%;margin:auto}
.archive-image-open{display:block;width:100%;height:100%}
.archive-event-hotspot{position:absolute;left:5%;top:24%;width:90%;height:19%;z-index:2;cursor:pointer}
.archive-event-hotspot:hover,.archive-viewer-event-hotspot:hover{background:#ffffff0a;outline:1px solid #dfc59e80;outline-offset:2px}
.archive-event-hotspot:focus-visible,.archive-viewer-event-hotspot:focus-visible{outline:2px solid #dfc59e;outline-offset:3px}
.archive-linked-thumbnail:hover img{transform:none}
.archive-viewer-event-hotspot{position:absolute;z-index:2;cursor:pointer}
.archive-viewer-event-hotspot[hidden]{display:none}
.archive-viewer-people{font-size:11px;line-height:1.7;color:#c8beb0;margin:0 0 12px}

/* Gentle display grading preserves every original poster pixel and QR code. */
.archive-thumbnail[data-photo-grade="kothen"] img,.archive-viewer-figure img.archive-grade-kothen{filter:saturate(.82) brightness(1.015) contrast(.98)}

/* Hide only the phone-interface remnant; the archival source remains untouched. */
.archive-thumbnail[data-photo-grade="canigou-clipping"] img,#poster-dialog img.archive-grade-canigou-clipping{clip-path:inset(0 0 1.8% 0)}
.archive-video-frame{aspect-ratio:16/9;background:#191819;border:1px solid #514b4466}
.archive-video-frame iframe{display:block;width:100%;height:100%;border:0}

/* A quiet photographic cover; load the video only in a full-size player. */
.archive-video-preview{position:relative;display:block;border:1px solid #514b4466;overflow:hidden;background:#191819;cursor:pointer}
.archive-performance-photo{position:relative;display:block;aspect-ratio:969/510;overflow:hidden}
.archive-performance-photo img{position:absolute;display:block;width:111.764706%;max-width:none;height:auto;left:-5.882353%;top:-120.196078%;margin:0}
.archive-play-icon{position:absolute;right:10px;bottom:10px;display:grid;place-items:center;width:44px;height:44px;border-radius:50%;color:#f4f0e7;border:1px solid #f4f0e7aa;background:#171616a6;transition:background .3s ease}
.archive-video-preview:hover .archive-play-icon{background:#171616e6}
.archive-video-preview:focus-visible{outline:2px solid var(--accent);outline-offset:4px}
#archive-video-dialog{box-sizing:border-box;width:min(1000px,calc(100vw - 24px));max-width:none;max-height:calc(100svh - 24px);padding:0;border:1px solid #514b44;background:#222123;color:#f4f0e7;overflow:auto;overscroll-behavior:contain}
#archive-video-dialog::backdrop{background:rgba(10,9,9,.94)}
.archive-video-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:12px 18px}
#archive-video-title{font:400 20px/1.35 Georgia,serif;letter-spacing:0;margin:0}
.archive-video-close{flex-shrink:0;min-height:44px;padding:10px 0 10px 14px;border:0;background:none;color:inherit;font:inherit;font-size:12px;cursor:pointer}
.archive-video-close span{font-size:20px;margin-left:8px}
.archive-video-stage{aspect-ratio:16/9;min-height:200px;background:#000}
.archive-video-stage iframe{display:block;width:100%;height:100%;min-height:200px;border:0}
#archive-video-dialog .archive-video-caption{font-size:11px;color:#c8beb0;line-height:1.6;margin:16px 18px 8px}
#archive-video-dialog .archive-video-fallback{font-size:11px;line-height:1.5;margin:0 18px 18px}
.archive-video-fallback a{text-decoration:underline;text-underline-offset:4px}
#archive-video-dialog :focus-visible{outline:2px solid #dfc59e;outline-offset:3px}
@media(max-width:600px){#archive-video-title{font-size:17px}.archive-video-toolbar{padding:8px 14px;gap:12px}.archive-play-icon{width:40px;height:40px;right:8px;bottom:8px}}
@media(prefers-reduced-motion:reduce){.archive-play-icon{transition:none}}

/* Compact catalogue previews; full-size archive viewers remain unchanged. */
#bach-tour-archive .archive-gallery{grid-template-columns:repeat(4,minmax(0,1fr));gap:20px 14px}
#bach-tour-archive .archive-thumbnail{height:78px;padding:4px}
#bach-tour-archive .archive-item figcaption{padding-top:7px}
#bach-tour-archive .archive-collection+.archive-collection{margin-top:28px;padding-top:20px}
#bach-tour-archive .archive-collection-title{margin-bottom:14px}
#bach-tour-archive .archive-programme-link{margin-top:6px}
#bach-tour-archive .archive-video-preview{max-width:140px;margin-inline:auto}
#bach-tour-archive .archive-play-icon{width:28px;height:28px;right:5px;bottom:5px}
@media(min-width:1024px){
 #bach-tour-archive .archive-gallery{grid-template-columns:repeat(6,minmax(0,1fr));gap:22px 16px}
 #bach-tour-archive .archive-thumbnail{height:88px}
 #bach-tour-archive .archive-video-preview{max-width:156px}
}
@media(max-width:600px){
 #bach-tour-archive .archive-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 12px}
 #bach-tour-archive .archive-thumbnail{height:64px;padding:3px}
 #bach-tour-archive .archive-video-preview{max-width:114px}
}

/* Secondary editorial credits, consistent with the photograph overlays. */
.archive-item figcaption .archive-credit{font-size:calc(.75rem * 5 / 6 * .75 * .75 * .8);font-weight:400;line-height:1.45;overflow-wrap:anywhere}
#poster-dialog .dialog-photo-credit{font-size:calc(.75rem * 5 / 6 * .75 * .75 * .8);font-weight:400;line-height:1.45;white-space:normal;overflow-wrap:anywhere}

@media(max-width:600px){.archive-item figcaption .archive-credit,#poster-dialog .dialog-photo-credit{font-size:calc(.6875rem * 5 / 6 * .75 * .75 * .8)}}

.archive-item figcaption .archive-credit,#poster-dialog .dialog-photo-credit{
  text-wrap:balance;overflow-wrap:normal;word-break:normal;hyphens:none;
}
