/* The photographs set the rhythm. Shared surfaces remain deliberately quiet. */
:root{--paper:#f3f2ee;--entry:#d8d7d3;--ink:#242622;--muted:#62645e;--gutter:clamp(24px,3.5vw,64px);--header-top:32px;--gallery-top:192px;--text-small:14px}
html{scroll-behavior:smooth;scrollbar-color:#92938c var(--paper)}
body.exhibition{margin:0;background:var(--paper);color:var(--ink);font-family:Helvetica Neue,Helvetica,Arial,sans-serif;font-size:14px;line-height:1.5;overflow-x:hidden}
.exhibition *{box-sizing:border-box}
.exhibition a{color:inherit;text-decoration:none;text-underline-offset:4px}
.exhibition a:hover{text-decoration:underline}
.exhibition button{font:inherit;color:inherit;cursor:pointer;border:0;border-radius:0;background:none;box-shadow:none;text-transform:none;letter-spacing:normal;padding:0}
.exhibition :focus-visible{outline:2px solid var(--ink);outline-offset:6px}
.exhibition ::selection{background:#c5c6bb;color:var(--ink)}
.skip{position:fixed;top:-100px;left:20px;z-index:100;background:var(--paper);padding:12px}.skip:focus{top:12px}
.exhibition-header{position:fixed;inset:0 0 auto;z-index:20;display:flex;justify-content:space-between;align-items:flex-start;padding:var(--header-top) var(--gutter) 24px;background:transparent}
.photographer{font-size:30px;line-height:1.15;letter-spacing:-.03em;font-weight:400}
.contact{display:flex;flex-direction:column;align-items:flex-start;margin-top:12px;gap:3px;font-size:var(--text-small);line-height:1.55}
.exhibition .info-toggle{font-size:var(--text-small);min-height:44px;min-width:44px;text-align:right;margin-top:-5px}.info-toggle:hover{text-decoration:underline;text-underline-offset:4px}
body.is-entry{background:var(--entry)}
.entry{height:100svh;min-height:540px;display:grid;place-items:center;padding:156px var(--gutter) 48px}
.enter{display:grid;justify-items:center;align-content:center;width:100%;height:100%;gap:32px;perspective:1100px}
.entry-photo{width:min(57vw,760px);height:min(61svh,620px);transition:transform .7s cubic-bezier(.16,1,.3,1);will-change:transform}
.entry-photo img{display:block;width:100%;height:100%;object-fit:contain}
.welcome{font-size:var(--text-small);line-height:1.6;display:flex;align-items:center;gap:18px}.enter-line{display:block;width:40px;height:1px;background:currentColor;transform:scaleX(.8);transform-origin:left;transition:transform .35s}.enter:hover .enter-line{transform:scaleX(1)}
/* Compact contact-sheet rhythm, with occasional collage overlaps. */
.mosaic{padding:var(--gallery-top) var(--gutter) clamp(64px,7vw,112px);display:grid;grid-template-columns:repeat(24,minmax(0,1fr));column-gap:clamp(10px,1.2vw,22px);row-gap:clamp(28px,3.4vw,56px);align-items:end}
.photograph{margin:0;min-width:0;position:relative;grid-column:span 4;align-self:end}
.photograph:nth-child(6n+1){grid-column:span 4}
.photograph:nth-child(6n+2){grid-column:span 3;align-self:start;margin-top:24%}
.photograph:nth-child(6n+3){grid-column:span 5}
.photograph:nth-child(6n+4){grid-column:span 4;align-self:center}
.photograph:nth-child(6n+5){grid-column:span 3;margin-bottom:18%}
.photograph:nth-child(6n+6){grid-column:span 5}
.photograph:nth-child(12n+7){align-self:start;margin-top:8%}
.photograph:nth-child(12n+9){align-self:center;margin-bottom:10%}
.photograph:nth-child(12n+10){z-index:1;transform:translate(-7%,8%)}
.photograph:nth-child(12n+11){align-self:start;margin-top:12%}
.photograph:focus-within{z-index:3}
.exhibition .photo-open{display:block;width:100%;overflow:hidden;line-height:0}
.photo-open img{display:block;width:100%;height:auto;max-height:none;object-fit:contain;transition:transform .8s cubic-bezier(.16,1,.3,1)}
@media(hover:hover) and (prefers-reduced-motion:no-preference){.photo-open:hover img{transform:scale(1.025)}}
.exhibition-footer{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:32px var(--gutter) 40px;font-size:12px;line-height:1.6;color:var(--muted)}
.exhibition dialog{color:var(--ink);border:0;max-height:calc(100svh - 48px);overflow:auto;overscroll-behavior:contain;box-shadow:none;padding:0}
.exhibition dialog::backdrop{background:rgb(32 34 30 / .36)}
.exhibition .infos-dialog{width:min(780px,calc(100% - 48px));max-width:none;margin:auto;background:var(--paper)}
.infos-content{padding:80px clamp(32px,6vw,80px) 72px}.infos-content h1{font-size:clamp(30px,3.2vw,42px);font-weight:400;letter-spacing:-.035em;line-height:1.1;margin:0 0 32px}
.biography{font-size:16px;line-height:1.75;max-width:62ch}.biography p{margin:0 0 24px}.biography h2{font-size:18px;font-weight:500;margin:40px 0 16px}.biography img{max-width:100%;height:auto}
.info-profession{font-size:16px;line-height:1.7;margin:0}.infos-contact{display:flex;align-items:flex-start;flex-direction:column;gap:12px;margin-top:48px;font-size:14px;line-height:1.6;overflow-wrap:anywhere}.editor-note{color:var(--muted);font-size:14px;max-width:45ch}
.exhibition .close-dialog{position:absolute;right:16px;top:16px;width:44px;height:44px;display:grid;place-items:center;z-index:2}.close-dialog svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.3}
.exhibition .image-dialog{background:var(--paper);width:100vw;height:100svh;max-width:100vw;max-height:100svh;margin:0;padding:72px var(--gutter) 40px}
.image-dialog img{display:block;width:100%;height:100%;object-fit:contain}.exhibition.has-dialog{overflow:hidden}
.empty-gallery{grid-column:1/-1;min-height:50svh;display:grid;place-items:center}
@media(min-width:1600px){.mosaic{max-width:2000px;margin:auto}}
@media(max-width:900px){:root{--header-top:28px;--gallery-top:180px}.mosaic{grid-template-columns:repeat(12,minmax(0,1fr));row-gap:32px;column-gap:16px}.mosaic .photograph:nth-child(3n+1){grid-column:span 4}.mosaic .photograph:nth-child(3n+2){grid-column:span 3}.mosaic .photograph:nth-child(3n+3){grid-column:span 5}.photographer{font-size:28px}}
@media(max-width:650px){
 :root{--gutter:20px;--header-top:24px;--gallery-top:168px;--text-small:13px}
 .exhibition-header{padding-bottom:20px}.photographer{font-size:25px;line-height:1.2}.contact{margin-top:10px;gap:2px}
 .mosaic{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 14px}.mosaic .photograph:nth-child(n){grid-column:auto;padding-top:0;margin:0;transform:none;align-self:center}.mosaic .photograph:nth-child(7n+1){grid-column:1/-1;width:82%;justify-self:center}.photo-open img{max-height:none}
 .entry{padding:156px var(--gutter) 32px;min-height:480px}.enter{gap:24px}.entry-photo{width:100%;height:50svh}.welcome{gap:12px}
 .exhibition .infos-dialog{width:calc(100% - 24px);max-height:calc(100svh - 24px)}.infos-content{padding:76px 28px 40px}.infos-content h1{margin-bottom:24px}.biography{font-size:16px;line-height:1.7}.infos-contact{margin-top:36px;font-size:13px}
 .exhibition-footer{padding-top:24px;padding-bottom:28px;font-size:12px;gap:16px}.exhibition-footer a{padding:10px 0}.exhibition .image-dialog{padding:72px 16px 24px}
}
@media(max-width:360px){:root{--gutter:16px}.photographer{font-size:23px}.infos-content{padding-right:24px;padding-left:24px}.welcome{font-size:12px}}
@media(max-height:600px) and (min-width:651px){.entry{padding-top:132px;padding-bottom:24px;min-height:420px}.entry-photo{height:48svh}.enter{gap:20px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.exhibition *, .exhibition *::before,.exhibition *::after{animation:none!important;transition:none!important}.entry-photo{transform:none!important}}

/* Three.js renders photos; transparent canvas preserves the original surface. */
.mosaic-canvas{position:fixed;inset:0;z-index:2;pointer-events:none;display:block}
.photo-open img.is-webgl-image{opacity:1}
.exhibition dialog{z-index:50}
@media print{.mosaic-canvas{display:none}.photo-open img.is-webgl-image{opacity:1}}
/* Panoramic navigation occupies the viewport only after a photo is ready. */
.sphere-canvas{display:none;pointer-events:auto;touch-action:none;cursor:grab}
body.sphere-ready:not(.sphere-grid){height:100svh;overflow:hidden}
.sphere-ready:not(.sphere-grid) .mosaic,.sphere-ready:not(.sphere-grid) .exhibition-footer{display:none}
.sphere-ready:not(.sphere-grid) .sphere-canvas{display:block}
.sphere-canvas.over-photo{cursor:pointer}.sphere-canvas.is-dragging{cursor:grabbing}
.sphere-hint{display:none;position:fixed;left:50%;bottom:28px;transform:translateX(-50%);z-index:21;font-size:12px;color:var(--muted);margin:0;pointer-events:none;transition:opacity .4s}
.sphere-ready:not(.sphere-grid) .sphere-hint{display:block}.sphere-hint.is-used{opacity:0}
.exhibition .sphere-toggle{display:none;position:fixed;right:var(--gutter);bottom:18px;z-index:22;min-height:44px;font-size:12px;padding:10px 0;text-decoration:underline;text-underline-offset:4px}
.sphere-ready .sphere-toggle{display:block}.sphere-grid .sphere-toggle{background:var(--paper);padding:10px 14px}
@media(max-width:650px){.sphere-hint{left:var(--gutter);transform:none;bottom:32px;font-size:11px}.exhibition .sphere-toggle{bottom:18px}}
@media print{.sphere-ready .mosaic{display:grid!important}.sphere-canvas,.sphere-hint,.exhibition .sphere-toggle{display:none!important}}
/* Grid view keeps every photograph inside its own cell. */
.sphere-grid .mosaic .photograph{transform:none;margin:0;padding:0;align-self:center;z-index:auto}
.sphere-grid .mosaic{align-items:center;row-gap:clamp(28px,3.4vw,56px)}

/* Explicitly exclusive views, including retained WebGL frame buffers. */
body.sphere-grid canvas.mosaic-canvas,canvas.mosaic-canvas[hidden]{display:none!important;visibility:hidden!important;pointer-events:none!important}
body.sphere-grid .mosaic{display:grid;visibility:visible}
body.sphere-ready:not(.sphere-grid) .mosaic{display:none!important}

.exhibition .image-dialog{padding-left:clamp(64px,6vw,104px);padding-right:clamp(64px,6vw,104px)}
.exhibition .viewer-arrow{position:absolute;top:50%;transform:translateY(-50%);width:48px;height:64px;display:grid;place-items:center;z-index:2;background:var(--paper);transition:opacity .2s}
.viewer-prev{left:16px}.viewer-next{right:16px}.viewer-arrow svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.3}.viewer-arrow:hover{opacity:.6}
.viewer-status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
@media(max-width:650px){.exhibition .image-dialog{padding:72px 16px 88px}.exhibition .viewer-arrow{top:auto;bottom:12px;transform:none;height:56px}.viewer-prev{left:20px}.viewer-next{right:20px}}

/* Reserve the first frame for the sphere, without flashing the alternative grid. */
html.sphere-pending .is-gallery .mosaic,html.sphere-pending .is-gallery .exhibition-footer{visibility:hidden}
html.sphere-pending .is-gallery::after{content:'Chargement des photographies…';position:fixed;inset:50% 20px auto;text-align:center;font-size:12px;color:var(--muted);pointer-events:none}

.exhibition-header .info-toggle{margin-left:auto}
.moodboard-controls{display:flex;align-items:center;gap:20px;margin-left:28px;margin-top:-5px;font-size:13px}
.exhibition .moodboard-controls button{min-height:44px}.selection-mode[aria-pressed="true"]{text-decoration:underline;text-underline-offset:4px}
.exhibition .photo-select{position:absolute;right:6px;top:6px;width:36px;height:36px;background:var(--paper);display:grid;place-items:center;z-index:4;opacity:0;transition:opacity .2s}
.photo-select svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.3}
.photograph:hover .photo-select,.photograph:focus-within .photo-select,.is-selected .photo-select,.is-selecting .photo-select{opacity:1}
.is-selected .photo-select{background:var(--ink);color:var(--paper)}.is-selected .photo-select svg{transform:rotate(45deg)}
.moodboard-items{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px 16px}.moodboard-items figure{margin:0;min-width:0}.moodboard-items img{width:100%;height:160px;object-fit:contain;display:block}.moodboard-items button{font-size:12px;text-decoration:underline;min-height:44px}
.exhibition .viewer-select{position:absolute;bottom:14px;left:50%;transform:translateX(-50%);min-height:44px;font-size:13px;background:var(--paper);padding:10px 16px;white-space:nowrap}
.moodboard-empty{font-size:15px;line-height:1.7}
@media(hover:none){.exhibition .photo-select{opacity:1}}
@media(max-width:650px){.moodboard-controls{position:absolute;right:var(--gutter);top:64px;margin:0;flex-direction:column;align-items:flex-end;gap:0;font-size:11px}.exhibition .moodboard-controls button{min-height:32px}.moodboard-items{grid-template-columns:repeat(2,minmax(0,1fr))}.moodboard-items img{height:140px}.exhibition .viewer-select{font-size:11px;padding:10px 6px}}
.moodboard-pdf{margin-top:36px;padding-top:24px;border-top:1px solid #d4d4cc}
.exhibition .generate-pdf{min-height:46px;background:var(--ink);color:var(--paper);padding:12px 22px;font-size:14px}
.exhibition .generate-pdf:disabled{opacity:.45;cursor:default}.pdf-status{font-size:12px;line-height:1.6;color:var(--muted);margin:12px 0 0}
/* Edge-to-edge mosaic, with no gaps or offsets between photographs. */
body.sphere-grid .mosaic{gap:0;padding-left:0;padding-right:0;align-items:stretch;grid-auto-flow:row dense}
body.sphere-grid .mosaic .photograph{margin:0;padding:0;transform:none;align-self:stretch;width:100%;height:clamp(180px,24vw,400px);justify-self:stretch}
body.sphere-grid .mosaic .photo-open{height:100%}
body.sphere-grid .mosaic .photo-open img{width:100%;height:100%;max-height:none;object-fit:cover}
@media(max-width:650px){body.sphere-grid .mosaic{gap:0}body.sphere-grid .mosaic .photograph:nth-child(n){width:100%;height:52vw;margin:0;padding:0;align-self:stretch}body.sphere-grid .mosaic .photograph:nth-child(7n+1){height:70vw}}
/* White fades gently into the gallery beneath the navigation. */
.exhibition-header::before{content:'';position:absolute;top:0;left:0;right:0;height:190px;z-index:-1;pointer-events:none;background:linear-gradient(to bottom,#fff 0%,rgba(255,255,255,.98) 28%,rgba(255,255,255,.82) 53%,rgba(255,255,255,.35) 78%,rgba(255,255,255,0) 100%)}
.exhibition-header{isolation:isolate}
@media(max-width:650px){.exhibition-header::before{height:210px;background:linear-gradient(to bottom,#fff 0%,rgba(255,255,255,.98) 42%,rgba(255,255,255,.72) 65%,rgba(255,255,255,0) 100%)}}
/* Fade only behind the two navigation groups; the center stays clear. */
.exhibition-header::before{right:auto;width:270px;height:180px;background:linear-gradient(to bottom,#fff 0%,rgba(255,255,255,.98) 30%,rgba(255,255,255,.72) 58%,rgba(255,255,255,0) 100%);mask-image:linear-gradient(to right,#000 0%,#000 65%,transparent 100%);-webkit-mask-image:linear-gradient(to right,#000 0%,#000 65%,transparent 100%)}
.exhibition-header::after{content:'';position:absolute;top:0;right:0;width:390px;height:120px;z-index:-1;pointer-events:none;background:linear-gradient(to bottom,#fff 0%,rgba(255,255,255,.95) 35%,rgba(255,255,255,0) 100%);mask-image:linear-gradient(to left,#000 0%,#000 75%,transparent 100%);-webkit-mask-image:linear-gradient(to left,#000 0%,#000 75%,transparent 100%)}
@media(max-width:650px){.exhibition-header::before{width:48%;height:180px}.exhibition-header::after{width:48%;height:190px}}
/* Contacts share the navigation baseline and sit at the horizontal center. */
.exhibition-header .contact{position:absolute;left:50%;top:var(--header-top);transform:translateX(-50%);display:flex;flex-direction:row;align-items:center;gap:24px;margin:0;line-height:34px;font-size:13px;white-space:nowrap}
.exhibition-header::before{height:120px}
.exhibition-header .contact::before{content:'';position:absolute;left:50%;top:calc(-1 * var(--header-top));transform:translateX(-50%);width:260px;height:120px;z-index:-1;pointer-events:none;background:linear-gradient(to bottom,#fff 0%,rgba(255,255,255,.92) 35%,rgba(255,255,255,0) 100%);mask-image:linear-gradient(to right,transparent,#000 20%,#000 80%,transparent);-webkit-mask-image:linear-gradient(to right,transparent,#000 20%,#000 80%,transparent)}
@media(max-width:900px){.exhibition-header .contact{gap:16px;font-size:12px}.moodboard-controls{gap:12px;margin-left:18px}}
@media(max-width:650px){.exhibition-header .contact{gap:12px;font-size:11px;line-height:30px}.exhibition-header .contact::before{width:180px;height:105px}.exhibition-header::before{height:110px}}
@media(max-width:400px){.exhibition-header .photographer{font-size:20px}.exhibition-header .contact{left:57%;gap:10px;font-size:10px}}
/* One continuous fade behind the full navigation row. */
.exhibition-header::before{left:0;right:0;width:auto;height:125px;background:linear-gradient(to bottom,#fff 0%,rgba(255,255,255,.97) 32%,rgba(255,255,255,.65) 62%,rgba(255,255,255,0) 100%);mask-image:none;-webkit-mask-image:none}
.exhibition-header::after,.exhibition-header .contact::before{display:none}
@media(max-width:650px){.exhibition-header::before{width:auto;height:175px}}
/* Same white surface for both view-switch labels. */
.exhibition .sphere-toggle,.exhibition.sphere-grid .sphere-toggle{background:#fff;padding:10px 14px}

.sphere-depth{display:none;position:fixed;right:var(--gutter);bottom:80px;z-index:22;background:#fff}
.sphere-ready:not(.sphere-grid) .sphere-depth{display:flex;flex-direction:column}
.exhibition .sphere-depth button{width:44px;height:44px;display:grid;place-items:center}.sphere-depth svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.3}.sphere-depth button:disabled{opacity:.3;cursor:default}
@media print{.sphere-depth{display:none!important}}
/* Compact, solid navigation bar. */
.exhibition-header{background:#fff;padding:10px var(--gutter);min-height:56px;align-items:center}
.exhibition-header::before,.exhibition-header::after,.exhibition-header .contact::before{display:none!important}
.exhibition-header .photographer{font-size:21px;line-height:1.2;letter-spacing:-.025em}
.exhibition-header .contact{top:50%;transform:translate(-50%,-50%);font-size:12px;line-height:36px}
.exhibition .exhibition-header .info-toggle{margin-top:0;min-height:36px;font-size:12px}
.exhibition-header .moodboard-controls{margin-top:0;font-size:12px}
.exhibition .moodboard-controls button{min-height:36px}
@media(max-width:900px){.exhibition-header .photographer{font-size:20px}.exhibition-header .contact{gap:12px}.exhibition-header .moodboard-controls{gap:12px;margin-left:16px}}
@media(max-width:650px){.exhibition-header{padding:10px var(--gutter);min-height:88px;align-items:flex-start}.exhibition-header .photographer{font-size:19px;line-height:32px}.exhibition-header .contact{left:50%;top:49px;transform:translateX(-50%);font-size:12px;line-height:28px}.exhibition-header .moodboard-controls{position:static;flex-direction:row;gap:12px;margin:0 0 0 14px;font-size:11px}.exhibition .exhibition-header .info-toggle{font-size:11px;min-width:32px;min-height:32px}.exhibition .moodboard-controls button{min-height:32px}}
@media(max-width:400px){.exhibition-header{--gutter:12px}.exhibition-header .photographer{font-size:17px}.exhibition-header .moodboard-controls{gap:9px;margin-left:10px;font-size:10px}}
/* Readable exploration hint, matching the gallery controls. */
.sphere-hint{background:#fff;color:var(--ink);padding:12px 16px;min-height:44px;line-height:20px;bottom:18px}
@media(max-width:650px){.sphere-hint{bottom:18px;padding:12px;min-height:44px}}

/* Project information accompanies the enlarged photograph. */
.exhibition .image-dialog[open]{display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,280px);gap:clamp(28px,4vw,64px);align-items:center}
.image-dialog #large-photo{grid-column:1;grid-row:1;min-height:0;min-width:0;height:100%;max-height:100%;object-fit:contain}
.viewer-project{grid-column:2;grid-row:1;align-self:center;max-height:100%;overflow:auto;padding:16px 0;min-width:0;overflow-wrap:anywhere}
.viewer-project h2{font-size:24px;font-weight:400;line-height:1.25;letter-spacing:-.025em;margin:0 0 12px}
.project-date{font-size:13px;color:var(--muted);margin:0 0 32px}.project-description{font-size:15px;line-height:1.75;white-space:pre-line;margin:0}
@media(max-width:800px){.exhibition .image-dialog[open]{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;gap:20px}.image-dialog #large-photo{grid-column:1;grid-row:1}.viewer-project{grid-column:1;grid-row:2;max-height:25svh;padding:0;align-self:start}.viewer-project h2{font-size:21px;margin-bottom:8px}.project-date{margin-bottom:14px;font-size:12px}.project-description{font-size:14px;line-height:1.65}}

/* Show the full original frame in both gallery presentations. */
body.sphere-grid .mosaic .photo-open img{object-fit:contain;background:var(--paper)}

/* Full-width photograph, followed by project details and moodboard action. */
.exhibition .image-dialog[open]{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;gap:24px;padding-top:60px;padding-bottom:24px}
.image-dialog #large-photo{grid-column:1;grid-row:1;width:100%;height:100%;min-height:0;object-fit:contain}
.image-dialog .viewer-project{grid-column:1;grid-row:2;display:grid;grid-template-columns:minmax(140px,1fr) minmax(0,2fr) auto;column-gap:32px;row-gap:6px;align-items:start;width:100%;max-height:24svh;overflow:auto;padding:0}
.viewer-project .project-title{grid-column:1;grid-row:1;font-size:18px;margin:0;line-height:1.4}
.viewer-project .project-date{grid-column:1;grid-row:2;font-size:12px;margin:0}
.viewer-project .project-description{grid-column:2;grid-row:1/span 2;font-size:13px;line-height:1.6;margin:0}
.exhibition .viewer-project .viewer-select{position:static;grid-column:3;grid-row:1/span 2;transform:none;align-self:center;padding:10px 14px;min-height:44px;font-size:12px;white-space:normal;text-align:center}
@media(max-width:650px){.exhibition .image-dialog[open]{padding:56px 20px 76px;gap:18px}.image-dialog .viewer-project{grid-template-columns:minmax(0,1fr) auto;column-gap:16px;max-height:28svh}.viewer-project .project-title{font-size:16px}.viewer-project .project-description{grid-column:1;grid-row:3;font-size:12px;margin-top:6px}.exhibition .viewer-project .viewer-select{grid-column:2;grid-row:1/span 3;font-size:11px;max-width:140px}.exhibition .image-dialog .viewer-arrow{bottom:8px}}
/* Uniform typography across the photograph information bar. */
.exhibition .viewer-project .project-title,.exhibition .viewer-project .project-date,.exhibition .viewer-project .project-description,.exhibition .viewer-project .viewer-select{font-size:13px;font-weight:400;line-height:1.6;letter-spacing:normal}

/* Justified rows use each original aspect ratio without gaps or letterboxing. */
.exhibition .mosaic,body.sphere-grid .mosaic{display:block;padding:0;margin:0;max-width:none;width:100%;gap:0}
.mosaic-row{display:flex;width:100%;margin:0;padding:0;gap:0;align-items:stretch;overflow:hidden}
.exhibition .mosaic .mosaic-row .photograph:nth-child(n){width:auto;height:100%;min-width:0;min-height:0;margin:0;padding:0;transform:none;align-self:stretch;position:relative}
.exhibition .mosaic-row .photo-open{width:100%;height:100%;padding:0;margin:0;display:block}
.exhibition .mosaic .mosaic-row .photo-open img{display:block;width:100%;height:100%;max-height:none;object-fit:contain;margin:0;padding:0;transform:none}
body.sphere-grid .exhibition-footer{display:none}
/* Tighter paragraph rhythm in the Infos text. */
.infos-dialog .biography{line-height:1.55}
.infos-dialog .biography p{margin:0 0 10px}
.infos-dialog .biography h2{margin:28px 0 10px;line-height:1.35}
.infos-dialog .biography h2:first-child{margin-top:0}

.infos-dialog .biography h2{font-weight:600}

.infos-dialog .biography p.site-credit{margin-top:36px}

/* Contact links lead into the site credit. */
.infos-dialog .infos-contact{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:20px;margin:32px 0 0;padding:24px 0;border-top:1px solid #d4d4cc;border-bottom:1px solid #d4d4cc;font-size:15px;line-height:1.5;font-weight:600}
.infos-contact a{text-decoration:underline;text-underline-offset:5px;overflow-wrap:anywhere}
.infos-dialog .biography p.site-credit{margin-top:28px;font-size:12px;line-height:1.6}
@media(max-width:480px){.infos-dialog .infos-contact{grid-template-columns:minmax(0,1fr);gap:14px;font-size:14px}}

.infos-dialog .infos-contact{border-top:0;border-bottom:0}

.exhibition .index-toggle{position:fixed;bottom:18px;left:var(--gutter);z-index:22;background:#fff;padding:10px 14px;min-height:44px;font-size:12px;text-decoration:underline;text-underline-offset:4px}
.exhibition .series-index{width:100vw;height:100svh;max-width:100vw;max-height:100svh;margin:0;background:#fff;padding:76px var(--gutter) 48px;overflow:auto}
.series-index-list{display:flex;flex-direction:column;align-items:flex-start;gap:10px;max-width:1100px;margin:0 auto}
.exhibition .series-index-list button{font-size:clamp(16px,1.7vw,24px);line-height:1.4;min-height:44px;text-align:left;padding:4px 0}
.series-index-list button:hover{text-decoration:underline;text-underline-offset:5px}
@media(max-width:650px){.sphere-hint{left:50%;transform:translateX(-50%);bottom:72px;white-space:nowrap}.exhibition .series-index{padding-top:72px}.series-index-list{gap:12px}.exhibition .series-index-list button{font-size:16px}}

/* Keep the site's navigation and bottom controls around the index. */
.exhibition .series-index{position:fixed;inset:56px 0 76px;width:100%;height:auto;max-height:none;padding:24px var(--gutter);z-index:19}
.index-open .exhibition-header{z-index:30}
.index-open .index-toggle,.index-open .sphere-toggle,.index-open .sphere-depth,.index-open .sphere-hint{z-index:30}
body.index-open::after{content:'';position:fixed;left:0;right:0;bottom:0;height:76px;background:#fff;z-index:19;pointer-events:none}
.index-open .series-index .close-dialog{top:0;right:var(--gutter)}
@media(max-width:650px){.exhibition .series-index{inset:88px 0 76px;padding:20px var(--gutter)}}

body.index-open .sphere-hint{display:none!important}

/* Anchored editorial index with a clear heading and compact series rows. */
.exhibition .series-index{padding:32px var(--gutter) 48px}
.index-heading{font-size:clamp(44px,5vw,72px);font-weight:500;line-height:1;letter-spacing:-.035em;margin:0 0 32px}
.series-index-list{max-width:none;width:100%;margin:0;gap:0;align-items:stretch}
.exhibition .series-index-list button{display:block;width:100%;min-height:48px;padding:12px 0;border-bottom:1px solid #e6e6e2;font-size:clamp(14px,1.2vw,18px);line-height:1.45;font-weight:400;letter-spacing:0;text-align:left;overflow-wrap:anywhere}
.series-index-list button:hover{background:#f5f5f2;text-decoration:none}
.index-open .sphere-depth{display:none!important}
@media(min-width:1100px){.exhibition .series-index[open]{display:grid;grid-template-columns:minmax(180px,22%) minmax(0,1fr);column-gap:48px;align-items:start}.index-heading{position:sticky;top:0;margin:0}.series-index-list{padding-right:44px}}
@media(max-width:650px){.exhibition .series-index{padding:24px var(--gutter) 32px}.index-heading{font-size:44px;margin-bottom:24px}.exhibition .series-index-list button{font-size:14px;padding:12px 0}}

.index-scroll-arrows{display:none;position:fixed;top:50%;transform:translateY(-50%);z-index:25;flex-direction:column;gap:12px}
.index-open .index-scroll-arrows{display:flex}
.exhibition .index-scroll-arrows button{display:grid;place-items:center;width:36px;height:36px;background:#fff}
.exhibition .index-scroll-arrows button[hidden]{display:none}
.index-scroll-arrows svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.3}
@media(max-width:1099px){.series-index-list{padding-left:28px}}

.exhibition .index-scroll-arrows button{opacity:0;visibility:hidden;transform:translateY(3px);pointer-events:none;transition:opacity .28s ease,transform .28s ease,visibility 0s linear .28s}
.exhibition .index-scroll-arrows button.is-visible{opacity:1;visibility:visible;transform:translateY(0);pointer-events:auto;transition:opacity .28s ease,transform .28s ease,visibility 0s}
@media(prefers-reduced-motion:reduce){.exhibition .index-scroll-arrows button{transition:none;transform:none}}
/* Separate the scroll directions along the visible index area. */
.index-scroll-arrows{top:112px;bottom:104px;transform:none;justify-content:space-between;gap:0;pointer-events:none}
.exhibition .index-scroll-arrows .index-scroll-down{margin-top:auto}
@media(max-width:650px){.index-scroll-arrows{top:180px;bottom:104px}}

/* Arrow centers follow the first and last fully visible series titles. */
.index-scroll-arrows{top:0;bottom:auto;height:0}
.exhibition .index-scroll-arrows button{position:fixed;left:inherit;margin:0}
@media(max-width:650px){.index-scroll-arrows{top:0;bottom:auto}}

/* Fixed scroll indicators: only opacity changes during scrolling. */
.exhibition .index-scroll-arrows button,.exhibition .index-scroll-arrows button.is-visible{transform:none;transition:opacity .28s ease,visibility 0s linear .28s}
.exhibition .index-scroll-arrows button.is-visible{transition:opacity .28s ease,visibility 0s}

/* Unified mobile layout: stable header, safe areas and independent scroll panels. */
@media(max-width:650px){
 :root{--mobile-header:calc(104px + env(safe-area-inset-top));--mobile-bottom:calc(68px + env(safe-area-inset-bottom));--gutter:16px}
 .exhibition-header{height:var(--mobile-header);min-height:0;padding:env(safe-area-inset-top) 16px 0;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:52px 52px;align-items:center;gap:0}
 .exhibition-header .identity{display:contents}
 .exhibition-header .photographer{grid-column:1;grid-row:1;font-size:20px;line-height:1.2;white-space:nowrap}
 .exhibition .exhibition-header .info-toggle{grid-column:2;grid-row:1;margin:0;min-width:44px;min-height:44px;font-size:13px}
 .exhibition-header .contact{position:static;grid-column:1;grid-row:2;transform:none;display:flex;gap:16px;font-size:12px;line-height:1.4;justify-self:start}
 .contact a{display:flex;align-items:center;min-height:44px}
 .exhibition-header .moodboard-controls{position:static;grid-column:2;grid-row:2;display:flex;gap:12px;margin:0;font-size:11px;align-items:center}
 .exhibition .moodboard-controls button{min-height:44px;max-width:100px;line-height:1.3;text-align:right}
 .exhibition .index-toggle,.exhibition .sphere-toggle{bottom:calc(12px + env(safe-area-inset-bottom));min-height:44px;padding:10px 12px;font-size:12px}
 .exhibition .index-toggle{left:16px}.exhibition .sphere-toggle{right:16px}
 .sphere-depth{right:16px;bottom:calc(76px + env(safe-area-inset-bottom))}
 .sphere-hint{bottom:calc(76px + env(safe-area-inset-bottom));left:16px;transform:none;font-size:11px;padding:10px;white-space:normal;max-width:calc(100vw - 90px)}
 .exhibition .series-index{inset:var(--mobile-header) 0 var(--mobile-bottom);height:auto;max-height:none;padding:24px 16px;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
 .index-heading{font-size:40px;margin:0 44px 24px 28px}
 .series-index-list{padding-left:28px;padding-right:0}
 .exhibition .series-index-list button{font-size:13px;line-height:1.5;padding:14px 0;min-height:48px;white-space:normal}
 .index-open .series-index .close-dialog{right:8px;top:8px}
 body.index-open::after{height:var(--mobile-bottom)}
 .exhibition .infos-dialog{width:100%;max-width:100%;height:100dvh;max-height:100dvh;margin:0;overscroll-behavior:contain}
 .infos-content{padding:calc(64px + env(safe-area-inset-top)) 24px calc(32px + env(safe-area-inset-bottom))}
 .infos-content h1{font-size:30px;margin-bottom:24px}.infos-dialog .biography{font-size:15px;line-height:1.55}
 .exhibition .close-dialog{top:calc(8px + env(safe-area-inset-top));right:8px;width:44px;height:44px}
 .exhibition .image-dialog[open]{height:100dvh;max-height:100dvh;grid-template-rows:minmax(0,1fr) auto;padding:calc(56px + env(safe-area-inset-top)) 16px calc(68px + env(safe-area-inset-bottom));gap:16px;overflow:hidden}
 .image-dialog #large-photo{min-height:0;max-width:100%;max-height:100%;width:100%;height:100%}
 .image-dialog .viewer-project{grid-template-columns:minmax(0,1fr);grid-template-rows:auto;gap:6px;max-height:29dvh;overflow:auto;overscroll-behavior:contain}
 .viewer-project .project-title,.viewer-project .project-date,.viewer-project .project-description{grid-column:1;grid-row:auto;font-size:12px!important;margin:0}
 .exhibition .viewer-project .viewer-select{grid-column:1;grid-row:auto;justify-self:start;max-width:none;min-height:44px;padding:8px 0;text-align:left;font-size:12px}
 .exhibition .image-dialog .viewer-arrow{top:auto;bottom:calc(8px + env(safe-area-inset-bottom));height:44px;width:44px;transform:none}
 .viewer-prev{left:16px}.viewer-next{right:16px}
 .moodboard-items{gap:20px 12px}.moodboard-items img{height:140px}.exhibition .generate-pdf{width:100%;min-height:48px}
 .sphere-grid .mosaic{padding-top:var(--mobile-header)!important;padding-bottom:var(--mobile-bottom)!important}
}
@media(max-width:360px){.exhibition-header{padding-left:12px;padding-right:12px}.exhibition-header .contact{gap:10px;font-size:11px}.exhibition-header .moodboard-controls{gap:8px;font-size:10px}}

/* Keep one stable touch-scrolling surface in the mobile index. */
@media(max-width:650px){
 body.index-open{overflow:hidden;overscroll-behavior:none}
 .exhibition .series-index[open]{display:block;top:var(--mobile-header);bottom:auto;height:calc(100dvh - var(--mobile-header) - var(--mobile-bottom));max-height:calc(100dvh - var(--mobile-header) - var(--mobile-bottom));overflow-y:auto;overflow-x:hidden;touch-action:pan-y;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;transform:translateZ(0);isolation:isolate}
 .series-index .series-index-list{overflow:visible;min-height:min-content}
 .index-open .sphere-canvas{visibility:hidden;pointer-events:none}
 .index-open .index-scroll-arrows{pointer-events:none}
 .index-open .index-scroll-arrows button.is-visible{pointer-events:auto}
}

/* Snap adjacent cells to physical pixels; absorb subpixel aspect rounding only. */
.exhibition .mosaic .mosaic-row .photo-open img{object-fit:fill;border:0;outline:0;vertical-align:top}
.exhibition .mosaic-row,.exhibition .mosaic-row .photograph,.exhibition .mosaic-row .photo-open{border:0;outline:0;line-height:0}
/* Slideshow footer: project title and moodboard action only. */
.image-dialog .viewer-project .project-date,.image-dialog .viewer-project .project-description{display:none}
.image-dialog .viewer-project{grid-template-columns:minmax(0,1fr) auto;align-items:center}
.viewer-project .project-title{grid-column:1;grid-row:1}
.exhibition .viewer-project .viewer-select{grid-column:2;grid-row:1}
@media(max-width:650px){.image-dialog .viewer-project{grid-template-columns:minmax(0,1fr)}.exhibition .viewer-project .viewer-select{grid-column:1;grid-row:2}}

/* Gallery navigation belongs to the header. */
.exhibition-header{gap:20px}
.exhibition .exhibition-header .index-toggle,.exhibition .exhibition-header .sphere-toggle{position:static;inset:auto;min-height:36px;padding:8px 0;background:transparent;font-size:12px;white-space:nowrap}
.exhibition-header .moodboard-controls{margin-left:0}
body.index-open::after{display:none}
.exhibition .series-index{bottom:0}
@media(min-width:651px){.exhibition-header .contact{left:40%}}
@media(max-width:650px){
 .exhibition-header{grid-template-columns:minmax(0,1fr) auto auto;grid-template-rows:52px 52px;column-gap:18px}
 .exhibition-header .photographer{grid-column:1;grid-row:1}
 .exhibition .exhibition-header .info-toggle{grid-column:3;grid-row:1}
 .exhibition-header .contact{grid-column:1;grid-row:2}
 .exhibition .exhibition-header .index-toggle{grid-column:2;grid-row:2;min-height:44px}
 .exhibition .exhibition-header .sphere-toggle{grid-column:3;grid-row:2;min-height:44px;font-size:11px}
 .exhibition-header .moodboard-controls,.exhibition .photo-select,.exhibition .viewer-project .viewer-select{display:none!important}
 .exhibition .series-index[open]{bottom:0;height:calc(100dvh - var(--mobile-header));max-height:calc(100dvh - var(--mobile-header))}
 .sphere-grid .mosaic{padding-bottom:0!important}
 .image-dialog .viewer-project{grid-template-columns:minmax(0,1fr)}
}
/* Compact mobile header with two balanced, shorter navigation rows. */
@media(max-width:650px){
 :root{--mobile-header:calc(80px + env(safe-area-inset-top));--mobile-bottom:0px}
 .exhibition-header{height:var(--mobile-header);min-height:0;grid-template-columns:minmax(0,1fr) auto auto;grid-template-rows:40px 40px;padding:env(safe-area-inset-top) 14px 0;column-gap:16px;row-gap:0}
 .exhibition-header .photographer{font-size:18px;line-height:1.2}
 .exhibition .exhibition-header .info-toggle{min-height:40px;font-size:12px;grid-column:3;grid-row:1;padding:0}
 .exhibition-header .contact{font-size:11px;gap:14px;line-height:1.2;min-width:0}
 .exhibition-header .contact a{min-height:40px}
 .exhibition .exhibition-header .index-toggle,.exhibition .exhibition-header .sphere-toggle{min-height:40px;font-size:11px;padding:0;line-height:1.2;text-align:right}
 .exhibition .series-index[open]{top:var(--mobile-header);height:calc(100dvh - var(--mobile-header));max-height:calc(100dvh - var(--mobile-header));padding-bottom:28px}
 .sphere-depth{right:14px;bottom:calc(16px + env(safe-area-inset-bottom))}
 .sphere-hint{left:14px;bottom:calc(16px + env(safe-area-inset-bottom));max-width:calc(100vw - 86px)}
 .sphere-grid .mosaic{padding-top:var(--mobile-header)!important}
 .index-open .series-index .close-dialog{top:4px}
}
@media(max-width:360px){.exhibition-header{column-gap:12px;padding-left:12px;padding-right:12px}.exhibition-header .photographer{font-size:17px}.exhibition-header .contact{gap:10px;font-size:10px}.exhibition .exhibition-header .sphere-toggle{font-size:10px}}
@media(max-width:650px) and (max-height:500px){:root{--mobile-header:calc(64px + env(safe-area-inset-top))}.exhibition-header{grid-template-rows:32px 32px}.exhibition-header .contact a,.exhibition .exhibition-header .info-toggle,.exhibition .exhibition-header .index-toggle,.exhibition .exhibition-header .sphere-toggle{min-height:32px}}
/* Close controls: neutral native appearance and no persistent touch focus box. */
.exhibition .close-dialog{appearance:none;-webkit-appearance:none;border:0;box-shadow:none;background:transparent;border-radius:0;-webkit-tap-highlight-color:transparent}
.exhibition .close-dialog:focus:not(:focus-visible){outline:none;box-shadow:none}
@media(hover:none) and (pointer:coarse){.exhibition .close-dialog:focus{outline:none;box-shadow:none}}
@media(max-width:650px){
 .index-open .series-index .close-dialog{position:fixed;top:12px;right:12px;bottom:auto;left:auto;width:44px;height:44px;min-height:44px;padding:0;margin:0;z-index:3;background:#fff}
 .index-open .series-index .close-dialog svg{width:22px;height:22px;display:block;flex:none}
}

.image-dialog #large-photo{touch-action:pan-y pinch-zoom;-webkit-user-drag:none;user-select:none;-webkit-user-select:none}
