:root { color-scheme: light; background:#f0ebe6; color:#4f4742; }
body { overflow:hidden; background:#f0ebe6; }
.project-header { z-index:10; }
button { font:inherit; color:inherit; cursor:pointer; }
button:focus-visible { outline:2px solid #4f4742; outline-offset:5px; }
#gallery { position:relative; height:calc(100svh - var(--header-height)); overflow:hidden; touch-action:none; user-select:none; -webkit-user-select:none; cursor:grab; }
#gallery.dragging { cursor:grabbing; }
.gallery-canvas { position:absolute; width:5100px; height:2500px; transform-origin:0 0; will-change:transform; }
.gallery-photo { position:absolute; border:0; padding:0; background:none; text-align:left; cursor:inherit; }
.gallery-photo img { width:100%; object-fit:cover; pointer-events:none; user-select:none; }
.gallery-photo > span { display:flex; justify-content:space-between; padding-top:10px; font-size:14px; opacity:.7; }
.gallery-photo:hover > span,.gallery-photo:focus-visible > span { opacity:1; }
.gallery-intro { position:fixed; bottom:26px; left:24px; max-width:320px; pointer-events:none; padding:14px 20px 14px 0; background:transparent; color:#fff; mix-blend-mode:difference; }
.gallery-intro h1 { font-size:42px; line-height:1; font-weight:500; letter-spacing:-1.6px; margin-bottom:12px; }
.gallery-intro p,.gallery-tools p { font-size:14px; line-height:1.35; }
.gallery-tools { position:fixed; bottom:32px; right:24px; text-align:right; background:transparent; color:#fff; mix-blend-mode:difference; padding:10px; }
.gallery-tools > div { display:flex; justify-content:flex-end; gap:6px; margin-top:12px; }
.gallery-tools button { background:transparent; border:1px solid currentColor; border-radius:30px; min-width:42px; height:42px; padding:0 14px; }
.gallery-tools button:hover { background:#fff; color:#000; }
.gallery-dialog { border:0; padding:55px 70px 45px; width:100vw; max-width:none; height:100svh; max-height:none; background:#f0ebe6; color:#4f4742; }
.gallery-dialog::backdrop { background:#4f4742cc; }
.gallery-dialog[open] { display:grid; place-items:center; }
.gallery-dialog figure { width:100%; max-width:1250px; }
.gallery-dialog figure img { height:calc(100svh - 170px); width:100%; object-fit:contain; }
.gallery-dialog figcaption { display:flex; justify-content:space-between; gap:20px; font-size:15px; margin-top:20px; }
.gallery-dialog figcaption a { text-decoration:underline; text-underline-offset:4px; white-space:nowrap; }
.gallery-dialog button { position:absolute; border:0; background:transparent; font-size:28px; width:48px; height:48px; }
.dialog-close { top:12px; right:16px; }
.dialog-prev { top:45%; left:12px; }
.dialog-next { top:45%; right:12px; }
.photo-count { position:absolute; bottom:16px; font-size:12px; }
@media(max-width:650px) {
 .gallery-intro { left:16px; bottom:88px; padding:10px; }
 .gallery-intro h1 { font-size:32px; margin-bottom:8px; }
 .gallery-intro p { font-size:12px; }
 .gallery-tools { bottom:12px; left:16px; right:16px; display:flex; align-items:center; justify-content:space-between; gap:8px; }
 .gallery-tools p { font-size:11px; max-width:140px; text-align:left; }
 .gallery-tools > div { margin:0; }
 .gallery-tools button { min-width:36px; height:36px; padding:0 10px; font-size:12px; }
 .gallery-dialog { padding:64px 16px 90px; }
 .gallery-dialog figure img { height:calc(100svh - 240px); }
 .gallery-dialog figcaption { font-size:13px; }
 .dialog-prev,.dialog-next { top:auto; bottom:25px; }
}

.gallery-tools button:focus-visible { outline-color:currentColor; }
