:root {
    color-scheme: light;
    --ink: #18211e;
    --muted: #626b66;
    --paper: #fff8ed;
    --paper-deep: #f2dfc7;
    --forest: #087f8c;
    --forest-bright: #07949f;
    --red: #ef5b5b;
    --blue: #3289c7;
    --gold: #f2b544;
    --white: #fffefa;
    --line: rgba(24, 33, 30, .17);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; color: var(--ink); background: #eef0eb; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 68px;
    padding: 10px clamp(18px, 4vw, 64px);
    color: white;
    background: rgba(17, 40, 33, .97);
    border-bottom: 1px solid rgba(255, 255, 255, .16);
}

.wordmark { display: flex; align-items: center; gap: 12px; color: white; text-decoration: none; font-family: Georgia, serif; font-size: 1.05rem; font-weight: 700; }
.wordmark-mark { display: grid; place-items: center; width: 38px; aspect-ratio: 1; background: var(--red); border: 2px solid #f6d7ca; font: 700 .82rem/1 Georgia, serif; }
.site-header nav { display: flex; align-items: center; gap: 22px; }
.site-header nav a { color: rgba(255, 255, 255, .88); text-decoration: none; font-size: .9rem; font-weight: 700; }
.site-header nav a:hover, .site-header nav a:focus-visible { color: white; text-decoration: underline; text-underline-offset: 5px; }
.site-header .icon-link { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid rgba(255,255,255,.35); text-decoration: none; }

.album-stage { min-height: calc(100vh - 68px); padding: clamp(32px, 5vw, 64px) clamp(16px, 4vw, 64px) 48px; color: white; background: var(--forest); overflow: hidden; }
.album-heading, .section-heading, .admin-intro { display: flex; align-items: end; justify-content: space-between; gap: 24px; max-width: 1320px; margin: 0 auto 28px; }
.album-heading h1, .section-heading h2, .admin-intro h1 { margin: 3px 0 0; font: 700 clamp(2.1rem, 5vw, 4.6rem)/.98 Georgia, serif; letter-spacing: 0; }
.kicker { margin: 0; color: currentColor; opacity: .74; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.album-count { margin: 0; padding-left: 20px; border-left: 3px solid var(--gold); font: 700 1rem/1.6 Georgia, serif; text-align: right; }

.book-shell { position: relative; max-width: 1260px; margin: 0 auto; padding: 0 58px; perspective: 1900px; }
.book { position: relative; width: 100%; aspect-ratio: 16 / 8.7; min-height: 470px; box-shadow: 0 32px 70px rgba(0,0,0,.38); transform-style: preserve-3d; }
.book::after { content: ""; position: absolute; z-index: 8; top: 0; bottom: 0; left: 50%; width: 2px; background: rgba(40, 31, 21, .16); box-shadow: 0 0 18px rgba(20,15,10,.35); pointer-events: none; }
.spread { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; visibility: hidden; opacity: 0; transform: rotateY(7deg) scale(.98); transform-origin: center; transition: opacity .22s ease, transform .46s cubic-bezier(.2,.7,.2,1), visibility .46s; }
.spread.is-active { visibility: visible; opacity: 1; transform: rotateY(0) scale(1); z-index: 2; }
.book.is-turning-forward .spread.is-active { animation: page-forward .42s ease both; }
.book.is-turning-back .spread.is-active { animation: page-back .42s ease both; }
@keyframes page-forward { 0% { transform: rotateY(0); opacity: 1; } 48% { transform: rotateY(-62deg) scale(.98); opacity: .2; } 100% { transform: rotateY(0); opacity: 1; } }
@keyframes page-back { 0% { transform: rotateY(0); opacity: 1; } 48% { transform: rotateY(62deg) scale(.98); opacity: .2; } 100% { transform: rotateY(0); opacity: 1; } }
.book-page { position: relative; min-width: 0; padding: clamp(24px, 4vw, 60px); color: var(--ink); background: var(--paper); overflow: hidden; }
.book-page:first-child { border-right: 1px solid #d3cabd; }
.cover-page { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #fefaf1; background: var(--red); border: 12px solid #8e3030; box-shadow: inset 0 0 0 2px #d78a72; }
.cover-page::before, .cover-page::after { content: ""; position: absolute; left: 42px; right: 42px; height: 2px; background: #f0c36f; }
.cover-page::before { top: 42px; } .cover-page::after { bottom: 42px; }
.cover-monogram { display: grid; place-items: center; width: 82px; aspect-ratio: 1; margin-bottom: 28px; border: 2px solid #f0c36f; font: 700 1.7rem/1 Georgia, serif; }
.cover-page p { margin: 0 0 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.cover-page h2 { margin: 0; font: 700 clamp(2rem, 4vw, 4rem)/1 Georgia, serif; letter-spacing: 0; }
.cover-page span { margin-top: 22px; opacity: .86; font-family: Georgia, serif; }
.intro-page { display: flex; flex-direction: column; justify-content: center; }
.handwritten { margin: 0; color: var(--blue); font: italic 700 clamp(1.6rem, 3vw, 3.2rem)/1.15 Georgia, serif; }
.timeline-rule { width: 72px; height: 5px; margin: 28px 0; background: var(--gold); }
.intro-page > p:last-of-type { max-width: 42ch; font: 1.08rem/1.7 Georgia, serif; }
.album-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 34px 0 0; }
.album-facts div { padding-top: 12px; border-top: 1px solid var(--line); }
.album-facts dt { color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; }
.album-facts dd { margin: 5px 0 0; font: 700 1rem/1.3 Georgia, serif; }

.memory-page { display: grid; grid-template-rows: 1.55fr .75fr; gap: 14px; padding: clamp(18px, 2.2vw, 34px); }
.memory { position: relative; min-height: 0; margin: 0; overflow: hidden; background: #dbe1dc; cursor: zoom-in; }
.memory img, .memory video { width: 100%; height: 100%; object-fit: cover; }
.memory figcaption { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: end; justify-content: space-between; gap: 12px; padding: 28px 14px 12px; color: white; background: linear-gradient(transparent, rgba(10,16,14,.83)); }
.memory figcaption strong { font-family: Georgia, serif; }
.memory figcaption span { flex: none; font-size: .75rem; }
.memory-small { min-height: 110px; }
.video-badge { position: absolute; top: 10px; left: 10px; padding: 6px 8px; color: white; background: var(--red); font-size: .7rem; font-weight: 800; text-transform: uppercase; }
.page-control { position: absolute; z-index: 10; top: 50%; display: grid; place-items: center; width: 46px; height: 58px; padding: 0 0 6px; border: 1px solid rgba(255,255,255,.45); color: white; background: transparent; font: 400 2.5rem/1 Georgia, serif; cursor: pointer; transform: translateY(-50%); }
.page-control:hover, .page-control:focus-visible { color: var(--forest); background: white; }
.page-control:disabled { opacity: .25; cursor: default; }
.page-control.previous { left: 0; } .page-control.next { right: 0; }
.page-status { margin-top: 20px; text-align: center; color: rgba(255,255,255,.72); font-weight: 700; }

.gallery-section, .video-section { padding: 76px clamp(18px, 4vw, 64px); }
.gallery-section { background: #f1eee7; }
.section-heading { align-items: center; margin-bottom: 34px; }
.section-heading h2 { font-size: clamp(2rem, 4vw, 3.8rem); }
.section-heading .kicker { color: var(--red); opacity: 1; }
.year-filter { display: flex; max-width: min(100%, 700px); overflow-x: auto; border-bottom: 1px solid #aaa69d; }
.year-filter button { flex: none; padding: 10px 12px; border: 0; border-bottom: 3px solid transparent; color: var(--muted); background: transparent; cursor: pointer; }
.year-filter button.is-selected { color: var(--ink); border-color: var(--red); font-weight: 800; }
.gallery-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; max-width: 1500px; margin: 0 auto; }
.gallery-item { min-width: 0; aspect-ratio: 1; overflow: hidden; background: #d9ddd7; }
.gallery-item[hidden] { display: none; }
.gallery-open { position: relative; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.gallery-open img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.gallery-open:hover img, .gallery-open:focus-visible img { transform: scale(1.035); }
.gallery-open > span { position: absolute; inset: auto 0 0; display: flex; align-items: end; justify-content: space-between; gap: 10px; padding: 36px 12px 10px; color: white; text-align: left; background: linear-gradient(transparent, rgba(9,16,13,.82)); opacity: 0; transition: opacity .2s ease; }
.gallery-open:hover > span, .gallery-open:focus-visible > span { opacity: 1; }
.gallery-open strong { font: 700 .92rem/1.2 Georgia, serif; }
.gallery-open small { flex: none; font-size: .7rem; }

.video-section { color: white; background: #1c2427; }
.video-section .section-heading .kicker { color: #80c5d1; }
.video-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; max-width: 1320px; margin: 0 auto; }
.video-item { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(160px, .7fr); min-height: 250px; border-top: 4px solid var(--blue); background: #111817; }
.video-item video { width: 100%; height: 100%; min-height: 250px; object-fit: cover; background: black; }
.video-item > div { display: flex; flex-direction: column; align-items: start; justify-content: center; padding: 24px; }
.video-item h3 { margin: 8px 0 24px; font: 700 1.35rem/1.15 Georgia, serif; }
.video-item a { color: #9ed9e2; font-weight: 800; text-underline-offset: 4px; }

.lightbox { width: min(96vw, 1320px); max-width: none; height: min(92vh, 920px); padding: 0; border: 0; color: white; background: #0c1210; overflow: hidden; }
.lightbox::backdrop { background: rgba(5,10,8,.91); }
.lightbox[open] { display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.lightbox-media { display: grid; place-items: center; min-height: 0; padding: 24px; overflow: hidden; }
.lightbox-media img, .lightbox-media video { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 22px; border-top: 1px solid rgba(255,255,255,.2); }
.lightbox footer div { display: flex; flex-direction: column; gap: 3px; }
.lightbox footer span { color: rgba(255,255,255,.66); font-size: .82rem; }
.lightbox footer a { color: white; font-weight: 800; }
.lightbox-close { position: absolute; z-index: 3; top: 12px; right: 12px; display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.5); color: white; background: rgba(0,0,0,.55); font-size: 1.7rem; cursor: pointer; }
.site-footer { display: flex; justify-content: space-between; gap: 20px; padding: 24px clamp(18px,4vw,64px); color: white; background: #101713; font-family: Georgia, serif; }

.auth-screen { min-height: 100vh; display: grid; place-items: center; padding: 24px; color: white; background: var(--forest); }
.auth-panel { width: min(100%, 520px); padding: clamp(28px, 6vw, 62px); color: var(--ink); background: var(--paper); border: 8px solid #d8cfc0; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.auth-panel h1 { margin: 8px 0 12px; font: 700 clamp(2rem, 6vw, 3.5rem)/1 Georgia, serif; }
.auth-panel > p:not(.kicker):not(.form-error):not(.form-success) { color: var(--muted); line-height: 1.6; }
.auth-cover { text-align: center; }
.auth-cover .cover-mark { display: grid; place-items: center; width: 76px; aspect-ratio: 1; margin: 0 auto 24px; color: white; background: var(--red); border: 3px double #f1c871; font: 700 1.5rem/1 Georgia, serif; }
.stack-form { display: grid; gap: 18px; margin-top: 28px; text-align: left; }
.compact-form { max-width: 360px; margin-inline: auto; }
label { display: grid; gap: 7px; font-size: .82rem; font-weight: 800; }
input[type="text"], input[type="password"], input[type="date"], input:not([type]) { width: 100%; min-height: 44px; padding: 9px 11px; border: 1px solid #aaa69d; color: var(--ink); background: white; border-radius: 2px; }
input:focus { outline: 3px solid rgba(40,121,138,.25); border-color: var(--blue); }
.primary-button, .secondary-button { min-height: 44px; padding: 10px 18px; border: 0; font-weight: 800; cursor: pointer; }
.primary-button { color: white; background: var(--red); }
.primary-button:hover, .primary-button:focus-visible { background: #8f3030; }
.secondary-button { color: white; background: var(--forest-bright); }
.form-error, .form-success, .flash-message { padding: 12px 14px; border-left: 4px solid var(--red); background: #f5dcdc; }
.form-success, .flash-message { border-color: var(--forest-bright); background: #dcebe4; }

.admin-screen { background: #edf0ec; }
.admin-main { max-width: 1320px; margin: 0 auto; padding: 48px clamp(16px, 4vw, 54px) 80px; }
.admin-intro { margin-bottom: 30px; }
.admin-intro h1 { font-size: clamp(2rem, 5vw, 4rem); }
.upload-panel { padding: 28px; border-top: 5px solid var(--red); background: white; }
.upload-panel h2, .manage-list > h2 { margin: 0 0 22px; font: 700 1.55rem/1.2 Georgia, serif; }
.upload-form { display: grid; grid-template-columns: 1.2fr .55fr 1fr; gap: 18px; align-items: end; }
.upload-form .wide-field { grid-column: span 2; }
.check-field { display: flex; align-items: center; grid-template: none; min-height: 44px; }
.manage-list { margin-top: 44px; }
.manage-item { position: relative; display: grid; grid-template-columns: 150px 1fr 46px; gap: 20px; align-items: center; min-height: 150px; margin-bottom: 10px; padding: 12px; background: white; border-left: 4px solid var(--blue); }
.manage-thumb { position: relative; width: 150px; height: 126px; overflow: hidden; background: #d8ddd9; }
.manage-thumb img, .manage-thumb video { width: 100%; height: 100%; object-fit: cover; }
.manage-thumb span { position: absolute; bottom: 5px; left: 5px; padding: 4px 6px; color: white; background: var(--red); font-size: .7rem; font-weight: 800; }
.manage-form { display: grid; grid-template-columns: .7fr 1.1fr 1.4fr; gap: 12px; align-items: end; }
.manage-form .check-field { grid-column: span 2; }
.delete-form { align-self: start; }
.icon-button { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid #999; background: white; font-size: 1.4rem; cursor: pointer; }
.icon-button.danger { color: var(--red); border-color: #d7aaaa; }

.collection-section { padding: 70px clamp(18px, 4vw, 64px); background: #dfe7e1; }
.collection-heading { margin-bottom: 30px; }
.collection-heading .kicker { color: var(--forest-bright); opacity: 1; }
.collection-heading .secondary-button { display: inline-flex; align-items: center; text-decoration: none; }
.collection-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; max-width: 1320px; margin: 0 auto; }
.collection-cover { position: relative; min-height: 380px; padding: 28px 24px; color: white; text-decoration: none; border: 7px solid rgba(0,0,0,.12); box-shadow: 12px 14px 0 rgba(26,42,35,.14); transition: transform .2s ease, box-shadow .2s ease; }
.collection-cover:hover, .collection-cover:focus-visible { transform: translateY(-5px) rotate(-.5deg); box-shadow: 15px 20px 0 rgba(26,42,35,.16); }
.collection-photo { height: 210px; margin-bottom: 24px; padding: 10px; background: #fffdf8; box-shadow: 0 8px 18px rgba(0,0,0,.24); transform: rotate(-1.5deg); }
.collection-photo img { width: 100%; height: 100%; object-fit: cover; }
.collection-photo > span { display: grid; place-items: center; width: 100%; height: 100%; color: var(--red); font: 700 2rem/1 Georgia, serif; background: var(--paper); }
.collection-cover > p { margin: 0 0 6px; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.collection-cover h3 { margin: 0 0 8px; font: 700 clamp(1.45rem, 2.4vw, 2.25rem)/1 Georgia, serif; }
.collection-cover > span { opacity: .78; font-size: .82rem; }

.theme-heritage { --album-accent: #ef5b5b; --album-deep: #b8324c; --album-paper: #fff8ed; --album-ink: #282522; background: #ef5b5b; }
.theme-meadow { --album-accent: #48a96f; --album-deep: #21734e; --album-paper: #f4f9e9; --album-ink: #173026; background: #48a96f; }
.theme-sky { --album-accent: #3289c7; --album-deep: #15639b; --album-paper: #eef8fb; --album-ink: #18343b; background: #3289c7; }
.theme-night { --album-accent: #9a4f7a; --album-deep: #6c3158; --album-paper: #fff4e4; --album-ink: #302331; background: #9a4f7a; }

.library-screen { min-height: 100vh; background: #fff7e9; }
.library-main { max-width: 1260px; min-height: calc(100vh - 122px); margin: 0 auto; padding: clamp(42px, 7vw, 84px) clamp(16px, 4vw, 50px) 90px; }
.library-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 42px; }
.library-heading h1 { margin: 7px 0 10px; font: 700 clamp(2.8rem, 7vw, 5.8rem)/.9 Georgia, serif; }
.library-heading p:last-child { max-width: 54ch; margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.6; }
.library-heading .create-album-button { flex: none; color: white; text-decoration: none; }
.library-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.library-album { position: relative; display: flex; flex-direction: column; justify-content: end; aspect-ratio: 4 / 5; min-width: 0; padding: 28px; color: white; text-decoration: none; border: 8px solid rgba(0,0,0,.13); box-shadow: 13px 15px 0 rgba(32,50,42,.15); transition: transform .2s ease, box-shadow .2s ease; }
.library-album:hover, .library-album:focus-visible { transform: translateY(-5px) rotate(-.4deg); box-shadow: 17px 21px 0 rgba(32,50,42,.17); }
.library-cover-photo { position: absolute; inset: 28px 28px 43%; padding: 9px 9px 32px; background: #fffdf8; box-shadow: 0 10px 24px rgba(0,0,0,.28); transform: rotate(-2deg); }
.library-cover-photo img { width: 100%; height: 100%; object-fit: cover; }
.library-cover-photo > span { display: grid; place-items: center; width: 100%; height: 100%; color: var(--red); font: 700 2.2rem/1 Georgia, serif; background: var(--paper); }
.library-cover-copy { position: relative; z-index: 1; }
.library-cover-copy p { margin: 0 0 7px; font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .11em; }
.library-cover-copy h2 { margin: 0 0 10px; font: 700 clamp(1.7rem, 3vw, 2.8rem)/.96 Georgia, serif; }
.library-cover-copy span { opacity: .76; font-size: .82rem; }
.library-new-album { display: grid; place-items: center; align-content: center; aspect-ratio: 4 / 5; min-width: 0; color: #087f8c; text-align: center; text-decoration: none; background: #fffdf8; border: 3px dashed #36a7ae; }
.library-new-album span { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 12px; color: white; background: var(--red); font-size: 2rem; }
.library-new-album strong { font-family: Georgia, serif; }
.library-footer { display: flex; justify-content: space-between; padding: 22px clamp(16px,4vw,50px); color: rgba(255,255,255,.85); background: #087f8c; font: .8rem/1.2 Georgia, serif; }
.special-archive { margin-top: 42px; }
.special-archive > a { display: grid; grid-template-columns: 150px 1fr auto; align-items: center; gap: 24px; padding: 22px; color: white; text-decoration: none; background: #9a4f7a; border-left: 7px solid var(--gold); }
.special-archive-photo { width: 150px; height: 105px; padding: 6px; background: white; transform: rotate(-2deg); }
.special-archive-photo img { width: 100%; height: 100%; object-fit: cover; }
.special-archive p { margin: 0 0 4px; color: var(--gold); font-size: .72rem; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; }
.special-archive h2 { margin: 0 0 7px; font: 700 1.7rem/1 Georgia, serif; }
.special-archive span { color: rgba(255,255,255,.72); }
.special-archive b { white-space: nowrap; }

.studio-screen { min-height: 100vh; background: #edf0ec; }
.studio-header { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; min-height: 64px; padding: 10px max(16px, env(safe-area-inset-left)) 10px max(16px, env(safe-area-inset-right)); color: white; background: var(--forest); border-bottom: 1px solid rgba(255,255,255,.16); }
.studio-brand { display: flex; align-items: center; gap: 12px; color: white; text-decoration: none; font: 700 1.05rem/1 Georgia, serif; }
.studio-header nav { display: flex; align-items: center; gap: 18px; }
.studio-header nav a { color: white; font-size: .85rem; font-weight: 800; text-decoration: none; }
.studio-main { max-width: 1240px; margin: 0 auto; padding: 42px clamp(16px, 4vw, 48px) 90px; }
.studio-welcome { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 36px; }
.studio-welcome h1 { margin: 6px 0 8px; font: 700 clamp(2.3rem, 6vw, 4.8rem)/.95 Georgia, serif; }
.studio-welcome p:last-child { margin: 0; color: var(--muted); }
.create-album-button { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 12px 18px; border: 0; color: white; background: var(--red); font-weight: 800; cursor: pointer; }
.create-album-button span { font-size: 1.5rem; line-height: 1; }
.album-library { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; }
.album-tile { min-width: 0; color: white; text-decoration: none; box-shadow: 10px 12px 0 #cad1cc; transition: transform .2s ease; }
.album-tile:hover, .album-tile:focus-visible { transform: translateY(-4px); }
.album-start-tile { background: #e7ebe8; border: 3px dashed #8da397; box-shadow: none; }
.album-start-tile .album-tile-cover { color: var(--forest); border: 0; }
.album-tile-cover { position: relative; display: flex; flex-direction: column; justify-content: end; aspect-ratio: 4 / 5; padding: 22px; overflow: hidden; border: 7px solid rgba(0,0,0,.13); }
.album-tile-cover img { position: absolute; inset: 24px 24px 42%; width: calc(100% - 48px); height: calc(58% - 24px); padding: 8px; object-fit: cover; background: white; box-shadow: 0 6px 16px rgba(0,0,0,.3); transform: rotate(-2deg); }
.album-tile-cover > div { position: relative; z-index: 1; }
.album-tile-cover p { margin: 0 0 4px; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.album-tile-cover h2 { margin: 0 0 8px; font: 700 clamp(1.35rem, 2.4vw, 2.1rem)/1 Georgia, serif; }
.album-tile-cover div > span { opacity: .78; font-size: .78rem; }
.empty-cover-mark { position: absolute; top: 25%; left: 50%; display: grid; place-items: center; width: 72px; height: 72px; border: 2px solid rgba(255,255,255,.7); font-size: 2rem; transform: translate(-50%, -50%); }
.album-start-tile .empty-cover-mark { color: white; background: var(--red); border: 0; }
.special-archive-link { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; margin-top: 42px; padding: 22px 24px; color: white; text-decoration: none; background: #26312d; border-left: 6px solid var(--gold); }
.special-archive-link > span { padding: 6px 8px; color: var(--ink); background: var(--gold); font-size: .7rem; font-weight: 900; text-transform: uppercase; }
.special-archive-link strong { font: 700 1.35rem/1 Georgia, serif; }
.special-archive-link small { grid-column: 2; color: rgba(255,255,255,.7); }
.special-archive-link b { grid-column: 3; grid-row: 1 / span 2; }

.create-album-dialog { width: min(92vw, 540px); padding: 34px; border: 0; color: var(--ink); background: var(--paper); box-shadow: 0 28px 80px rgba(0,0,0,.42); }
.create-album-dialog::backdrop { background: rgba(12,25,20,.78); }
.create-album-dialog h2 { margin: 6px 0 24px; font: 700 2.2rem/1 Georgia, serif; }
.album-form { display: grid; gap: 17px; }
.theme-picker { display: flex; align-items: center; gap: 13px; margin: 0; padding: 0; border: 0; }
.theme-picker legend { margin-bottom: 9px; font-size: .82rem; font-weight: 800; }
.theme-picker label { display: block; cursor: pointer; }
.theme-picker input { position: absolute; opacity: 0; pointer-events: none; }
.theme-swatch { display: block; width: 42px; height: 42px; border: 3px solid white; outline: 1px solid #a4a9a4; box-shadow: inset 0 -12px 0 rgba(0,0,0,.14); }
.theme-swatch.heritage { background: #b44343; } .theme-swatch.meadow { background: #2d6a4f; } .theme-swatch.sky { background: #28798a; } .theme-swatch.night { background: #262936; }
.theme-picker input:checked + .theme-swatch { outline: 4px solid var(--gold); outline-offset: 2px; }

.studio-back-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.studio-back-row a { color: var(--forest); font-weight: 800; text-underline-offset: 4px; }
.album-editor-head { display: flex; align-items: end; justify-content: space-between; min-height: 260px; padding: 34px; color: white; border: 9px solid rgba(0,0,0,.12); box-shadow: 10px 12px 0 #ccd2ce; }
.album-editor-head h1 { margin: 7px 0; font: 700 clamp(2.4rem, 7vw, 5rem)/.94 Georgia, serif; }
.album-editor-head p:last-child { max-width: 55ch; margin: 0; opacity: .82; }
.album-editor-head .icon-button { flex: none; color: white; border-color: rgba(255,255,255,.6); background: rgba(0,0,0,.18); }
.album-details-form { display: grid; grid-template-columns: 1fr .6fr; gap: 16px; margin-top: 24px; padding: 24px; background: white; border-left: 5px solid var(--blue); }
.album-details-form[hidden] { display: none; }
.album-details-form .wide-field, .album-details-form .theme-picker { grid-column: 1 / -1; }
.album-details-form .secondary-button { justify-self: start; }
.phone-upload-panel { margin-top: 34px; }
.photo-picker { display: grid; place-items: center; min-height: 190px; padding: 24px; color: var(--forest); text-align: center; background: white; border: 3px dashed #83a495; cursor: pointer; }
.photo-picker:hover, .photo-picker:focus-within { background: #f4f8f5; border-color: var(--forest-bright); }
.photo-picker input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.photo-picker-icon { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 10px; color: white; background: var(--red); font-size: 2rem; }
.photo-picker strong { font: 700 1.35rem/1.2 Georgia, serif; }
.photo-picker small { margin-top: 5px; color: var(--muted); font-size: .8rem; }
.upload-ready { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; color: white; background: var(--forest); }
.upload-ready[hidden] { display: none; }
.album-sorter { margin-top: 42px; }
.sorter-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 17px; }
.sorter-heading h2 { margin: 0; font: 700 1.8rem/1 Georgia, serif; }
.sorter-heading span { color: var(--muted); font-size: .82rem; }
.sorter-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.sorter-item { position: relative; aspect-ratio: 1; min-width: 0; background: #dbe0dc; overflow: hidden; }
.sorter-item img, .sorter-item video { width: 100%; height: 100%; object-fit: cover; }
.sorter-actions { position: absolute; left: 5px; right: 5px; bottom: 5px; display: flex; justify-content: center; gap: 4px; }
.sorter-actions button { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; color: white; background: rgba(17,31,26,.86); font-size: 1.2rem; cursor: pointer; }
.sorter-actions button:disabled { opacity: .35; cursor: default; }
.album-empty { padding: 44px 22px; text-align: center; background: white; border: 2px dashed #b9c5bd; }
.album-empty p { margin: 0 0 5px; font: 700 1.25rem/1.2 Georgia, serif; }
.album-empty span { color: var(--muted); }

.scrapbook-screen { min-height: 100vh; color: var(--album-ink); background: var(--album-deep); }
.scrapbook-header { position: sticky; top: 0; z-index: 25; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 58px; padding: 8px max(14px, env(safe-area-inset-left)); color: white; background: rgba(13,25,21,.94); }
.scrapbook-header a { color: white; font-size: .82rem; font-weight: 800; text-decoration: none; }
.scrapbook-header a:last-child { text-align: right; }
.scrapbook-header > span { font: 700 1rem/1 Georgia, serif; }
.scrapbook-shell { position: relative; max-width: 980px; margin: 0 auto; padding: 32px 58px 54px; }
.scrapbook-track { display: flex; width: 100%; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; box-shadow: 0 24px 60px rgba(0,0,0,.36); }
.scrapbook-track::-webkit-scrollbar { display: none; }
.scrap-page { position: relative; flex: 0 0 100%; aspect-ratio: 4 / 3; min-width: 0; padding: clamp(28px, 5vw, 66px); background: var(--album-paper); border: 1px solid rgba(0,0,0,.14); scroll-snap-align: start; overflow: hidden; }
.scrap-cover { display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: clamp(24px, 5vw, 64px); color: white; background: var(--album-accent); border: 12px solid rgba(0,0,0,.16); }
.cover-photo-stack { position: relative; height: 74%; min-height: 290px; }
.stack-photo { position: absolute; width: 72%; height: 72%; padding: 10px 10px 38px; object-fit: cover; background: white; box-shadow: 0 12px 28px rgba(0,0,0,.32); }
.stack-1 { top: 1%; left: 2%; transform: rotate(-7deg); } .stack-2 { top: 19%; right: 0; transform: rotate(7deg); } .stack-3 { bottom: 0; left: 14%; transform: rotate(-1deg); }
.scrap-cover-copy p { margin: 0 0 10px; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.scrap-cover-copy h1 { margin: 0 0 18px; font: 700 clamp(2.5rem, 6vw, 5.2rem)/.92 Georgia, serif; }
.scrap-cover-copy span { display: block; max-width: 32ch; opacity: .84; line-height: 1.55; }
.scrap-photo { position: absolute; margin: 0; padding: 10px 10px 34px; background: #fffef9; box-shadow: 0 12px 24px rgba(33,36,30,.2); cursor: zoom-in; }
.scrap-photo img, .scrap-photo video { width: 100%; height: 100%; object-fit: cover; }
.scrap-photo figcaption { position: absolute; left: 12px; right: 12px; bottom: 9px; overflow: hidden; font: italic 700 .82rem/1 Georgia, serif; white-space: nowrap; text-overflow: ellipsis; }
.piece-1 { top: 8%; left: 7%; width: 48%; height: 62%; transform: rotate(-3deg); }
.piece-2 { top: 17%; right: 6%; width: 39%; height: 43%; transform: rotate(4deg); }
.piece-3 { right: 12%; bottom: 7%; width: 42%; height: 35%; transform: rotate(-2deg); }
.layout-1 .piece-1 { left: 25%; width: 50%; height: 70%; transform: rotate(2deg); }
.layout-1 .piece-2 { top: 12%; right: 8%; transform: rotate(-5deg); }
.layout-2 .piece-1 { width: 40%; height: 46%; } .layout-2 .piece-2 { width: 47%; height: 64%; } .layout-2 .piece-3 { left: 18%; right: auto; width: 42%; }
.play-mark { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 54px; height: 54px; color: white; background: rgba(180,67,67,.92); transform: translate(-50%,-50%); }
.page-number { position: absolute; right: 20px; bottom: 14px; color: #777; font: italic .78rem/1 Georgia, serif; }
.paper-tape { display: none; }
.empty-scrap-page { display: grid; place-items: center; align-content: center; text-align: center; }
.empty-scrap-page h2 { font: 700 2.2rem/1.1 Georgia, serif; }
.scrap-control { position: absolute; z-index: 10; top: 50%; display: grid; place-items: center; width: 42px; height: 56px; border: 1px solid rgba(255,255,255,.55); color: white; background: transparent; font: 2.2rem/1 Georgia, serif; cursor: pointer; transform: translateY(-50%); }
.scrap-control.previous { left: 5px; } .scrap-control.next { right: 5px; }
.scrap-control:disabled { opacity: .28; }
.scrap-progress { margin-top: 18px; color: rgba(255,255,255,.8); text-align: center; font-weight: 800; }

@media (max-width: 980px) {
    .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .video-list { grid-template-columns: 1fr; }
    .collection-strip, .album-library { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .library-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sorter-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .upload-form, .manage-form { grid-template-columns: 1fr 1fr; }
    .manage-form label:nth-child(4) { grid-column: span 2; }
}

@media (max-width: 720px) {
    .site-header { min-height: 58px; padding: 9px 14px; }
    .wordmark > span:last-child { display: none; }
    .site-header nav { gap: 13px; }
    .site-header nav a { font-size: .78rem; }
    .site-header nav a[href="#videa"] { display: none; }
    .album-stage { min-height: auto; padding-inline: 10px; }
    .album-heading { padding-inline: 8px; align-items: end; }
    .album-count { font-size: .8rem; }
    .book-shell { padding: 0 42px; }
    .book { aspect-ratio: auto; min-height: 860px; }
    .book::after { display: none; }
    .spread { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; }
    .book-page { display: flex; min-height: 0; }
    .book-page:first-child { border-right: 0; border-bottom: 1px solid #d3cabd; }
    .intro-page { display: flex !important; }
    .memory-page { display: grid !important; }
    .cover-page { display: flex !important; }
    .page-control { width: 36px; height: 50px; }
    .gallery-section, .video-section { padding: 52px 12px; }
    .collection-section { padding: 46px 14px 54px; }
    .collection-heading { align-items: stretch; }
    .collection-heading .secondary-button { justify-content: center; width: 100%; }
    .collection-strip { display: flex; gap: 16px; margin-inline: -14px; padding: 0 14px 18px; overflow-x: auto; scroll-snap-type: x mandatory; }
    .collection-cover { flex: 0 0 78vw; min-height: 385px; scroll-snap-align: center; }
    .section-heading { align-items: start; flex-direction: column; }
    .year-filter { width: 100%; }
    .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
    .gallery-open > span { opacity: 1; padding: 32px 8px 8px; }
    .gallery-open > span small { display: none; }
    .video-item { grid-template-columns: 1fr; }
    .video-item > div { padding: 18px; }
    .lightbox { width: 100vw; height: 100vh; }
    .lightbox footer { align-items: start; }
    .lightbox footer a span { display: none; }
    .site-footer { font-size: .82rem; }
    .admin-main { padding-top: 30px; }
    .upload-form, .manage-form { grid-template-columns: 1fr; }
    .upload-form .wide-field, .manage-form .check-field, .manage-form label:nth-child(4) { grid-column: auto; }
    .manage-item { grid-template-columns: 92px 1fr 38px; gap: 10px; align-items: start; }
    .manage-thumb { width: 92px; height: 92px; }
    .studio-header { min-height: 58px; }
    .library-main { min-height: calc(100vh - 108px); padding: 38px 14px 66px; }
    .library-heading { align-items: stretch; flex-direction: column; margin-bottom: 28px; }
    .library-heading h1 { font-size: 2.7rem; }
    .library-heading .create-album-button { justify-content: center; width: 100%; }
    .library-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
    .library-album, .library-new-album { width: 100%; margin: 0; aspect-ratio: 4 / 5.4; }
    .library-album { padding: 14px; border-width: 5px; box-shadow: 5px 6px 0 rgba(32,50,42,.14); }
    .library-cover-photo { inset: 13px 13px 45%; padding: 5px 5px 17px; }
    .library-cover-copy p { margin-bottom: 4px; font-size: .62rem; }
    .library-cover-copy h2 { margin-bottom: 5px; font-size: 1.25rem; }
    .library-cover-copy span { font-size: .7rem; }
    .library-new-album { min-height: 0; padding: 12px; }
    .library-new-album span { width: 46px; height: 46px; font-size: 1.6rem; }
    .library-new-album strong { font-size: .82rem; }
    .library-footer { font-size: .74rem; }
    .special-archive > a { grid-template-columns: 92px 1fr; gap: 14px; padding: 17px; }
    .special-archive-photo { width: 92px; height: 82px; }
    .special-archive h2 { font-size: 1.35rem; }
    .special-archive span { font-size: .78rem; }
    .special-archive b { grid-column: 2; }
    .studio-main { padding: 28px 14px calc(84px + env(safe-area-inset-bottom)); }
    .studio-welcome { align-items: stretch; flex-direction: column; margin-bottom: 25px; }
    .studio-welcome h1 { font-size: 3rem; }
    .create-album-button { justify-content: center; width: 100%; }
    .album-library { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
    .special-archive-link { grid-template-columns: 1fr auto; gap: 9px 14px; }
    .special-archive-link > span, .special-archive-link strong, .special-archive-link small { grid-column: 1; }
    .special-archive-link b { grid-column: 2; grid-row: 1 / span 3; }
    .album-tile { box-shadow: 6px 7px 0 #cad1cc; }
    .album-tile-cover { padding: 13px; border-width: 5px; }
    .album-tile-cover img { inset: 14px 14px 43%; width: calc(100% - 28px); height: calc(57% - 14px); padding: 5px; }
    .album-tile-cover h2 { font-size: 1.12rem; }
    .album-tile-cover p, .album-tile-cover div > span { font-size: .65rem; }
    .create-album-dialog { width: 100vw; max-height: 92vh; margin: auto 0 0; padding: 26px 20px calc(24px + env(safe-area-inset-bottom)); }
    .album-editor-head { min-height: 230px; padding: 22px; border-width: 6px; }
    .album-editor-head h1 { font-size: 3rem; }
    .album-details-form { grid-template-columns: 1fr; }
    .album-details-form .wide-field, .album-details-form .theme-picker { grid-column: auto; }
    .phone-upload-panel { margin-top: 25px; }
    .photo-picker { min-height: 175px; }
    .upload-ready { align-items: stretch; flex-direction: column; }
    .sorter-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
    .sorter-actions { left: 3px; right: 3px; bottom: 3px; gap: 3px; }
    .sorter-actions button { width: 30px; height: 30px; }
    .scrapbook-header { grid-template-columns: .8fr 1.4fr .8fr; }
    .scrapbook-header > span { overflow: hidden; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
    .scrapbook-shell { padding: 18px 0 62px; }
    .scrapbook-track { box-shadow: none; }
    .scrap-page { aspect-ratio: 4 / 5.65; padding: 22px; border-width: 0; }
    .scrap-cover { grid-template-columns: 1fr; grid-template-rows: 1.15fr .85fr; gap: 14px; padding: 30px 24px; border-width: 8px; }
    .cover-photo-stack { width: 92%; height: 100%; min-height: 0; margin: 0 auto; }
    .stack-photo { padding: 6px 6px 24px; }
    .scrap-cover-copy { align-self: center; }
    .scrap-cover-copy h1 { font-size: clamp(2.7rem, 14vw, 4.3rem); }
    .scrap-photo { padding: 7px 7px 27px; }
    .scrap-photo figcaption { bottom: 7px; font-size: .7rem; }
    .piece-1 { top: 7%; left: 7%; width: 65%; height: 48%; }
    .piece-2 { top: 37%; right: 6%; width: 55%; height: 37%; }
    .piece-3 { left: 10%; right: auto; bottom: 6%; width: 58%; height: 30%; }
    .layout-1 .piece-1 { left: 12%; width: 75%; height: 66%; }
    .layout-2 .piece-1 { width: 57%; height: 39%; } .layout-2 .piece-2 { width: 60%; height: 48%; } .layout-2 .piece-3 { left: 8%; width: 56%; }
    .scrap-control { top: auto; bottom: 9px; width: 38px; height: 40px; color: var(--album-deep); background: white; transform: none; }
    .scrap-control.previous { left: calc(50% - 72px); } .scrap-control.next { right: calc(50% - 72px); }
    .scrap-progress { position: absolute; left: 50%; bottom: 20px; margin: 0; transform: translateX(-50%); }
}

/* Family journal: shared finishes for the library, editor and printed pages. */
:root { --ink: #233b39; --muted: #576c69; --red: #bf3859; --forest: #14776c; --forest-bright: #188575; --gold: #efc94c; --paper: #fffefb; }
.library-screen, .studio-screen { min-width: 0; background: #f3f9f6; }
.library-screen *, .studio-screen *, .scrapbook-screen *, .auth-screen * { letter-spacing: 0; }
.studio-header { min-height: 72px; padding-inline: max(22px, calc((100% - 1150px) / 2)); background: #fffefb; color: var(--ink); border-bottom: 1px solid #d9e5de; }
.studio-brand, .studio-header nav a { color: var(--ink); }
.studio-brand { font-size: 1.25rem; }
.wordmark-mark { color: #fff; background: var(--red); border: 0; border-radius: 4px; transform: rotate(-6deg); box-shadow: 3px 3px 0 #f0ca51; }
.studio-header nav a { display: inline-flex; align-items: center; min-height: 44px; }
.studio-header nav a:hover { color: var(--red); }
.library-main, .studio-main { max-width: 1200px; padding-top: 38px; }
.library-heading, .studio-welcome { align-items: center; margin-bottom: 32px; gap: 20px; }
.library-heading h1, .studio-welcome h1 { font-size: 2.8rem; line-height: 1.12; color: #244d44; margin: 8px 0 10px; }
.library-heading .kicker, .studio-welcome .kicker { color: #a93050; opacity: 1; text-transform: none; font-size: .9rem; }
.library-heading p:last-child, .studio-welcome p:last-child { font-size: .93rem; line-height: 1.6; }
.create-album-button, .primary-button, .secondary-button { border-radius: 6px; min-height: 48px; box-shadow: 0 3px 0 #00000012; }
.create-album-button { white-space: nowrap; }
.primary-button:hover, .create-album-button:hover { background: #a72d4b; }
button:disabled { cursor: wait; }
a:focus-visible, button:focus-visible, .theme-picker input:focus-visible + .theme-swatch { outline: 3px solid #176dad; outline-offset: 5px; }
.library-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.theme-heritage { --album-accent: #bf3859; --album-deep: #94263f; --album-paper: #fff6f8; --album-ink: #483039; background: var(--album-accent); }
.theme-meadow { --album-accent: #277e63; --album-deep: #185a46; --album-paper: #f6fbf1; --album-ink: #294239; background: var(--album-accent); }
.theme-sky { --album-accent: #277aa3; --album-deep: #195a7b; --album-paper: #f3faff; --album-ink: #284451; background: var(--album-accent); }
.theme-night { --album-accent: #995477; --album-deep: #733756; --album-paper: #fcf5fa; --album-ink: #493341; background: var(--album-accent); }
.library-album, .album-tile { border-radius: 4px 8px 8px 4px; box-shadow: 3px 4px 0 #fff, 4px 5px 0 #bdd0c5, 0 10px 18px #203b3910; }
.library-album { display: grid; grid-template-rows: 1fr auto; gap: 16px; aspect-ratio: auto; padding: 22px 18px 18px 24px; border: 0; border-left: 8px solid #00000019; }
.library-album::after, .album-tile-cover::after { content: ''; position: absolute; top: 0; left: 5px; bottom: 0; border-left: 1px solid #ffffff32; pointer-events: none; }
.library-album:hover, .library-album:focus-visible { transform: translateY(-4px); box-shadow: 3px 4px 0 #fff, 4px 5px 0 #bdd0c5, 0 14px 24px #203b3920; }
.library-cover-photo { position: relative; inset: auto; width: 100%; aspect-ratio: 1.15; padding: 7px 7px 19px; background: #fffefa; box-shadow: 0 4px 8px #00000020; transform: rotate(-3deg); }
.library-cover-photo::after, .scrap-photo::after { content: ''; position: absolute; left: 32%; top: -9px; width: 38%; height: 20px; background: #f5d663cc; transform: rotate(3deg); pointer-events: none; }
.library-album:nth-child(even) .library-cover-photo { transform: rotate(2deg); }
.library-album:nth-child(even) .library-cover-photo::after { background: #d6e7f0d9; transform: rotate(-5deg); }
.library-cover-copy { padding-top: 3px; min-height: 92px; }
.library-cover-copy p { font-size: .7rem; opacity: .88; }
.library-cover-copy h2 { font-size: 1.45rem; line-height: 1.18; overflow-wrap: anywhere; margin-bottom: 8px; }
.library-cover-copy span { opacity: .9; font-size: .73rem; }
.library-new-album { aspect-ratio: auto; min-height: 250px; border: 2px dashed #9cbdb0; border-radius: 6px; padding: 20px; color: #366b5c; background: #e8f4ec; }
.library-new-album span { border-radius: 50%; background: #f2d568; color: #574a18; width: 48px; height: 48px; }
.library-new-album strong { max-width: 15ch; line-height: 1.5; font-size: .95rem; }
.special-archive { margin-top: 36px; padding-top: 28px; border-top: 1px solid #d7e3d9; }
.special-archive > a { grid-template-columns: 110px 1fr auto; padding: 22px 26px; background: #fbe8ef; color: #68374d; border-left: 5px solid #bd3c63; }
.special-archive-photo { width: 105px; height: 90px; padding: 6px 6px 16px; box-shadow: 0 3px 7px #713f4d18; }
.special-archive p { color: #9d3051; text-transform: none; font-size: .78rem; }
.special-archive h2 { font-size: 1.5rem; line-height: 1.2; }
.special-archive span { color: #785362; line-height: 1.5; font-size: .88rem; }
.special-archive b { font-size: .8rem; }
.library-footer { background: #e1efe7; color: #426253; border-top: 1px solid #d1e3d7; font-family: inherit; }
.album-tile-cover { border: 0; border-left: 7px solid #00000019; border-radius: inherit; padding: 20px; }
.album-tile-cover h2 { font-size: 1.45rem; line-height: 1.18; overflow-wrap: anywhere; }
.album-tile-cover p { font-size: .7rem; }
.album-tile-cover img { box-shadow: 0 4px 9px #00000020; }
.album-start-tile { background: #e8f4ec; border: 2px dashed #9cbdb0; box-shadow: none; }
.special-archive-link { background: #fbe8ef; color: #68374d; border-color: #bd3c63; }
.special-archive-link small { color: #785362; line-height: 1.5; }
.album-editor-head { border: 0; border-left: 10px solid #00000018; min-height: 175px; box-shadow: none; padding: 28px; }
.album-editor-head h1 { font-size: 2.5rem; line-height: 1.16; overflow-wrap: anywhere; }
.album-editor-head .kicker { text-transform: none; opacity: .9; }
.album-details-form { padding: 24px 0; border: 0; border-bottom: 1px solid #d7e3d9; background: transparent; }
input[type='text'], input[type='password'], input[type='date'], input:not([type]) { border: 1px solid #adc5b9; border-radius: 5px; }
.photo-picker { min-height: 155px; border: 2px dashed #8ebaa6; background: #e9f5ec; border-radius: 7px; }
.photo-picker-icon { width: 44px; height: 44px; border-radius: 50%; background: #f2d568; color: #514716; }
.photo-picker strong { font-size: 1.22rem; }
.upload-ready { border-radius: 0 0 6px 6px; font-size: .9rem; }
.sorter-item { background: white; padding: 5px 5px 42px; box-shadow: 0 2px 5px #183b3910; border-radius: 3px; }
.sorter-actions button { background: #edf5f0; color: #315f4d; border-radius: 3px; }
.sorter-actions form:last-child button { color: #a93050; }
.theme-swatch { border-radius: 50%; box-shadow: none; }
.theme-swatch.heritage { background: #bf3859; } .theme-swatch.meadow { background: #277e63; } .theme-swatch.sky { background: #277aa3; } .theme-swatch.night { background: #995477; }
.create-album-dialog { border-radius: 8px; background: #fffefa; }
.scrapbook-screen { min-width: 0; background: #e3efe9; }
.scrapbook-header { background: #fffefa; color: #294b40; border-bottom: 1px solid #d1e3d7; }
.scrapbook-header a { display: flex; align-items: center; min-height: 44px; color: #294b40; }
.scrapbook-header a:last-child { justify-content: end; }
.scrapbook-shell { max-width: 1100px; }
.scrapbook-track { border-radius: 5px; box-shadow: 3px 4px 0 white, 4px 5px 0 #bccdc3, 0 14px 30px #264e411c; }
.scrap-page { border: 0; }
.scrap-page:not(.scrap-cover):not(.empty-scrap-page) { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 24px; padding: 38px; background-image: repeating-linear-gradient(0deg, transparent, transparent 27px, #32514408 27px, #32514408 28px); }
.scrap-page .scrap-photo { position: relative; top: auto; bottom: auto; left: auto; right: auto; width: 100%; height: 100%; min-height: 0; min-width: 0; box-shadow: 0 4px 10px #29463720; transform: rotate(-1.5deg); }
.scrap-page .piece-1 { grid-row: 1 / 3; }
.scrap-page .piece-2 { transform: rotate(2deg); }
.scrap-page .piece-3 { transform: rotate(-2deg); }
.scrap-photo img, .scrap-photo video { object-fit: contain; background: #f7f7f2; }
.scrap-photo::after { height: 17px; top: -7px; }
.scrap-photo:nth-of-type(even)::after { background: #b9dedad9; }
.scrap-cover { border: 0; border-left: 12px solid #00000017; }
.scrap-cover-copy h1 { font-size: 3.2rem; line-height: 1.12; overflow-wrap: anywhere; }
.scrap-cover-copy p { display: inline-block; background: #f3d568; color: #514016; padding: 7px 11px; transform: rotate(-2deg); }
.scrap-control { color: #315f4d; background: #fffefa; border: 1px solid #b8cdbf; border-radius: 6px; }
.scrap-progress { color: #315f4d; font-size: .82rem; }
.auth-screen { background: #e1efe7; }
.auth-panel { background: #fffefa; border: 0; border-top: 7px solid #bf3859; border-radius: 7px; box-shadow: 0 16px 45px #28573c15; }
.auth-panel h1 { font-size: 2.4rem; line-height: 1.12; }
@media (max-width: 980px) { .library-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) {
    .studio-header { min-height: 64px; padding-inline: 16px; }
    .studio-brand { font-size: 1.12rem; gap: 9px; }
    .studio-header nav { gap: 14px; }
    .library-main, .studio-main { padding: 26px 16px 48px; }
    .library-heading, .studio-welcome { align-items: stretch; gap: 19px; margin-bottom: 26px; }
    .library-heading h1, .studio-welcome h1 { font-size: 2.2rem; }
    .library-heading p:last-child, .studio-welcome p:last-child { font-size: .86rem; }
    .library-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px 14px; }
    .library-album { padding: 18px 12px 12px 14px; border-left-width: 6px; gap: 12px; }
    .library-cover-photo { inset: auto; padding: 5px 5px 14px; }
    .library-cover-copy { min-height: 84px; }
    .library-cover-copy h2 { font-size: 1.12rem; }
    .library-cover-copy p { font-size: .65rem; }
    .library-cover-copy span { font-size: .68rem; }
    .library-new-album { min-height: 220px; padding: 12px; }
    .library-new-album strong { font-size: .83rem; }
    .special-archive { margin-top: 28px; padding-top: 24px; }
    .special-archive > a { grid-template-columns: 76px minmax(0, 1fr); padding: 17px 14px; gap: 10px 14px; }
    .special-archive-photo { width: 76px; height: 83px; }
    .special-archive h2 { font-size: 1.18rem; }
    .special-archive span { font-size: .79rem; }
    .special-archive b { grid-column: 2; }
    .album-tile-cover { padding: 12px; }
    .album-tile-cover h2 { font-size: 1.12rem; }
    .album-editor-head { min-height: 145px; padding: 22px; }
    .album-editor-head h1 { font-size: 2rem; }
    .album-editor-head > div { min-width: 0; }
    .sorter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .sorter-item { padding-bottom: 48px; }
    .sorter-actions button { width: 40px; height: 40px; }
    .scrapbook-shell { padding: 18px 10px 68px; }
    .scrap-page { aspect-ratio: 4 / 6; }
    .scrap-page:not(.scrap-cover):not(.empty-scrap-page) { grid-template-columns: 1fr 1fr; grid-template-rows: 1.2fr 1fr; gap: 18px 12px; padding: 26px 20px 30px; }
    .scrap-page .piece-1 { grid-row: 1; grid-column: 1 / 3; }
    .scrap-page .piece-2, .scrap-page .piece-3 { grid-row: 2; }
    .scrap-cover { padding: 24px 20px; border-left-width: 8px; }
    .scrap-cover-copy h1 { font-size: 2.2rem; line-height: 1.14; }
    .scrap-cover-copy span { font-size: .88rem; }
    .scrap-progress { bottom: 23px; }
    .scrap-control { bottom: 10px; width: 44px; height: 44px; }
    .scrap-control.previous { left: calc(50% - 94px); } .scrap-control.next { right: calc(50% - 94px); }
}

.cover-settings { display: grid; grid-template-columns: 125px minmax(0, 1fr); gap: 24px; padding: 25px 0; border-bottom: 1px solid #d7e3d9; }
.cover-settings-preview { align-self: start; aspect-ratio: 1; padding: 7px 7px 18px; background: white; box-shadow: 0 3px 9px #284b4217; transform: rotate(-2deg); }
.cover-settings-preview img { width: 100%; height: 100%; object-fit: contain; }
.cover-settings h2 { margin: 0 0 15px; font: 700 1.4rem/1.2 Georgia, serif; }
.cover-settings form { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; }
.cover-settings form label { min-width: 0; flex: 1 1 220px; }
.cover-settings input[type='file'] { width: 100%; min-height: 44px; padding: 8px 0; font-size: .85rem; }
.cover-settings [data-cover-status] { width: 100%; margin: 0; color: #9b2c4a; font-size: .87rem; overflow-wrap: anywhere; }
.cover-family-button { display: flex; align-items: center; gap: 10px; padding: 7px 12px 7px 7px; margin-top: 14px; border: 1px solid #d9aebd; background: #fff7fa; border-radius: 6px; color: #74384f; font-weight: 700; cursor: pointer; }
.cover-family-button img { width: 46px; height: 46px; object-fit: contain; border-radius: 3px; }
.album-details-form select { width: 100%; min-height: 46px; border: 1px solid #adc5b9; padding: 10px; border-radius: 5px; background: white; color: var(--ink); font: inherit; }
.selected-cover-photo { z-index: 3; object-fit: contain; }
.special-archive-photo img { object-fit: contain; }
@media (max-width: 540px) { .cover-settings { grid-template-columns: 76px minmax(0, 1fr); gap: 15px; } .cover-settings form { align-items: stretch; } .cover-settings form > button { width: 100%; } }
.media-frame, .library-cover-photo > .media-frame { display: block; position: relative; width: 100%; height: 100%; min-width: 0; min-height: 0; overflow: hidden; background: transparent; }
.media-frame > img, .media-frame > video { position: absolute; top: 50%; left: 50%; right: auto; bottom: auto; width: 100%; height: 100%; max-width: none; max-height: none; padding: 0; border: 0; box-shadow: none; margin: 0; object-fit: contain; transform: translate(-50%, -50%); }
.album-tile-cover > .tile-cover-media { position: absolute; top: 24px; left: 24px; width: calc(100% - 48px); height: calc(58% - 24px); border: 7px solid white; background: white; transform: rotate(-2deg); }
.lightbox-media > .media-frame { width: 100%; height: 100%; }
.sorter-item { aspect-ratio: 4 / 5; padding-bottom: 98px; scroll-margin-top: 95px; }
.sorter-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.sorter-actions form { min-width: 0; }
.sorter-actions button { width: 100%; height: 42px; }
@media (max-width: 720px) { .album-tile-cover > .tile-cover-media { top: 14px; left: 14px; width: calc(100% - 28px); height: calc(57% - 14px); border-width: 5px; } }
@media (max-width: 360px) {
    .studio-header { padding-inline: 10px; }
    .studio-brand { font-size: 1rem; }
    .studio-header nav { gap: 8px; }
    .library-main, .studio-main { padding-inline: 12px; }
    .sorter-actions { gap: 2px; }
    .sorter-actions button { width: 100%; }
}
[data-sortable-album] .sorter-item, .sortable-fallback.sorter-item { padding-bottom: 51px; aspect-ratio: 4 / 5; }
[data-sortable-album] .media-frame { cursor: grab; -webkit-touch-callout: none; user-select: none; }
[data-sortable-album] .media-frame > img, [data-sortable-album] .media-frame > video { pointer-events: none; -webkit-user-drag: none; }
[data-sortable-album] .sorter-item:focus-visible { outline: 3px solid #14776c; outline-offset: 3px; }
.sorter-chosen { box-shadow: 0 8px 22px #254f4438; outline: 3px solid #14776c; }
.sorter-chosen .media-frame { cursor: grabbing; }
.sorter-ghost { opacity: .3; outline: 2px dashed #14776c; }
.order-feedback { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; min-height: 32px; margin-bottom: 10px; font-size: .85rem; color: #315f4d; }
.order-feedback [hidden] { display: none; }
.library-screen { background: #f5faf7; position: relative; isolation: isolate; min-height: 100svh; }
.library-screen::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: url('scrapbook-background-v17.png') repeat top center / 820px 820px; opacity: .42; }
.library-screen .library-heading { background: #f5faf7ed; margin-inline: -16px; padding: 16px; }
.library-screen .library-new-album { background-color: #f3faf5ed; }
.library-album, .album-tile:not(.album-start-tile) .album-tile-cover, .scrap-cover { background-color: var(--album-paper, #f6fbf1); background-image: url('album-cover-v17.png'); background-size: 100% 100%; background-blend-mode: multiply; color: var(--album-ink, #294239); border-left-color: var(--album-accent, #277e63); }
.library-album { padding: 30px 25px 42px 29px; border-left-width: 7px; }
.library-album .library-cover-copy { position: relative; z-index: 1; padding: 8px 8px 10px; margin-inline: -5px; background: #fffffff0; color: var(--album-ink); border-radius: 2px; }
.library-album .library-cover-copy h2, .library-album .library-cover-copy p, .library-album .library-cover-copy span { color: var(--album-ink); }
.album-tile:not(.album-start-tile) .album-tile-cover h2, .album-tile:not(.album-start-tile) .album-tile-cover p, .album-tile:not(.album-start-tile) .album-tile-cover span { color: var(--album-ink); }
.album-tile:not(.album-start-tile) .album-tile-cover > div { background: #fffffff0; padding: 8px; border-radius: 2px; }
.scrap-cover .scrap-cover-copy { color: var(--album-ink); }
@media (max-width: 720px) { .library-album { padding: 23px 14px 29px 17px; } .library-album .library-cover-copy { padding: 6px; } }
@media (max-width: 720px) { .library-screen::before { background-size: 570px 570px; opacity: .32; } }
.brand-install { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 24px; min-width: 0; }
.install-app { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 0 12px; border: 1px solid #d8b5c0; border-radius: 6px; background: #fff; color: #9b3151; font: 700 .8rem/1.2 system-ui,sans-serif; cursor: pointer; }
.install-app[hidden] { display: none; }
.studio-header:has(.brand-install) nav { margin-left: auto; }
.install-app span { font-size: 1.3rem; }
.family-login .remember-choice { display: flex; align-items: center; gap: 10px; font-weight: 400; line-height: 1.5; }
.family-login .remember-choice input { width: 19px; height: 19px; min-height: 19px; flex: 0 0 19px; margin: 0; accent-color: #bd365b; }
.family-login .remember-choice, .family-login .remember-warning { order: 1; }
.family-login .compact-form > button { order: 2; }
.remember-warning { font-size: .8rem; line-height: 1.5; color: #794659; margin: 0; }
[data-install-help] { line-height: 1.7; overflow-wrap: anywhere; }
@media (max-width: 720px) { .brand-install { gap: 12px; } .brand-install .install-app { min-height: 40px; font-size: .73rem; padding: 0 9px; } .studio-header:has(.brand-install) { flex-wrap: wrap; } }
.sorter-actions.caption-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.caption-dialog { width: min(480px, calc(100% - 32px)); max-height: calc(100svh - 32px); padding: 24px; border: 0; border-top: 5px solid #bd365b; border-radius: 7px; background: #f5faf7; color: #233b39; }
.caption-dialog::backdrop { background: #193b3280; }
.caption-dialog-heading { display: flex; align-items: center; gap: 12px; justify-content: space-between; margin-bottom: 20px; }
.caption-dialog-heading h2 { margin: 0; font: 700 1.4rem/1.2 Georgia,serif; }
.caption-dialog-heading button { flex: 0 0 44px; height: 44px; border: 0; background: transparent; color: #794659; font-size: 1.8rem; cursor: pointer; }
.caption-dialog textarea { display: block; box-sizing: border-box; width: 100%; margin-top: 8px; resize: vertical; padding: 12px; font: 16px/1.5 system-ui,sans-serif; color: #233b39; border: 1px solid #a8c3b8; border-radius: 5px; }
.caption-dialog-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.caption-dialog-actions button { flex: 1 1 150px; }
.scrap-photo figcaption { overflow-wrap: anywhere; }
.album-sharing { padding: 23px 0; border-bottom: 1px solid #d7e3d9; }
.sharing-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; margin-bottom: 16px; }
.sharing-heading h2 { margin: 0; font: 700 1.4rem/1.2 Georgia,serif; }
.sharing-state { font-size: .77rem; color: #14776c; font-weight: 700; }
.album-sharing > label { display: block; font-size: .8rem; margin-bottom: 7px; }
.album-sharing > input { width: 100%; min-width: 0; min-height: 46px; padding: 10px 12px; border: 1px solid #a7c3b6; border-radius: 5px; background: #fff; color: #233b39; font: .85rem/1.4 system-ui,sans-serif; }
.sharing-actions { display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; margin-top: 12px; }
.sharing-preview, .sharing-disable { display: inline-flex; align-items: center; min-height: 44px; font-size: .82rem; }
.sharing-preview { color: #14776c; }
.sharing-disable { background: transparent; border: 0; color: #aa3151; text-decoration: underline; cursor: pointer; padding: 0; }
.sharing-privacy { margin: 15px 0 0; max-width: 660px; font-size: .8rem; line-height: 1.6; color: #576c69; }
.sharing-feedback { margin: 8px 0 0; color: #14776c; font-size: .85rem; }
.sharing-feedback:empty { display: none; }
.family-login-screen { display: grid; min-height: 100svh; padding: 28px 20px 36px; background: #f5faf7; color: #233b39; border-top: 5px solid #bf3859; }
.family-login { width: min(100%, 800px); text-align: center; margin: auto; }
.login-family { display: block; width: min(100%, 720px); height: auto; max-height: 365px; object-fit: contain; margin: 0 auto 22px; }
.family-login .kicker { margin: 0 0 10px; color: #aa3656; font-size: .72rem; }
.family-login h1 { margin: 0 auto; max-width: 600px; font: 700 2.6rem/1.12 Georgia,serif; overflow-wrap: anywhere; }
.family-login .compact-form { max-width: 380px; margin-top: 26px; gap: 14px; }
.family-login .stack-form label { color: #365c51; font-size: .83rem; }
.family-login input { min-height: 52px; background: #fff; border: 1px solid #a8c3b8; border-radius: 6px; font-size: 16px; }
.family-login input:focus-visible { outline: 3px solid #b9dacb; outline-offset: 2px; border-color: #14776c; }
.family-login .primary-button { min-height: 52px; border-radius: 6px; background: #bd365b; box-shadow: 0 4px 0 #9d2c4b; }
.family-login .primary-button:hover { background: #a92e4e; }
.family-login .form-error, .family-login .form-success { max-width: 380px; margin: 18px auto 0; }
@media (max-width: 540px) {
    .family-login-screen { padding: 30px 18px; }
    .login-family { margin-bottom: 26px; }
    .family-login h1 { max-width: 310px; font-size: 2rem; }
    .family-login .compact-form { margin-top: 24px; }
}
@media (max-width: 540px) { .sharing-actions > button { flex: 1 1 130px; } }
.studio-header { min-height: 98px; padding-block: 17px; gap: 18px; background: #fff3f5; border-bottom: 0; box-shadow: 0 3px 0 #d6e9e2; }
.studio-header::after { content: ''; position: absolute; bottom: -3px; left: 0; width: 28%; height: 3px; background: #c43f64; box-shadow: 28vw 0 #f1ca59; pointer-events: none; }
.studio-brand { gap: 16px; min-width: 0; }
.journal-mark { position: relative; display: grid; place-items: center; flex: 0 0 46px; width: 46px; height: 57px; padding-left: 5px; background: #bd365b; color: #fff7ec; border-left: 6px solid #982a48; border-radius: 3px 7px 7px 3px; box-shadow: 3px 4px 0 #fff9ef, 4px 5px 0 #d0a4ae, 7px 8px 0 #ebc653; transform: rotate(-8deg); font: 25px/1 Georgia, serif; }
.journal-mark::after { content: ''; position: absolute; right: 7px; top: -3px; width: 7px; height: 12px; background: #72b5a1; clip-path: polygon(0 0,100% 0,100% 100%,50% 76%,0 100%); }
.journal-wordmark { display: grid; gap: 5px; }
.journal-wordmark small { font: 700 .68rem/1.3 system-ui,sans-serif; color: #9a4c60; letter-spacing: 0; }
.journal-wordmark strong { font: 700 1.85rem/1 Georgia,serif; color: #343d39; white-space: nowrap; }
.journal-wordmark strong span { color: #c43f64; }
.studio-header nav { gap: 12px; flex-shrink: 0; }
.studio-header nav a { justify-content: center; padding: 0 16px; border: 1px solid #dfc7cd; border-radius: 6px; color: #794659; background: #ffffff94; transition: background .15s, border-color .15s; }
.studio-header nav a:last-child { width: 44px; padding: 0; font-size: 1.3rem; background: transparent; border-color: transparent; }
.studio-header nav a:hover { background: #fff; border-color: #c43f64; color: #a32e4e; }
.studio-header a:focus-visible { outline: 3px solid #14776c; outline-offset: 5px; }
@media (max-width: 720px) {
    .studio-header { min-height: 84px; padding: 13px 16px; gap: 8px; }
    .studio-brand { gap: 12px; }
    .journal-mark { flex-basis: 35px; width: 35px; height: 45px; border-left-width: 5px; font-size: 20px; box-shadow: 2px 3px 0 #fff9ef,3px 4px 0 #d0a4ae,5px 6px 0 #ebc653; }
    .journal-wordmark { gap: 4px; }
    .journal-wordmark small { font-size: .6rem; }
    .journal-wordmark strong { font-size: 1.4rem; }
    .studio-header nav { gap: 2px; }
    .studio-header nav a { padding-inline: 10px; font-size: .75rem; }
}
@media (max-width: 360px) {
    .studio-header { padding-inline: 10px; }
    .studio-brand { gap: 10px; }
    .journal-wordmark strong { font-size: 1.2rem; }
    .journal-wordmark small { font-size: .56rem; }
    .studio-header nav a { padding-inline: 7px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* A small illustrated prologue, with the album library always directly below it. */
.library-screen::before { opacity: .13; }
.family-scene { position: relative; isolation: isolate; height: 320px; overflow: hidden; background: #edf6f4; border-bottom: 1px solid #bed4c2; }
.family-scene-tools { position: absolute; top: 13px; right: max(24px, calc((100% - 1100px) / 2)); z-index: 5; display: flex; align-items: center; gap: 8px; }
.family-scene-tools > a, .family-scene-tools > button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin: 0; padding: 9px 16px; border: 1px solid #ffffff; border-radius: 5px; background: #fffef5ed; box-shadow: 0 2px 0 #587b6825; color: #82364e; text-decoration: none; font-size: .82rem; font-weight: 750; cursor: pointer; }
.family-scene-tools > .family-lock { width: 44px; padding: 0; font-size: 1.25rem; }
.family-scene-tools > a:hover, .family-scene-tools > button:hover { background: #fff; border-color: #b33958; }
.family-scene-tools > a:focus-visible, .family-scene-tools > button:focus-visible { outline: 3px solid #b33958; outline-offset: 3px; }
.family-scene-landscape { position: absolute; inset: -8px; z-index: -1; background: url('family-landscape-v18.png') center 56% / cover no-repeat; transform: translateX(var(--scene-x, 0px)) scale(1.025); transition: transform 1.8s ease-out; }
.family-scene-inner { position: relative; width: min(1100px, calc(100% - 64px)); height: 100%; margin: auto; }
.family-scene-title { position: absolute; left: 1%; top: 78px; z-index: 2; color: #25483e; }
.family-scene-title > p { margin: 0 0 10px; color: #9d3656; font-size: .85rem; font-weight: 800; }
.family-scene-title h1 { font: bold 54px/1.05 Georgia, serif; margin: 0 0 13px; letter-spacing: 0; }
.family-scene-title h1 span { color: #b33958; }
.family-scene-title > span { display: inline-block; padding: 5px 8px; margin-left: -8px; background: #fffffff0; font-size: .94rem; }
.family-scene-portrait { position: absolute; right: 1%; bottom: 13px; width: 49%; height: auto; max-height: 246px; object-fit: contain; object-position: bottom; filter: drop-shadow(2px 5px 0 #fffc); transform: translateX(calc(var(--scene-x, 0px) * -1)); transition: transform 1.2s ease-out; animation: family-arrives 900ms ease-out both; }
.family-scene-animation { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.family-scene-pause { position: absolute; bottom: 10px; right: 12px; width: 44px; height: 44px; padding: 0; border: 1px solid #789a88; border-radius: 50%; color: #284d42; background: #fffffff0; font: bold 16px Georgia, serif; cursor: pointer; }
.family-scene-pause:focus-visible { outline: 3px solid #b33958; outline-offset: 3px; }
.scene-paused *, .scene-paused *::before { animation-play-state: paused !important; }
.scene-paused .family-scene-portrait { animation: none; }
.library-screen .library-main { padding-top: 27px; }
.library-screen .library-heading { padding: 0; margin: 0 0 26px; background: none; }
.library-heading h2 { margin: 0 0 7px; font: bold 25px/1.2 Georgia, serif; color: #25483e; }
.library-grid { perspective: 1400px; }
.library-album { transform-origin: 5% 50%; transition: transform .45s ease, box-shadow .45s ease; box-shadow: 2px 2px 0 #fffdf6, 4px 4px 0 #b6b9a9, 6px 6px 0 #fffdf6, 7px 7px 0 #bdc6b7, 9px 13px 18px #294d3620; }
.library-album::before { content: ''; position: absolute; left: 9px; top: 7px; bottom: 8px; border-left: 1px dashed #789d8970; pointer-events: none; }
.library-album .library-cover-photo { transition: transform .45s ease; box-shadow: 1px 5px 8px #27382920; }
.library-album .library-cover-copy { background: #fffef8; border: 1px solid #92a48b55; border-radius: 2px 2px 12px 2px; box-shadow: 1px 3px 0 #34583910; }
.library-album .library-cover-copy h2 { font-style: italic; }
@media (hover: hover) and (pointer: fine) {
    .library-album:hover, .library-album:focus-visible { transform: rotateY(-9deg) rotateZ(-1deg) translateY(-5px); box-shadow: 5px 5px 0 #fffdf6, 7px 7px 0 #b6b9a9, 9px 9px 0 #fffdf6, 10px 10px 0 #bdc6b7, 15px 19px 24px #294d3626; }
    .library-album:hover .library-cover-photo { transform: rotate(0deg) translateY(-3px); }
}
@keyframes family-arrives { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }
@media (max-width: 720px) {
    .family-scene { height: 320px; }
    .family-scene-tools { top: 10px; right: 12px; gap: 6px; }
    .family-scene-tools > a, .family-scene-tools > button { font-size: .75rem; padding-inline: 12px; }
    .family-scene-landscape { background-size: auto 100%; background-position: 49% center; }
    .family-scene-inner { width: calc(100% - 32px); }
    .family-scene-title { top: 75px; left: 0; }
    .family-scene-title > p { font-size: .72rem; margin-bottom: 7px; }
    .family-scene-title h1 { font-size: 36px; margin-bottom: 8px; }
    .family-scene-title > span { font-size: .78rem; }
    .family-scene-portrait { width: 66%; max-height: 136px; right: 3%; bottom: 6px; }
    .library-screen .library-heading { flex-direction: row; align-items: center; gap: 14px; margin-bottom: 22px; }
    .library-heading h2 { font-size: 20px; }
    .library-screen .library-heading p { font-size: .78rem; }
    .library-screen .library-heading .create-album-button { width: auto; padding: 10px 12px; font-size: .75rem; min-height: 44px; }
}
@media (max-width: 360px) {
    .library-screen .library-heading { flex-wrap: wrap; }
    .family-scene-title h1 { font-size: 32px; }
}

/* Contemporary photo books: one photograph, coloured cloth and a quiet paper edge. */
.library-album { background: var(--album-accent); border: 0; border-left: 9px solid var(--album-deep); border-radius: 3px 7px 7px 3px; padding: 13px 13px 20px 15px; gap: 18px; grid-template-rows: auto 1fr; box-shadow: 2px 2px 0 #fff, 4px 4px 0 #cbd4ce, 6px 6px 0 #fff, 7px 7px 0 #c4cfc8, 9px 15px 20px #23463d1a; }
.library-album::before { left: 4px; top: 0; bottom: 0; border-left: 1px solid #ffffff26; }
.library-album::after { left: -7px; top: 18px; bottom: 18px; border-left: 1px solid #ffffff24; }
.library-album .library-cover-photo, .library-album:nth-child(even) .library-cover-photo { padding: 0; aspect-ratio: 1; border: 3px solid #fff9; border-radius: 3px; overflow: hidden; transform: none; background: #fff; box-shadow: 0 3px 7px #173d3420; }
.library-album .library-cover-photo::after { content: none; }
.library-album .library-cover-photo img, .library-album .library-cover-photo video { border-radius: 0; }
.library-album .library-cover-copy { padding: 0 3px; margin: 0; min-height: 91px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.library-album .library-cover-copy h2, .library-album .library-cover-copy p, .library-album .library-cover-copy span { color: #fff; letter-spacing: 0; }
.library-album .library-cover-copy h2 { font: 700 25px/1.14 Georgia, serif; margin: 7px 0 12px; }
.library-album .library-cover-copy p { font-size: .73rem; font-weight: 500; opacity: .9; margin: 0; text-transform: none; }
.library-album .library-cover-copy span { font-size: .74rem; opacity: .9; }
.library-screen .library-new-album { min-height: 0; border: 1px dashed #739589; background: #ffffff7a; box-shadow: none; }
.library-new-album span { background: #e7efe9; border: 1px solid #b6cbbf; color: #386654; }
.album-tile:not(.album-start-tile) .album-tile-cover { background: var(--album-accent); border-left-color: var(--album-deep); }
.album-tile:not(.album-start-tile) .album-tile-cover > div { background: transparent; border: 0; padding: 0; }
.album-tile:not(.album-start-tile) .album-tile-cover h2, .album-tile:not(.album-start-tile) .album-tile-cover p, .album-tile:not(.album-start-tile) .album-tile-cover span { color: #fff; }
.library-album { isolation: isolate; border-left: 0; padding: 28px 24px 58px 32px; gap: 17px; }
.library-album.theme-heritage { --book-hue: 155deg; }
.library-album.theme-meadow { --book-hue: -32deg; }
.library-album.theme-night { --book-hue: 105deg; }
.library-album::before { inset: 0; border: 0; border-radius: inherit; background: var(--book-art, url('drawn-book-v20.png')) center / 100% 100% no-repeat; filter: hue-rotate(var(--book-hue, 0deg)); z-index: -1; }
.library-album::after { display: none; }
.library-album .library-cover-photo, .library-album:nth-child(even) .library-cover-photo { border: 5px solid #fffdf4; border-bottom-width: 10px; border-radius: 1px; transform: rotate(-1.5deg); box-shadow: 2px 4px 7px #082d3840; }
.library-album:nth-child(even) .library-cover-photo { transform: rotate(1.2deg); }
.library-album .library-cover-copy { padding: 0 1px; }
.library-album .library-cover-copy h2 { font-size: 24px; }
.cover-style-seaside { --book-art: url('book-seaside-v21.png'); }
.cover-style-party { --book-art: url('book-party-v21.png'); }
.library-album.cover-style-seaside::before, .library-album.cover-style-party::before { filter: none; }
.library-album.cover-style-party .library-cover-copy { background: #bd304f; padding: 5px 6px; margin: -5px -6px; }
.library-album.cover-style-seaside .library-cover-copy { background: #103d5c; padding: 5px 6px; margin: -5px -6px; }
.album-tile.cover-style-seaside .album-tile-cover, .album-tile.cover-style-party .album-tile-cover, .scrap-cover.cover-style-seaside, .scrap-cover.cover-style-party { background: var(--book-art) center / 100% 100%; }
.scrap-cover.cover-style-seaside .scrap-cover-copy, .scrap-cover.cover-style-party .scrap-cover-copy { color: white; }
.library-screen { background: #f0f5ef; }
.library-screen::before { content: none; }
.library-screen .library-heading { justify-content: flex-end; margin-bottom: 20px; }
.library-screen .library-heading:empty { display: none; }
.cover-style-picker { display: grid; grid-template-columns: repeat(3, minmax(0, 136px)); gap: 12px; border: 0; margin: 0; padding: 10px 0; min-width: 0; }
.cover-style-picker legend { font-weight: 700; font-size: .88rem; margin-bottom: 8px; }
.cover-style-picker label { display: grid; position: relative; gap: 8px; min-width: 0; cursor: pointer; text-align: center; }
.cover-style-picker input { position: absolute; top: 9px; left: 9px; width: 18px; height: 18px; z-index: 1; accent-color: #b53a5a; }
.cover-style-thumbnail { display: block; width: 100%; aspect-ratio: 4/5; max-height: 170px; background: var(--book-art, url('drawn-book-v20.png')) center / 100% 100%; border-radius: 3px 6px 6px 3px; outline: 2px solid transparent; outline-offset: 3px; }
.cover-style-picker input:checked + span { outline-color: #b53a5a; }
.cover-style-picker input:focus-visible + span { outline: 3px solid #205e79; }
.cover-style-picker strong { font-size: .8rem; color: #294b40; overflow-wrap: anywhere; }
.cover-style-zoo { --book-art: url('book-zoo-v22.png'); --book-label: #124638; }
.cover-style-mountains { --book-art: url('book-mountains-v22.png'); --book-label: #124254; }
.cover-style-city { --book-art: url('book-city-v22.png'); --book-label: #733c4d; }
.cover-style-winter { --book-art: url('book-winter-v22.png'); --book-label: #830e17; }
.cover-style-camping { --book-art: url('book-camping-v22.png'); --book-label: #123d3d; }
.cover-style-together { --book-art: url('book-together-v22.png'); --book-label: #8b5054; }
.library-album.cover-style-winter::before, .library-album.cover-style-camping::before, .library-album.cover-style-together::before { filter: none; }
.album-tile.cover-style-winter .album-tile-cover, .album-tile.cover-style-camping .album-tile-cover, .album-tile.cover-style-together .album-tile-cover, .scrap-cover.cover-style-winter, .scrap-cover.cover-style-camping, .scrap-cover.cover-style-together { background: var(--book-art) center / 100% 100%; }
.library-album.cover-style-winter .library-cover-copy, .library-album.cover-style-camping .library-cover-copy, .library-album.cover-style-together .library-cover-copy { background: var(--book-label); padding: 5px 6px; margin: -5px -6px; }
.library-album.cover-style-zoo::before, .library-album.cover-style-mountains::before, .library-album.cover-style-city::before { filter: none; }
.album-tile.cover-style-zoo .album-tile-cover, .album-tile.cover-style-mountains .album-tile-cover, .album-tile.cover-style-city .album-tile-cover, .scrap-cover.cover-style-zoo, .scrap-cover.cover-style-mountains, .scrap-cover.cover-style-city { background: var(--book-art) center / 100% 100%; }
.scrap-cover[class*='cover-style-'] .scrap-cover-copy { position: relative; color: #fff; background: var(--book-label, #183b42); padding: 14px; }
.library-grid { grid-auto-rows: 1fr; }
.library-album { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; justify-content: stretch; align-content: start; padding-bottom: 88px; }
.library-album .library-cover-photo { width: 100%; min-width: 0; height: auto; aspect-ratio: 1; box-sizing: border-box; align-self: start; }
.library-album .library-cover-photo > .media-frame { display: block; position: absolute; inset: 0; width: 100%; height: 100%; min-width: 0; min-height: 0; padding: 0; background: transparent; }
.library-album .library-cover-photo > .media-frame > img, .library-album .library-cover-photo > .media-frame > video { object-fit: cover; }
.library-album .library-cover-copy { min-width: 0; align-self: start; }
.library-album .library-cover-copy h2 { min-height: 3.42em; overflow-wrap: anywhere; }
.library-album.cover-style-zoo .library-cover-copy, .library-album.cover-style-mountains .library-cover-copy, .library-album.cover-style-city .library-cover-copy { background: var(--book-label); padding: 5px 6px; margin: -5px -6px; }
@media (max-width: 720px) { .library-album { padding-bottom: 66px; } }
.family-scene { height: 368px; }
.family-scene-portrait { bottom: 60px; }
.scene-create-album { position: absolute; z-index: 3; bottom: 10px; right: max(70px, calc((100% - 1100px) / 2)); display: inline-flex; gap: 8px; align-items: center; min-height: 44px; padding: 10px 17px; border: 1px solid #fff; border-radius: 5px; background: #fffef5f5; color: #82364e; font-size: .82rem; font-weight: 750; text-decoration: none; box-shadow: 0 2px 0 #587b6825; }
.scene-create-album:hover { background: white; border-color: #b33958; }
.scene-create-album:focus-visible { outline: 3px solid #b33958; outline-offset: 3px; }
.album-tile:not(.album-start-tile) .album-tile-cover { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 18px; aspect-ratio: auto; height: 100%; padding: 20px 18px 72px 24px; }
.album-tile-cover > .tile-cover-media { position: relative; inset: auto; width: 100%; height: auto; aspect-ratio: 1; box-sizing: border-box; align-self: start; }
.album-tile-cover > .tile-cover-media > img { object-fit: cover; }
.album-tile:not(.album-start-tile) .album-tile-cover > div { align-self: start; background: #fffdf4; padding: 11px 12px; border-radius: 2px; }
.album-tile:not(.album-start-tile) .album-tile-cover > div h2, .album-tile:not(.album-start-tile) .album-tile-cover > div p, .album-tile:not(.album-start-tile) .album-tile-cover > div span { color: #183d34; opacity: 1; }
.album-tile:not(.album-start-tile) .album-tile-cover h2 { font-size: 24px; line-height: 1.15; font-weight: 800; }
.album-sorter > summary { cursor: pointer; padding: 18px 0; border-block: 1px solid #bed1c5; list-style: none; }
.album-sorter > summary::before { content: '+'; font-size: 26px; font-weight: 700; margin-right: 12px; }
.album-sorter[open] > summary::before { content: '−'; }
.album-sorter > summary h2 { margin-right: auto; }
.album-sorter > summary:focus-visible { outline: 3px solid #b33958; }
.admin-video-start { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 76px; height: 76px; border: 1px solid #b4cbbf; border-radius: 6px; background: #e0ece7; color: #204b40; font-size: 34px; cursor: pointer; }
.media-frame > video[data-admin-video]:not([src]) { visibility: hidden; }
.admin-video-start[hidden] { display: none; }
.admin-video-start span { font-size: 13px; font-weight: 700; }
[data-sortable-album] .media-frame > video[controls] { pointer-events: auto; }
@media (max-width: 720px) {
 .album-tile:not(.album-start-tile) .album-tile-cover { padding: 14px 12px 55px 18px; gap: 14px; }
 .album-tile:not(.album-start-tile) .album-tile-cover h2 { font-size: 19px; }
}
@media (max-width: 720px) {
    .library-album { border: 0; padding: 22px 13px 43px 21px; gap: 13px; }
    .library-album .library-cover-photo, .library-album:nth-child(even) .library-cover-photo { border-width: 3px; border-bottom-width: 7px; }
    .library-album .library-cover-copy h2 { font-size: 19px; }
}
@media (hover: hover) and (pointer: fine) {
    .library-album:hover .library-cover-photo { transform: translateY(-2px); }
}
@media (max-width: 720px) {
    .library-album { border: 0; padding: 18px 12px 76px 18px; gap: 13px; }
    .library-album .library-cover-copy { padding: 0 1px; min-height: 83px; }
    .library-album .library-cover-copy h2 { font-size: 19px; line-height: 1.17; margin: 6px 0 10px; }
    .library-album .library-cover-copy p, .library-album .library-cover-copy span { font-size: .66rem; }
}

