/* The camera roll: Barkley's full album and its captioned viewer. */

/* Base (carried over from the previous edition) */
@font-face{font-family:Bricolage;src:url('assets/fonts/bricolage-grotesque-800.woff2') format('woff2');font-weight:800;font-display:swap}
@font-face{font-family:Bricolage;src:url('assets/fonts/bricolage-grotesque-600.woff2') format('woff2');font-weight:600;font-display:swap}
@font-face{font-family:Manrope;src:url('assets/fonts/manrope-400.woff2') format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:Manrope;src:url('assets/fonts/manrope-600.woff2') format('woff2');font-weight:600;font-display:swap}
:root{--sky:#ade0e4;--forest:#173d31;--ink:#14392d;--tennis:#e9f49c;--cream:#f8f8e8;--poppy:#ef852e;--ease:cubic-bezier(.22,1,.36,1);font-family:Manrope,sans-serif;color:var(--ink);background:var(--forest);font-synthesis:none;scroll-behavior:smooth}
*{box-sizing:border-box}
body{margin:0}
button,a,summary{-webkit-tap-highlight-color:transparent;touch-action:manipulation}
a{color:inherit}
button{font:inherit;color:inherit;border:0;cursor:pointer;background:none}
svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.svg-library{position:absolute;width:0;height:0;overflow:hidden}
button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid var(--poppy);outline-offset:5px}
[hidden]{display:none!important}
.avatar{width:44px;height:44px;object-fit:cover;border-radius:50%;flex-shrink:0}
body:has(dialog[open]){overflow:hidden}
.album-dialog{width:min(1050px,calc(100vw - 32px));max-height:calc(100svh - 32px);padding:0;border:0;border-radius:12px;background:var(--cream);color:var(--ink);overflow:auto;overscroll-behavior:contain}
.album-dialog::backdrop{background:#0e2b24d9;backdrop-filter:blur(6px)}
.album-dialog-top{display:flex;align-items:center;gap:11px;padding:16px 21px;border-bottom:1px solid #14392d1a}
.album-dialog-top .avatar{width:36px;height:36px}
.album-dialog-top h2{font-size:14px;margin:0;font-weight:600}
.album-dialog-top p{font-size:10px;margin:3px 0 0}
.close-album{margin-left:auto;width:42px;height:42px;display:grid;place-items:center;font-size:28px;line-height:1;border-radius:50%}
.close-album:hover{background:#e3eacd}
.album-dialog-body{display:grid;grid-template-columns:1.6fr 1fr}
.album-media{height:min(68svh,640px);min-height:240px;display:flex;align-items:center;justify-content:center;background:#d4dfd2;overflow:hidden}
.album-media img,.album-media video{display:block;width:100%;height:100%;object-fit:contain}
.album-side{display:flex;flex-direction:column;padding:26px 23px 17px}
.caption-block{font-size:14px;line-height:1.7}
.caption-block strong{font-weight:600}
.caption-block p{margin:9px 0 28px}
.album-navigation{margin-top:auto;display:flex;align-items:center;justify-content:space-between;gap:15px;border-top:1px solid #14392d25;padding-top:16px}
.album-navigation button{width:42px;height:42px;border:1px solid #14392d50;border-radius:50%;font-size:20px}
.album-navigation button:hover{background:var(--tennis)}
.album-navigation span{font-size:11px}
.album-thumbs{display:grid;grid-template-columns:repeat(5,1fr);gap:5px;margin-top:20px;padding:3px}
.album-thumbs button{aspect-ratio:1;padding:0;border:2px solid transparent;border-radius:3px;overflow:hidden;position:relative;min-width:0}
.album-thumbs img{width:100%;height:100%;object-fit:cover;display:block}
.album-thumbs button[aria-current=true]{border-color:var(--ink)}
.video-marker{position:absolute;bottom:0;right:0;padding:1px 3px;background:var(--ink);color:var(--cream);font-size:9px}
.album-error{padding:30px;line-height:1.7}
.album-dialog[open]{animation:album-enter .32s var(--ease)}
@keyframes album-enter{from{opacity:0;translate:0 16px}to{opacity:1;translate:0 0}}
.album-page{background:var(--cream);color:var(--ink)}
.album-page-inner{max-width:1020px;margin:auto;padding:22px 28px 60px}
.back-link{display:inline-flex;align-items:center;min-height:44px;font-size:12px;text-underline-offset:4px}
.album-page-heading{display:flex;gap:24px;align-items:center;margin:40px 0 18px}
.album-page-heading .avatar{width:85px;height:85px;outline:3px solid var(--poppy);outline-offset:5px}
.album-page-heading h1{font-family:Bricolage,sans-serif;font-size:50px;font-weight:600;letter-spacing:-.05em;margin:0 0 7px;line-height:1}
.album-page-heading p,.album-page-bio{font-size:12px;margin:0}
.album-page-bio{margin-bottom:35px}
.album-page-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:30px 16px;margin-bottom:35px}
.album-page-post{min-width:0;scroll-margin-top:20px}
.album-page-post>a{display:block;position:relative;aspect-ratio:1;overflow:hidden;border-radius:4px}
.album-page-post img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .6s var(--ease)}
.album-page-post>a:hover img{transform:scale(1.035)}
.album-page-post p{font-size:12px;line-height:1.6;margin:12px 2px 0}
.album-page-post strong{margin-right:5px}
.video-tag{position:absolute;right:8px;bottom:8px;padding:4px 7px;background:var(--ink);color:var(--cream);border-radius:3px;font-size:10px}
@media(max-width:600px){.album-dialog{width:calc(100vw - 18px);max-height:calc(100svh - 18px);border-radius:10px}.album-dialog-top{padding:10px 15px}.album-dialog-body{display:block}.album-media{height:min(48svh,430px);min-height:170px}.album-side{padding:17px 18px 16px}.caption-block{font-size:12px;line-height:1.6}.caption-block p{display:inline;margin:0 0 0 5px}.caption-block strong{font-size:12px}.album-navigation{margin-top:18px;padding-top:12px}.album-navigation button{height:38px;width:38px;font-size:18px}.album-navigation span{font-size:10px}.album-thumbs{display:flex;overflow-x:auto;gap:5px;padding:4px 2px;margin-top:13px;scrollbar-width:thin}.album-thumbs button{flex:0 0 43px;height:43px}.album-page-inner{padding:15px 18px 35px}.album-page-heading{margin-top:28px;gap:23px}.album-page-heading .avatar{height:64px;width:64px}.album-page-heading h1{font-size:37px}.album-page-heading p,.album-page-bio{font-size:10px}.album-page-grid{grid-template-columns:1fr 1fr;gap:24px 12px}.album-page-post p{font-size:11px;line-height:1.6;margin-top:9px}}
@media(prefers-reduced-motion:reduce){:root{scroll-behavior:auto}*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Restyle to match the morning walk */
:root{--paper:#fffaf0;--paper-edge:#efe4cb;--ink:#153a2f;--ink-soft:#3c5a4e;background:#fffaf0}
body.album-page{background:var(--paper);color:var(--ink);margin:0}
.album-banner{height:clamp(170px,30vh,300px);overflow:hidden;position:relative}
.album-banner img{width:100%;height:100%;object-fit:cover;object-position:50% 40%}
.album-banner::after{content:"";position:absolute;inset:auto 0 0;height:40%;background:linear-gradient(transparent,var(--paper))}
.album-page-inner{max-width:1080px;padding:0 clamp(16px,4vw,40px) 64px;margin:-88px auto 0;position:relative}
.back-link{position:absolute;top:calc(104px - clamp(170px,30vh,300px));left:clamp(16px,4vw,40px);min-height:40px;padding:0 16px;border-radius:999px;background:rgba(255,250,240,.9);font-size:.95rem;font-weight:600;text-decoration:none;box-shadow:0 8px 22px -14px rgba(21,58,47,.7)}
.back-link-end{position:static;margin-top:8px;box-shadow:none;background:none;padding:0;text-decoration:underline;text-underline-offset:4px}
.album-page-heading{margin:0 0 12px;gap:20px}
.album-page-heading .avatar{width:96px;height:96px;outline:none;box-shadow:0 0 0 4px var(--paper),0 0 0 7px #e9731f}
.album-page-heading h1{font:800 clamp(2.6rem,6vw,4.2rem)/.9 Bricolage,sans-serif;letter-spacing:-.045em;margin:0 0 8px}
.album-page-heading p{font-size:1rem;color:var(--ink-soft)}
.album-page-bio{font-size:1.02rem;margin:0 0 36px}
.album-page-grid{gap:34px 22px}
.album-page-post>a{padding:8px 8px 0;background:#fff;border-radius:4px;box-shadow:0 1px 2px rgba(60,40,10,.22),0 16px 26px -18px rgba(60,40,10,.6);aspect-ratio:auto;overflow:visible}
.album-page-post>a img{aspect-ratio:1;height:auto;border-radius:2px}
.album-page-post>a:hover img{transform:none}
.album-page-post>a{transition:translate .4s cubic-bezier(.22,1,.36,1)}
.album-page-post>a:hover{translate:0 -4px}
.album-page-post p{font-size:.95rem;line-height:1.45;margin:12px 4px 0}
.video-tag{right:16px;bottom:10px;font-size:.75rem;padding:5px 9px;border-radius:999px}
@media(max-width:600px){
  .album-page-inner{margin-top:-70px}
  .back-link{top:calc(86px - clamp(170px,30vh,300px))}
  .album-page-heading .avatar{width:72px;height:72px}
  .album-page-heading h1{font-size:2.6rem}
  .album-page-heading p,.album-page-bio{font-size:.95rem}
  .album-page-grid{gap:26px 14px}
  .album-page-post p{font-size:.85rem}
}
html{scroll-behavior:auto}
.album-dialog-top h2{font-size:1rem}
.album-dialog-top p{font-size:.8rem}
.caption-block,.caption-block strong{font-size:1rem;line-height:1.5}
.album-navigation span{font-size:.85rem}
.album-dialog::backdrop{background:rgba(21,58,47,.82)}

@media (prefers-reduced-motion:no-preference){@view-transition{navigation:auto}}
::view-transition-group(photo){animation-duration:.55s;animation-timing-function:cubic-bezier(.22,1,.36,1)}
