.photo-atlas{position:relative;min-height:300px;overflow:clip;touch-action:none;cursor:grab;background:var(--ink);isolation:isolate}.photo-atlas.is-dragging{cursor:grabbing}.photo-atlas>canvas{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.photo-atlas:focus-visible{outline-offset:-6px}
.atlas-tools{position:absolute;bottom:10px;left:4vw;right:4vw;display:flex;align-items:center;justify-content:space-between;gap:20px;z-index:2;pointer-events:none;font-size:11px;color:var(--muted)}.atlas-tools>div{display:flex;align-items:center;gap:10px;pointer-events:auto}.atlas-tools button{min-width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:0 9px;background:var(--header);border-radius:50%}.atlas-tools button[data-atlas-reset]{border-radius:12px;background:var(--ink);color:var(--paper);font-size:11px}.atlas-tools svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.5}.atlas-caption{font-variant-numeric:tabular-nums;margin:0;background:var(--header);padding:6px 10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:42%}
.atlas-instruction{position:absolute;bottom:72px;left:4vw;color:var(--muted);font-size:11px;margin:0;pointer-events:none;background:var(--header);padding:5px 9px}
.photo-page.atlas-mode header{padding-block:18px;border-bottom:0}.photo-page.atlas-mode .intro{padding:15px 4vw 20px;align-items:center}.photo-page.atlas-mode .intro h1{font-size:clamp(38px,4.5vw,64px);line-height:1.02;letter-spacing:-.035em}.photo-page.atlas-mode .intro h1>span:not(.reveal-word){display:inline;margin-left:.2em}.photo-page.atlas-mode .intro p{font-size:12px;max-width:290px}.photo-page.atlas-mode .tools{position:relative;padding-block:8px;border-top:0;background:var(--ink)}.photo-page.atlas-mode footer{display:none}.photo-page .modes button{min-height:44px;white-space:nowrap}.photo-page .modes button:disabled{opacity:.4}.photo-page .tools select{min-height:44px}.photo-page .tools label input{min-height:44px}.photo-page .intro{transition:padding .5s var(--ease)}.photo-page.atlas-mode{overflow:hidden}
@media(max-width:850px){.photo-page.atlas-mode .intro p{display:none}.photo-page.atlas-mode .tools{gap:6px 20px}.photo-page.atlas-mode .count{width:auto;margin-left:auto}.photo-page .modes{gap:16px}.photo-page.atlas-mode .intro{padding-top:15px;padding-bottom:15px}.photo-page.atlas-mode .tools select{font-size:11px}.atlas-caption{max-width:60%;font-size:10px}.atlas-instruction{font-size:10px;bottom:67px}.atlas-tools>div{gap:4px}.atlas-tools button[data-atlas-reset]{display:none}}
@media(max-width:480px){.photo-page.atlas-mode header{padding:14px 5vw 8px;gap:8px 16px}.photo-page.atlas-mode .back{min-height:30px}.photo-page.atlas-mode .intro{padding:12px 5vw}.photo-page.atlas-mode .intro h1{font-size:35px}.photo-page.atlas-mode .tools{padding:4px 5vw 10px}.photo-page.atlas-mode .modes{width:100%;justify-content:space-between;font-size:11px;gap:10px}.photo-page.atlas-mode .tools label{display:none}.photo-page.atlas-mode .tools select{padding-block:0;min-height:30px}.photo-page.atlas-mode .count{font-size:10px}.atlas-tools{left:5vw;right:5vw;gap:8px;bottom:3px}.atlas-caption{max-width:62%}.atlas-tools button{min-width:40px;padding:0}.atlas-instruction{left:5vw;bottom:57px}.photo-atlas{min-height:270px}}
@media(prefers-reduced-motion:reduce){.photo-page .intro{transition:none}}

@media(max-width:480px){.atlas-caption{max-width:45%}.atlas-tools>div{gap:0}}

.photo-page.still .photo img,.photo-page.still .photo a:after{transition:none}.photo-page.still .photo a:hover img{transform:none}

.photo-page.still .photo{animation:none!important}

.photo-page .intro h1 .reveal-word{display:inline-block}
/* Let the gallery follow the live header and toolbar height during rotation,
   font swaps, and layout transitions. */
.photo-page.atlas-mode {height:100dvh;display:flex;flex-direction:column}
.photo-page.atlas-mode > header {flex:none}
.photo-page.atlas-mode > main {flex:1;min-height:0;display:flex;flex-direction:column}
.photo-page.atlas-mode main > :is(.intro,.tools) {flex:none}
.photo-page.atlas-mode .photo-atlas {flex:1;min-height:0}
@media (orientation:landscape) and (max-height:520px) {
  .photo-page.atlas-mode > header {padding-block:4px}
  .photo-page.atlas-mode .intro {padding-block:2px}
  .photo-page.atlas-mode .intro h1 {font-size:28px}
  .photo-page.atlas-mode .intro p {display:none}
  .photo-page.atlas-mode .tools {gap:2px 14px;padding-block:0}
  .photo-page.atlas-mode .atlas-instruction {bottom:48px}
  .photo-page.atlas-mode .atlas-tools {bottom:2px}
}
@media (orientation:landscape) and (max-height:520px) {
  body.photo-page.motion-photo.atlas-mode > header {
    display:flex;align-items:center;justify-content:space-between;gap:12px;
    padding:2px 4vw;min-height:44px;
  }
  body.photo-page.motion-photo.atlas-mode main > .intro {padding:2px 4vw;min-height:0}
  body.photo-page.motion-photo.atlas-mode .intro h1 {font-size:28px;line-height:1.05;margin:0}
  body.photo-page.motion-photo.atlas-mode main > .tools {padding:0 4vw;gap:2px 12px}
}
