.project-gallery a{cursor:zoom-in}
.photo-viewer{position:fixed;inset:0;width:100vw;height:100vh;height:100dvh;max-width:none;max-height:none;margin:0;border:0;padding:24px 76px;background:transparent;color:#fff;overflow:hidden}
.photo-viewer[open]{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px}
.photo-viewer::backdrop{background:rgba(7,24,32,.78);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}
.viewer-heading{width:min(1100px,100%);display:flex;align-items:center;justify-content:space-between;gap:20px;padding-right:28px}
.viewer-heading h2{font:500 clamp(16px,2.5vw,23px)/1.3 Manrope,sans-serif;letter-spacing:0}
.viewer-counter{white-space:nowrap;color:#d3eaf3;font-size:14px;font-variant-numeric:tabular-nums}
.viewer-figure{margin:0;max-width:1100px;min-height:0;display:flex;flex-direction:column;align-items:center;gap:12px}
.viewer-image{display:block;max-width:100%;width:auto;height:auto;max-height:calc(100vh - 160px);max-height:calc(100dvh - 160px);object-fit:contain;box-shadow:0 18px 70px #0006;border-radius:3px;touch-action:pan-y}
.viewer-caption{text-align:center;font-size:14px;line-height:1.4;color:#e0e9ec;max-width:75ch}
.viewer-control{display:grid;place-items:center;width:48px;height:48px;border:1px solid #ffffff50;border-radius:50%;background:#123e50c9;color:white;cursor:pointer;font:400 32px/1 Arial,sans-serif;transition:background .15s}
.viewer-control:hover{background:#245c70}.viewer-control:focus-visible{outline:3px solid #9bd7ef;outline-offset:4px}.viewer-control[hidden]{display:none}
.viewer-close{position:absolute;right:22px;top:18px;font-size:29px}
.viewer-previous,.viewer-next{position:absolute;top:50%;transform:translateY(-50%)}.viewer-previous{left:16px}.viewer-next{right:16px}
@media(max-width:600px){.photo-viewer{padding:70px 12px 90px;gap:12px}.viewer-heading{padding-right:0}.viewer-previous,.viewer-next{top:auto;bottom:22px;transform:none}.viewer-previous{left:calc(50% - 65px)}.viewer-next{right:calc(50% - 65px)}.viewer-image{max-height:calc(100dvh - 260px)}.viewer-close{right:14px;top:12px}.viewer-caption{font-size:12px}}

/* Shared project collage, including future projects. */
.project-gallery{display:grid;grid-template-rows:minmax(0,2fr) minmax(0,1fr);gap:10px;aspect-ratio:1/1}
.project-gallery .project-photo-main{min-height:0}
.project-gallery .project-photo-details{min-height:0;margin-top:0;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:minmax(0,1fr)}
.project-gallery .project-photo-details>a:nth-child(n+3){display:none}
.project-gallery a{min-width:0;min-height:0}
.project-gallery .project-photo-main img,.project-gallery .project-photo-details img{width:100%;height:100%;aspect-ratio:auto;object-fit:cover}
