html.hf-gallery-open {overflow:hidden;}
.hf-album-library {width:min(1150px,calc(100% - 72px));margin:20px auto 42px;padding:28px clamp(18px,3vw,40px);border:1px solid #d9c8aa;border-radius:14px 8px 13px 7px;background:#fbf5e9 url('/assets/cotton-paper.svg');box-shadow:3px 4px 0 #dfccad;color:#543b2c;}
.hf-album-library h1 {font:400 clamp(36px,5vw,60px)/1.1 Gaegu,cursive;margin:4px 0 12px;}
.hf-album-library>p {font-size:16px;max-width:58ch;}
.hf-album-eyebrow {color:#48716d;font:24px Gaegu,cursive;}
.hf-album-filters {display:flex;gap:10px;flex-wrap:wrap;margin:22px 0 28px;}
.hf-album-filters button {min-height:44px;border:1px dashed #b5bca1;border-radius:4px 9px 3px 7px;background:#ebeee0;padding:8px 14px;font:inherit;}
.hf-album-filters button[aria-pressed=true] {background:#d3e1d5;border:1px solid #6f8b75;}
.hf-album-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px 22px;}
.hf-album-card {display:flex;flex-direction:column;min-width:0;gap:8px;text-decoration:none;color:inherit;background:#fffdf7;padding:9px 9px 14px;box-shadow:0 4px 10px #61442e1c;}
.hf-album-card:nth-child(3n+1){transform:rotate(-1deg);}
.hf-album-card:nth-child(3n+2){transform:rotate(1deg);}
.hf-album-card img {width:100%;aspect-ratio:4/3;object-fit:cover;}
.hf-album-card strong {font:400 25px/1.1 Gaegu,cursive;}
.hf-album-card span {font-size:13px;color:#6e6251;}
.hf-album-card:hover strong {text-decoration:underline;text-underline-offset:4px;}
.hf-album-library .hf-album-pages-link {display:inline-block;margin-top:20px;color:#366b6b;font-size:14px;}
.hf-guide-album {display:flex!important;align-items:center;gap:18px;margin:25px 0;padding:13px;background:#fefbf3;border:1px dashed #c5b395;box-shadow:2px 4px 9px #5138270b;text-decoration:none!important;}
.hf-guide-album img {width:110px!important;height:85px!important;object-fit:cover;border:5px solid white;flex:none;}
.hf-guide-album span {font:400 26px/1.2 Gaegu,cursive;color:#366b6b;}
.hf-guide-album small {display:block;font:14px/1.5 Playpen,system-ui;color:#6a5c4b;margin-top:5px;}
@media(max-width:700px){.hf-album-library {width:calc(100% - 36px);padding:22px 16px;margin-top:10px;}.hf-album-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 14px;}.hf-album-card strong{font-size:23px;}.hf-album-viewer {padding:14px;width:calc(100vw - 16px);}.hf-album-viewer .hf-album-image {height:48dvh;}.hf-album-viewer .hf-album-caption {font-size:22px;}.hf-guide-album img {width:82px!important;height:75px!important;}.hf-guide-album span{font-size:23px;}}
@media(max-width:360px){.hf-album-grid {grid-template-columns:1fr;}}

.hf-album-card p {font-size:14px;line-height:1.7;margin:0 0 5px;color:#6a5b4b;}
.hf-album-card span {margin-top:auto;}
.hf-album-viewer .hf-album-description {font-size:15px;line-height:1.65;max-width:75ch;margin:0 0 14px;}

.hf-album-card[data-album="venice"] img {object-position:center top;}

/* Original generated scrapbook artwork supplies the cover, pages, binding and tape. */
.hf-album-viewer {box-sizing:border-box;width:min(1320px,98vw,calc(94dvh * 1.5));max-width:none;max-height:96dvh;margin:auto;padding:0;border:0;border-radius:0;overflow:auto;overscroll-behavior:contain;background:transparent;color:#543b2c;font:16px/1.6 Playpen,'Hibiki Navigation',system-ui,sans-serif;}
.hf-album-viewer::backdrop {background:#30271fd9;backdrop-filter:blur(5px);}
.hf-album-viewer[open] {animation:hf-book-open 650ms cubic-bezier(.2,.7,.2,1) both;}
.hf-album-book {position:relative;aspect-ratio:3/2;background:url('/scrapbook/art/book-balanced-edges.png.webp') center/100% 100% no-repeat;display:grid;grid-template-columns:1fr 1fr;gap:7%;padding:9% 7% 7%;box-sizing:border-box;}
.hf-album-left,.hf-album-right {min-width:0;display:flex;flex-direction:column;justify-content:center;}
.hf-album-viewer h2 {font:400 clamp(27px,3.1vw,43px)/1.03 Gaegu,'Hibiki Navigation Hand',cursive;margin:6px 0 14px;}
.hf-album-viewer .hf-album-category {font-size:14px;margin:0;color:#536e62;}
.hf-album-viewer .hf-album-description {font-size:clamp(14px,1.35vw,17px);line-height:1.7;margin:0 0 16px;}
.hf-album-viewer button {min-width:44px;min-height:44px;border:0;background:transparent;color:inherit;cursor:pointer;font:32px/1 system-ui;}
.hf-album-viewer .hf-album-close {position:absolute;right:5%;top:9%;z-index:2;font-size:30px;}
.hf-album-viewer .hf-album-figure {margin:0;touch-action:pan-y;}
.hf-album-print {position:relative;padding:9px;background:#fffaf2;box-shadow:0 4px 9px #573b2b28;transform:rotate(1.5deg);}
.hf-album-print::before {content:"";position:absolute;z-index:1;pointer-events:none;left:35%;top:-16px;width:30%;height:38px;background:url('/scrapbook/art/washi.webp') center/contain no-repeat;}
.hf-album-viewer .hf-album-image {display:block;width:100%;height:clamp(190px,33vw,440px);max-height:49dvh;object-fit:contain;background:transparent;border:0;}
.hf-album-viewer .hf-album-caption {font:400 clamp(20px,2.1vw,28px)/1.15 Gaegu,'Hibiki Navigation Hand',cursive;text-align:center;padding:18px 3px 3px;}
.hf-album-controls {display:flex;align-items:center;justify-content:center;gap:15px;margin-top:5px;}
.hf-album-viewer button:disabled {opacity:.25;cursor:default;}
.hf-album-count {min-width:65px;text-align:center;font-size:14px;}
.hf-album-hint {text-align:center;font-size:12px;margin:0;color:#6a5c4b;}
.hf-album-thumbnails {display:flex;flex-wrap:wrap;gap:12px;margin:5px 0 18px;}
.hf-album-viewer .hf-album-thumbnails button {padding:4px;background:#fffaf2;box-shadow:0 2px 5px #573b2b25;transform:rotate(-3deg);width:clamp(60px,7vw,92px);height:clamp(60px,7vw,92px);opacity:.65;}
.hf-album-thumbnails button:nth-child(2n) {transform:rotate(3deg);}
.hf-album-viewer .hf-album-thumbnails button[aria-current=true] {opacity:1;outline:2px solid #638983;outline-offset:3px;}
.hf-album-thumbnails img {width:100%;height:100%;max-height:none;object-fit:cover;}
.hf-album-footer {display:flex;flex-direction:column;align-items:flex-start;gap:6px;}
.hf-album-viewer a {font-size:14px;color:#366b6b;text-underline-offset:4px;}
.hf-album-footer p {font:22px/1.2 Gaegu,cursive;color:#75634f;margin:9px 0 0;}
.hf-album-viewer [hidden],.hf-album-card[hidden] {display:none!important;}
.hf-album-viewer :focus-visible,.hf-album-library :focus-visible {outline:3px solid #4b7776;outline-offset:4px;}
@keyframes hf-book-open {from{opacity:0;transform:translateY(22px) scale(.94) rotate(-1deg);}to{opacity:1;transform:none;}}
@media(max-width:700px), (max-width:1000px) and (max-aspect-ratio:1/1) {
 .hf-album-viewer {width:min(98vw,560px);max-height:96dvh;padding:0;}
 .hf-album-book {aspect-ratio:auto;min-height:90dvh;grid-template-columns:1fr;gap:12px;padding:24% 10% 28%;background-image:url('/scrapbook/art/book-continuous-cutout.png.webp');}
 .hf-album-viewer .hf-album-close {position:sticky;grid-column:1;grid-row:1;justify-self:end;align-self:start;top:12px;margin:-10px -12px 0 0;z-index:3;}
 .hf-album-viewer h2 {font-size:31px;padding-right:20px;margin-bottom:10px;}
 .hf-album-viewer .hf-album-description {font-size:14px;margin-bottom:12px;}
 .hf-album-left {display:contents;}
 .hf-album-heading,.hf-album-description,.hf-album-right,.hf-album-thumbnails,.hf-album-footer {grid-column:1;}
 .hf-album-heading {grid-row:1;}
 .hf-album-description {grid-row:2;}
 .hf-album-right {grid-row:3;}
 .hf-album-thumbnails {grid-row:4;margin:0;justify-content:center;}
 .hf-album-footer {grid-row:5;}
 .hf-album-viewer .hf-album-image {height:36dvh;max-height:none;}
 .hf-album-viewer .hf-album-thumbnails button {width:60px;height:60px;}
 .hf-album-viewer .hf-album-caption {font-size:24px;}
 .hf-album-hint {font-size:12px;}
}
@media(prefers-reduced-motion:reduce) {.hf-album-viewer[open] {animation:none;}}

.hf-album-left {box-sizing:border-box;padding-inline:7% 2%;}

.hf-album-viewer .hf-album-video {display:block;width:100%;height:clamp(190px,33vw,440px);max-height:49dvh;object-fit:contain;background:#201b16;}
.hf-album-viewer .hf-album-thumbnails button {position:relative;}
.hf-album-video-badge {position:absolute;inset:auto 4px 4px;background:#30271fe6;color:#fff9ef;font:11px/1.3 system-ui;padding:2px 4px;}
.hf-album-viewer .hf-album-thumbnails {max-height:160px;overflow-y:auto;padding:6px;scrollbar-width:thin;}
@media(max-width:700px), (max-width:1000px) and (max-aspect-ratio:1/1) {.hf-album-viewer .hf-album-video {height:36dvh;max-height:none;}}

.hf-album-book {touch-action:pan-y pinch-zoom;}
.hf-album-book.hf-has-pages {cursor:pointer;}
.hf-album-book :is(a,button,video),.hf-album-thumbnails {cursor:auto;}
.hf-album-book :is(a,button) {cursor:pointer;}
.hf-page-swipe-hint {display:none;}
@media(max-width:700px), (max-width:1000px) and (max-aspect-ratio:1/1) {
 .hf-album-book.hf-has-pages {cursor:auto;}
 .hf-page-click-hint {display:none;}
 .hf-page-swipe-hint {display:inline;}
}

/* Let the thumbnail gallery use the space between the introduction and footer. */
@media(min-width:1001px), (min-width:701px) and (min-aspect-ratio:1/1) {
 .hf-album-left {min-height:0;justify-content:flex-start;}
 .hf-album-left .hf-album-heading,.hf-album-left .hf-album-description,.hf-album-left .hf-album-footer {flex:none;}
 .hf-album-left .hf-album-thumbnails {flex:1 1 0;min-height:110px;max-height:none;align-content:flex-start;margin-bottom:0;}
 .hf-album-left .hf-album-footer {margin-top:14px;}
}

/* Optional distraction-free viewing; the scrapbook stays open underneath. */
.hf-album-viewer button.hf-album-enlarge {display:block;position:relative;width:100%;padding:0;border:0;background:none;line-height:0;cursor:zoom-in;}
.hf-photo-lightbox {box-sizing:border-box;position:fixed;inset:0;width:100vw;max-width:none;height:100dvh;max-height:none;margin:0;padding:12px clamp(14px,3vw,44px);border:0;background:#211e1b;color:#fff8ed;font:16px/1.45 Playpen,system-ui,sans-serif;overscroll-behavior:contain;}
.hf-photo-lightbox[open] {display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:10px;}
.hf-photo-lightbox::backdrop {background:#211e1b;}
.hf-lightbox-header {display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:44px;}
.hf-lightbox-title {font:24px/1.15 Gaegu,cursive;}
.hf-photo-lightbox button {flex:none;min-width:44px;min-height:44px;border:0;border-radius:6px;background:transparent;color:inherit;cursor:pointer;font:32px/1 system-ui;}
.hf-photo-lightbox button:disabled {opacity:.3;cursor:default;}
.hf-photo-lightbox button:focus-visible {outline:2px solid #efc879;outline-offset:2px;}
.hf-lightbox-stage {min-width:0;min-height:0;display:flex;align-items:center;justify-content:center;touch-action:pan-y pinch-zoom;}
.hf-lightbox-stage :is(img,video) {display:block;width:100%;height:100%;object-fit:contain;}
.hf-photo-lightbox [hidden] {display:none!important;}
.hf-lightbox-footer {text-align:center;}
.hf-lightbox-caption {max-width:80ch;margin:0 auto;max-height:20dvh;overflow:auto;font-size:16px;}
.hf-lightbox-footer nav {display:flex;align-items:center;justify-content:center;gap:20px;}
.hf-lightbox-count {min-width:80px;font-size:14px;}
.hf-photo-lightbox .hf-caption-toggle {display:none;font:14px/1.3 Playpen,system-ui;text-decoration:underline;}
@media(max-width:620px) {
 .hf-photo-lightbox {padding:calc(8px + env(safe-area-inset-top)) 12px calc(8px + env(safe-area-inset-bottom));gap:8px;}
 .hf-lightbox-title {font-size:21px;}
 .hf-lightbox-caption {display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font-size:14px;}
 .hf-lightbox-caption.is-expanded {display:block;max-height:24dvh;overflow:auto;}
 .hf-photo-lightbox .hf-caption-toggle:not([hidden]) {display:inline-block;}
}

.hf-lightbox-stage .hf-lightbox-image {cursor:pointer;}

/* Generous 25/50/25 video zones leave the native transport strip untouched. */
.hf-video-wrap {position:relative;width:100%;min-width:0;min-height:0;}
.hf-lightbox-stage .hf-video-wrap {height:100%;}
.hf-video-zones {position:absolute;inset:0;clip-path:inset(0 0 60px);display:grid;grid-template-columns:1fr 2fr 1fr;pointer-events:none;}
:is(.hf-album-viewer,.hf-photo-lightbox) .hf-video-zones button {pointer-events:auto;display:grid;place-items:center;width:100%;height:100%;min-width:0;min-height:44px;padding:0;background:transparent;border:0;cursor:pointer;color:#fff8ed;touch-action:pan-y pinch-zoom;}
.hf-video-toggle img {display:block;width:clamp(52px,8vw,82px);height:auto;filter:drop-shadow(0 2px 3px #0005);}
.hf-video-wrap.is-playing .hf-video-toggle img {opacity:0;}
.hf-video-zones :is(.hf-video-back,.hf-video-forward) span {display:grid;place-items:center;width:42px;height:50px;border-radius:47% 53% 45% 55%;background:#30271f99;text-shadow:0 1px 2px #0007;font:46px/1 Gaegu,cursive;}
.hf-video-zones button:disabled {opacity:.2;cursor:default;pointer-events:none;}
:is(.hf-album-viewer,.hf-photo-lightbox) .hf-video-zones button:focus-visible {outline:2px solid #efc879;outline-offset:-4px;}

.hf-video-back span {justify-self:start;margin-left:10px;}
.hf-video-forward span {justify-self:end;margin-right:10px;}

.hf-video-wrap.is-playing :is(.hf-video-back,.hf-video-forward) span {opacity:0;}

.hf-album-viewer .hf-video-toggle img {width:48px;height:auto;}

/* Mobile Safari places fullscreen, output, and sound controls at the top too. */
@media (max-width:700px), (pointer:coarse) {
 .hf-video-zones {grid-template-columns:12% 76% 12%;clip-path:inset(32px 0 44px);}
 :is(.hf-album-viewer,.hf-photo-lightbox) .hf-video-zones .hf-video-toggle {align-self:center;justify-self:center;width:56px;height:56px;min-height:0;}
 .hf-video-toggle img {width:48px;height:48px;}
 .hf-video-zones :is(.hf-video-back,.hf-video-forward) span {width:32px;height:40px;font-size:36px;}
 .hf-video-back span {margin-left:3px;}
 .hf-video-forward span {margin-right:3px;}
}

@media (max-height:450px) and (max-width:700px), (max-height:450px) and (pointer:coarse) {
 :is(.hf-album-viewer,.hf-photo-lightbox) .hf-video-zones .hf-video-toggle {width:36px;height:36px;}
 .hf-video-toggle img,.hf-album-viewer .hf-video-toggle img {width:32px;height:32px;}
}

/* Selection is shown by photo brightness; pointer use never frames the print. */
.hf-album-viewer .hf-album-thumbnails button[aria-current=true] {outline:none;}
.hf-album-viewer :focus,.hf-photo-lightbox :focus {outline:none;}
.hf-album-viewer.hf-keyboard-navigation button:focus-visible,
.hf-album-viewer.hf-keyboard-navigation a:focus-visible,
.hf-photo-lightbox.hf-keyboard-navigation button:focus-visible {outline:2px dashed #a67b3c;outline-offset:3px;}

.hf-album-viewer.hf-keyboard-navigation .hf-album-enlarge:focus-visible {outline:none;}

/* A quiet, explicit choice after the final memory; never an overlay on the media. */
.hf-album-ending{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:4px 20px;margin:12px 0 0;padding:8px 4px 0;border-top:1px dashed #c7aa80;font-size:14px;line-height:1.4;text-align:center}
.hf-album-ending[hidden],.hf-album-ending a[hidden]{display:none}
.hf-album-ending a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:6px 4px;color:#2e6567;text-decoration:underline;text-underline-offset:3px;max-width:100%;overflow-wrap:anywhere}
.hf-album-ending a:focus-visible{outline:2px dashed currentColor;outline-offset:3px}
.hf-photo-lightbox .hf-album-ending{border-color:#766d5d;margin-top:6px;padding-top:4px;font-size:14px}
.hf-photo-lightbox .hf-album-ending a{color:#f1e5cb}
@media(max-width:700px){.hf-album-ending{gap:0 16px;margin-top:8px}.hf-album-ending a{padding:6px 2px}}

@media(min-width:1001px), (min-width:701px) and (min-aspect-ratio:1/1){
 .hf-at-album-end .hf-album-image,.hf-at-album-end .hf-album-video{max-height:calc(49dvh - 84px)}
}

/* Mobile: align the visible leather edge, excluding the art's transparent gutter. */
@media(max-width:700px){
 .hf-album-viewer {
  --album-edge-left:max(1px,env(safe-area-inset-left,0px));
  --album-edge-right:max(1px,env(safe-area-inset-right,0px));
  width:calc(100vw - var(--album-edge-left) - var(--album-edge-right));
  max-width:none;margin-left:var(--album-edge-left);margin-right:var(--album-edge-right);
 }
 .hf-album-book {background-size:105.421687% 100%;}
}

/* Full-stage navigation includes the empty gutters beside portrait media. */
.hf-lightbox-stage {position:relative;}
.hf-photo-lightbox .hf-video-zones {display:none;}
.hf-lightbox-zones {position:absolute;inset:0;z-index:3;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));pointer-events:none;}
.hf-lightbox-zones.is-video {grid-template-columns:repeat(3,minmax(0,1fr));}
.hf-photo-lightbox .hf-lightbox-zones button {
 pointer-events:auto;display:flex;align-items:center;justify-content:center;
 width:100%;height:100%;min-width:0;min-height:0;padding:0;border:0;border-radius:0;
 background:transparent;touch-action:pan-y pinch-zoom;
}
.hf-photo-lightbox .hf-lightbox-zones button:disabled {pointer-events:none;}
.hf-lightbox-zones .hf-stage-back {justify-content:flex-start!important;}
.hf-lightbox-zones .hf-stage-forward {justify-content:flex-end!important;}
.hf-lightbox-zones :is(.hf-stage-back,.hf-stage-forward) span {
 margin:0 10px;font:46px/1 Gaegu,cursive;opacity:0;transition:opacity .15s;
}
.hf-lightbox-zones button:hover span,.hf-lightbox-zones button:focus-visible span {opacity:.8;}
.hf-lightbox-zones .hf-stage-toggle img {width:clamp(48px,8vw,82px);height:auto;object-fit:contain;filter:drop-shadow(0 2px 3px #0005);}
.hf-lightbox-zones.is-playing .hf-stage-toggle img {opacity:0;}
.hf-photo-lightbox .hf-lightbox-zones button:focus-visible {outline:2px solid #efc879;outline-offset:-4px;}
