body.album {overflow:auto;height:auto;min-height:100vh}
.year-nav {position:fixed;left:32px;top:112px;z-index:3;display:flex;flex-direction:column;background:white;gap:8px;font-size:16px}
.year-nav a {color:black;text-decoration:none;padding:4px 0}
.year-nav a[aria-current],.year-nav a:hover {color:#0074ff;text-decoration:underline;text-underline-offset:4px}
.album main {width:68%;max-width:1100px;margin:120px auto 64px;height:auto;overflow:visible}
.year-section {scroll-margin-top:110px;margin-bottom:40px}
.year-section h2 {font-size:24px;margin:0 0 12px}
.photo-grid {display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}
.photo {display:block;aspect-ratio:1;background:#eee;overflow:hidden}
.photo img {display:block;width:100%;height:100%;object-fit:cover;transition:opacity .15s}
.photo:hover img {opacity:.85}
a:focus-visible,button:focus-visible {outline:3px solid #0074ff;outline-offset:4px}
.viewer {padding:0;border:0;background:#fff;width:100vw;max-width:none;height:100dvh;max-height:none;margin:0;overflow:hidden}
.viewer::backdrop {background:white}
.viewer img {width:100%;height:100%;object-fit:contain;padding:60px 72px}
.viewer button {position:absolute;border:0;background:#fff;color:#000;font:700 28px monospace;cursor:pointer;width:48px;height:48px;z-index:1}
.close {right:16px;top:16px}.previous {left:12px;top:calc(50% - 24px)}.next {right:12px;top:calc(50% - 24px)}
body.viewing {overflow:hidden}
@media(max-width:1000px) {.photo-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.album main{width:72%;margin-left:20%}}
@media(max-width:600px) {.album::before{content:'';position:fixed;top:0;left:0;right:0;height:104px;background:#fff;z-index:2}.year-nav{left:16px;top:65px;flex-direction:row;gap:16px;font-size:13px;max-width:calc(100% - 32px);overflow-x:auto}.album main{width:auto;margin:124px 16px 40px}.photo-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.year-section h2{font-size:20px}.viewer img{padding:64px 12px}.viewer .previous,.viewer .next{top:auto;bottom:12px}}
@media(prefers-reduced-motion:reduce){.photo img{transition:none}}
