*{box-sizing:border-box}
html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#929496;color:#161d23;font-family:Arial,Helvetica,sans-serif;-webkit-font-smoothing:antialiased}
body{height:100dvh;overscroll-behavior:none;--gutter:clamp(18px,3.4vw,48px)}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;border:0;background:none;cursor:pointer;-webkit-tap-highlight-color:transparent}
a:focus-visible,button:focus-visible,canvas:focus-visible{outline:1px solid currentColor;outline-offset:4px}
button:active{background:#19232d17}
button:disabled{opacity:.45;cursor:default}
[hidden]{display:none!important}

#wall{position:fixed;inset:0;display:block;width:100%;height:100%;height:100dvh;touch-action:none;cursor:grab;visibility:hidden}
body.ready #wall{visibility:visible}
#wall.dragging{cursor:grabbing}
header,footer{position:fixed;left:var(--gutter);right:var(--gutter);pointer-events:none;isolation:isolate}
header a,header button,footer a,footer button{pointer-events:auto}
header{top:calc(13px + env(safe-area-inset-top));display:flex;justify-content:space-between;gap:14px}
header::before,footer::before{content:"";position:absolute;z-index:-1;left:calc(-1 * var(--gutter));right:calc(-1 * var(--gutter));pointer-events:none}
header::before{top:calc(-13px - env(safe-area-inset-top));height:calc(108px + env(safe-area-inset-top));background:linear-gradient(#aeb0b2bf,transparent)}
.back-group{display:flex;flex-direction:column;align-items:flex-start}
.back{display:grid;align-items:center;min-height:44px;font-size:clamp(29px,4vw,38px);letter-spacing:-.06em}
#leave{min-height:44px;padding:0 10px 0 0;font-size:13px}
.title{text-align:right;padding-top:4px}
.title small,.collection>span,.intro,.photo-heading span{font:10px/1.3 ui-monospace,SFMono-Regular,monospace;letter-spacing:.07em;color:#2d373f}
.title h1{font-weight:400;font-size:clamp(22px,3.5vw,30px);letter-spacing:-.055em;line-height:1.02;margin:5px 0 0}
.browse-controls{display:flex;justify-content:flex-end;align-items:center;margin:1px -8px 0 0}
.browse-controls button{min-width:44px;min-height:44px;padding:0 8px;font-size:19px}
#drift{min-width:69px;font:11px ui-monospace,SFMono-Regular,monospace}
#drift[aria-pressed="true"]{font-weight:600}

footer{bottom:calc(12px + env(safe-area-inset-bottom));display:grid;gap:5px}
footer::before{bottom:calc(-12px - env(safe-area-inset-bottom));height:calc(140px + env(safe-area-inset-bottom));background:linear-gradient(transparent,#a1a4a8c9 67%,#b4b7bad9)}
.foot-row{display:flex;justify-content:space-between;align-items:flex-end;gap:10px}
.collection{display:grid;align-content:end;justify-items:start;gap:4px;min-width:0;padding-bottom:6px}
.collection strong{font-size:clamp(16px,2.25vw,21px);font-weight:400;letter-spacing:-.035em;line-height:1.13}
#source{display:flex;align-items:center;gap:7px;min-height:44px;margin:-4px 0 -9px;padding:0 10px 0 0;font-size:12px;text-decoration:underline;text-underline-offset:4px}
.tools{display:flex;align-items:center;flex:none;min-height:44px;border-bottom:1px solid #26303855}
.tools button{display:grid;place-items:center;min-width:34px;height:44px;padding:0;font-size:21px}
.tools button:first-child{width:40px}
.tools output{min-width:34px;text-align:center;font:10px ui-monospace,SFMono-Regular,monospace}
.site-controls{align-items:center}
.sound-group{display:flex;align-items:center;gap:9px}
#sound{width:44px;height:44px;padding:0}
.sound-bars{position:relative;display:grid;grid-template-columns:repeat(5,2px);place-content:center;gap:2px;width:100%;height:100%;border:1px solid;border-radius:50%}
#sound .sound-bars i{height:9px;transform:scaleY(.55)}
#sound[data-playing="true"] .sound-bars i{height:13px}
#sound-credit{font:9px ui-monospace,SFMono-Regular,monospace}
.warp-next{display:grid;place-items:center;min-width:44px;min-height:44px;font-size:22px;letter-spacing:-.05em}
.intro{position:fixed;left:50%;bottom:calc(117px + env(safe-area-inset-bottom));transform:translateX(-50%);margin:0;white-space:nowrap;pointer-events:none;transition:opacity .4s}
.intro span{margin:0 3px}
body.exploring .intro{opacity:0}

dialog{width:min(92vw,680px);max-height:calc(100dvh - 36px - env(safe-area-inset-top) - env(safe-area-inset-bottom));padding:0 16px 15px;border:1px solid #4c5056;border-radius:2px;background:#17191c;color:#f3f1ec}
dialog::backdrop{background:#101416bb}
.photo-heading{display:flex;justify-content:space-between;align-items:center}
.photo-heading span{color:#c9cbd0}
.photo-heading button{min-width:44px;min-height:44px;font-size:25px;margin-right:-9px}
dialog figure{margin:0;text-align:left}
dialog img{display:block;width:100%;height:auto;max-height:calc(100dvh - 138px - env(safe-area-inset-top) - env(safe-area-inset-bottom));object-fit:contain}
figcaption{padding-top:10px;font-size:13px}
#load-error{position:fixed;top:45%;width:100%;text-align:center;font-size:14px}
@media(max-width:600px){
 .tools button,.tools button:first-child{width:44px}
 .tools output{min-width:28px}
}
@media(max-height:480px){
 .intro{display:none}
 header::before,footer::before{opacity:.72}
 .site-controls{margin-top:-4px}
}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
@media(max-width:600px) and (min-height:481px){
 .intro{top:64%;bottom:auto}
 header::before{height:calc(119px + env(safe-area-inset-top));background:linear-gradient(#aeb0b2eb 18%,#aeb0b2b8 61%,transparent)}
 footer::before{height:calc(147px + env(safe-area-inset-bottom));background:linear-gradient(transparent,#a5a8acdf 52%,#b4b7baee)}
}
