@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&display=swap');
*{box-sizing:border-box}body{margin:0;min-height:100vh;background:#1c1713;color:#ead6b7;font-family:Cinzel,Georgia,serif}body.death{background:#191420;color:#e1c8ee}header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:22px 5vw;border-bottom:1px solid #a48b6b66}a{color:inherit;text-decoration:none}header span{letter-spacing:.13em;text-align:center;font-size:13px}button{font:inherit;color:inherit;background:transparent;border:1px solid #b7a18b66;padding:9px;cursor:pointer}button.active{background:#ffffff20}main{max-width:740px;margin:15vh auto 0;text-align:center;padding:0 24px}.symbol{font-size:40px}h1{font-weight:500;font-size:clamp(32px,6vw,64px)}p{line-height:1.8;font-size:17px;opacity:.8}main a{display:inline-block;border:1px solid currentColor;padding:12px 24px;margin-top:30px}@media(max-width:650px){header{flex-wrap:wrap;justify-content:center}}
/* 1.1 — samostatne stranky smrti */
body.death{background:#101622;color:#dbe5f6}
body.death header{border-bottom-color:#7185b766}
body.death button{border-color:#7185b777}

/* 1.2.11: hudebni knihovna */
main.music-main{max-width:1160px;margin:5vh auto 7vh}#music-panel{margin-top:30px;text-align:left}.music-layout{display:grid;grid-template-columns:minmax(210px,1fr) minmax(0,2fr);gap:22px}.music-list,.music-detail{border:1px solid #a48b6b77;background:#ffffff08;border-radius:12px;padding:22px;min-width:0}.music-layout h2{font-size:21px;font-weight:500;margin:0 0 22px}.music-detail h3{font-size:17px;font-weight:500;margin:24px 0 12px}.song-choice{display:block;width:100%;text-align:left;margin:8px 0;padding:14px;border-radius:7px}.song-choice[aria-pressed=true]{background:#e9d6b521;border-color:#e9d6b5}#song-player{display:block;width:100%;max-width:100%;margin:15px 0}.lyrics{white-space:pre-wrap;font:16px/1.8 Georgia,serif;min-height:140px;opacity:.88}body.death .music-list,body.death .music-detail{border-color:#7185b777}body.death .song-choice[aria-pressed=true]{background:#7185b533}@media(max-width:700px){.music-layout{grid-template-columns:1fr}}
/* 1.2.12 – vlastní pozadí sekcí písní, zrcadlové uspořádání a sjednocené písmo */

html,body,button,a,input,select,h1,h2,h3,.lyrics{font-family:'Cinzel',Georgia,serif!important}
body.music-page{background:#17120d url('assets/images/music_life_background.webp') center center / cover fixed no-repeat;color:#f6e6c7}
body.music-page.death{background:#101522 url('assets/images/music_death_background.webp') center center / cover fixed no-repeat;color:#e3dcf5}
body.music-page::before{content:'';position:fixed;inset:0;pointer-events:none;background:linear-gradient(90deg,rgba(16,10,4,.84),rgba(16,10,4,.50));z-index:0}
body.music-page.death::before{background:linear-gradient(270deg,rgba(7,10,23,.88),rgba(7,10,23,.48))}
body.music-page header,body.music-page main{position:relative;z-index:1}
body.music-page header{background:#100d11bc;backdrop-filter:blur(8px)}
body.music-page .music-list,body.music-page .music-detail{background:rgba(14,11,12,.86);backdrop-filter:blur(12px);border-color:#c69d62}
body.music-page.death .music-list,body.music-page.death .music-detail{background:rgba(10,12,27,.88);border-color:#8b80bd}
body.music-page.death .music-layout{grid-template-columns:minmax(0,2fr) minmax(210px,1fr)}
body.music-page.death .music-list{grid-column:2;grid-row:1}
body.music-page.death .music-detail{grid-column:1;grid-row:1}
.music-song-art{height:clamp(130px,23vw,290px);display:flex;align-items:center;justify-content:center;border:1px dashed currentColor;border-radius:8px;margin:0 0 22px;opacity:.7;text-align:center;padding:12px}
.music-song-art img{width:100%;height:100%;object-fit:contain}
@media(max-width:700px){body.music-page.death .music-layout{grid-template-columns:1fr}body.music-page.death .music-list,body.music-page.death .music-detail{grid-column:auto;grid-row:auto}body.music-page{background-attachment:scroll}}

/* 1.2.13: jednotny font a prehledne texty */
html body,html body *,html body button{font-family:"Cinzel",Georgia,serif!important}
.music-detail .lyrics{white-space:pre-wrap;line-height:1.85;overflow-wrap:anywhere}

/* 1.2.14: barevne ladeni prehravace a ilustrace skladeb */
body.music-page{--player-accent:#d9ad63;--player-bg:#251b10;--player-border:#b99050}
body.music-page.death{--player-accent:#91b9d9;--player-bg:#111f30;--player-border:#6c9cc5}
body.music-page .song-choice{color:var(--player-accent);border-color:var(--player-border)}
body.music-page .song-choice[aria-pressed=true]{background:var(--player-bg);border-color:var(--player-accent);box-shadow:0 0 12px color-mix(in srgb,var(--player-accent) 28%,transparent)}
body.music-page .music-song-art{opacity:1;padding:0;overflow:hidden;border:1px solid var(--player-border);height:auto;aspect-ratio:16/9}
body.music-page .music-song-art img{object-fit:cover;width:100%;height:100%}
body.music-page #song-player{accent-color:var(--player-accent);border:1px solid var(--player-border);border-radius:30px;background:var(--player-bg);padding:4px;color-scheme:dark}
body.music-page #song-player::-webkit-media-controls-panel{background-color:var(--player-accent)}
body.music-page #song-title,body.music-page #lyrics-heading{color:var(--player-accent)}

/* 1.2.16: pevná hudební obrazovka, oddělené posuvníky */
body.music-page{height:100dvh;min-height:0;overflow:hidden;display:flex;flex-direction:column}
body.music-page header{flex:0 0 auto;padding-top:12px;padding-bottom:12px}
body.music-page main.music-main{flex:1 1 auto;min-height:0;width:100%;margin:0 auto;padding:10px 24px 16px;display:flex;flex-direction:column;overflow:hidden}
body.music-page main.music-main>.symbol{font-size:19px;line-height:1.1}
body.music-page main.music-main>h1{font-size:clamp(22px,3.5vw,38px);margin:4px 0}
body.music-page main.music-main>p{display:none}
body.music-page #music-panel{flex:1 1 auto;min-height:0;margin-top:8px}
body.music-page .music-layout{height:100%;min-height:0}
body.music-page .music-list,body.music-page .music-detail{min-height:0;overflow:hidden;display:flex;flex-direction:column;padding:16px}
body.music-page .music-list h2{flex:none;margin-bottom:8px}
body.music-page #songs{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding-right:6px;scrollbar-width:thin;scrollbar-color:var(--player-accent) transparent}
body.music-page .music-detail .music-song-art{flex:0 1 auto;min-height:70px;max-height:29%;aspect-ratio:auto;margin-bottom:8px}
body.music-page .music-detail #song-title{flex:none;font-size:clamp(16px,2vw,21px);margin:4px 0}
body.music-page .music-detail #song-player{flex:none;margin:7px 0}
body.music-page .music-detail #lyrics-heading{flex:none;margin:7px 0}
body.music-page .music-detail .lyrics{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--player-accent) transparent;padding-right:8px}
body.music-page main.music-main>#chronicle{flex:none;margin-top:8px;padding:6px 14px;font-size:12px}
body.music-page .song-choice{display:flex;justify-content:space-between;align-items:center;gap:10px}
body.music-page .song-duration{white-space:nowrap;opacity:.75;font-variant-numeric:tabular-nums;font-size:.84em}
@media(max-width:700px){body.music-page .music-layout,body.music-page.death .music-layout{grid-template-columns:1fr;grid-template-rows:minmax(100px,32%) minmax(0,1fr);gap:9px}body.music-page.death .music-list{grid-column:1;grid-row:1}body.music-page.death .music-detail{grid-column:1;grid-row:2}body.music-page .music-list,body.music-page .music-detail{padding:10px}body.music-page .music-song-art{display:none}body.music-page header{padding:7px 12px}body.music-page main.music-main{padding:7px 12px 10px}body.music-page .music-layout h2{font-size:16px}body.music-page .song-choice{padding:7px;margin:3px 0}body.music-page .lyrics{font-size:13px;line-height:1.6}}

/* 1.2.22 — sdílené pozadí hudby pro galerii a postavy; kroniky beze změn */
body.gallery-page{background:#17120d url('assets/images/music_life_background.webp') center center / cover fixed no-repeat;color:#f6e6c7}
body.gallery-page.death{background:#101522 url('assets/images/music_death_background.webp') center center / cover fixed no-repeat;color:#e3dcf5}
body.gallery-page::before{content:'';position:fixed;inset:0;z-index:0;pointer-events:none;background:linear-gradient(90deg,rgba(16,10,4,.84),rgba(16,10,4,.50))}
body.gallery-page.death::before{background:linear-gradient(270deg,rgba(7,10,23,.88),rgba(7,10,23,.48))}
body.gallery-page header,body.gallery-page main{position:relative;z-index:1}
body.gallery-page header{background:#100d11bc;backdrop-filter:blur(8px)}
@media(max-width:700px){body.gallery-page{background-attachment:scroll}}

/* 1.2.25: gallery, miniatures, access */
.song-choice-label{display:flex;align-items:center;gap:11px;min-width:0}.song-thumb{width:56px;height:48px;object-fit:cover;object-position:center 38%;border-radius:8px;flex-shrink:0}.music-song-art img{object-position:center 35%}.unlock-banner{position:relative;z-index:2;display:flex;align-items:center;justify-content:center;gap:16px;flex-wrap:wrap;border:1px solid #b8986577;border-radius:12px;padding:10px;margin:8px auto;font-size:12px;background:#14131ac9}.unlock-banner[hidden]{display:none}.unlock-banner label{white-space:nowrap;cursor:pointer}.unlock-banner input{accent-color:#caa36c}.gallery-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:20px;text-align:center;margin:25px auto}.gallery-tile{display:flex;flex-direction:column;gap:12px;border-radius:14px;background:#13151bcf;padding:12px;min-height:240px;text-align:center}.gallery-tile img{width:100%;aspect-ratio:16/10;object-fit:cover;object-position:center 35%;border-radius:9px}.gallery-tile img.gallery-locked{background:linear-gradient(135deg,#34313a,#171921)}.gallery-tile span{font-size:13px}.gallery-modal{position:fixed;inset:0;z-index:100;background:#05060af2;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:50px 20px 20px}.gallery-modal[hidden]{display:none}.gallery-modal img{max-width:95vw;max-height:75vh;object-fit:contain}.gallery-modal p{font-size:15px}.gallery-modal #gallery-close{position:absolute;right:20px;top:12px;font-size:32px;border:0}body.gallery-page main{max-width:1200px;margin:4vh auto}body.music-page .unlock-banner{flex:none;margin:4px auto 0;width:100%}body.music-page #music-panel{min-height:0}@media(max-width:700px){.song-thumb{width:42px;height:38px}.unlock-banner{font-size:10px;padding:5px}.gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* 1.2.26: Reborn / Znovuzrozená – focus on Úmarthiel's face in song art. */
body.music-page .music-song-art img[src*="song_reborn.webp"]{object-position:39% 20%}
body.music-page .song-thumb[src*="song_reborn.webp"]{object-position:39% 22%}

/* 1.2.27: rozdělené galerie a kapitoly */
.gallery-tabs{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;margin:22px 0 14px}.gallery-tabs button,.gallery-chapter-choice{border-radius:12px;padding:12px 18px;background:#17141ac9;border:1px solid #b8986577}.gallery-tabs button.active,.gallery-chapter-choice.active{background:#a9864d44;border-color:#dfb36a}body.death .gallery-tabs button.active,body.death .gallery-chapter-choice.active{background:#7c9cc044;border-color:#9ac8ee}#gallery-chapters{display:flex;gap:10px;flex-wrap:wrap;justify-content:center}.gallery-empty{grid-column:1/-1;font-size:14px;opacity:.75}.gallery-grid{margin-top:18px}

/* 1.2.31 — Pevna navigace a samostatne rolovatelny obsah */
html:has(body.gallery-page),html:has(body.music-page){height:100%;overflow:hidden}
body.gallery-page{height:100vh;height:100dvh;min-height:0;overflow:hidden;display:flex;flex-direction:column}
body.gallery-page>header{flex:0 0 auto;position:relative;z-index:5;width:100%}
body.gallery-page>main{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;width:100%;max-width:1200px;margin:0 auto;padding:20px 24px 48px;scrollbar-width:thin;scrollbar-color:#b8986577 transparent}
body.gallery-page #gallery-panel{min-height:0}
body.gallery-page .gallery-modal{z-index:100}
/* Hudba ma vlastni rolovatelne seznamy a texty; hlavicka zustava stale videt. */
body.music-page>header{position:relative;z-index:5}
body.music-page #songs,body.music-page .lyrics{overscroll-behavior:contain}
@media(max-width:700px){body.gallery-page>main{padding:12px 12px 28px}body.gallery-page>header{padding:10px 12px}}

/* 1.2.32: samostatna mala navigacni lista galerie, pevne rozlozeni */
body.gallery-page main{display:flex;flex-direction:column;overflow:hidden;gap:0}
body.gallery-page main>.symbol,body.gallery-page main>#title,body.gallery-page main>#message{flex:0 0 auto}
body.gallery-page #gallery-panel{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;overflow:hidden}
body.gallery-page #gallery-panel[hidden]{display:none}
body.gallery-page .gallery-toolbar{flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:9px 14px;background:#17141ae8;border:1px solid #b8986577;border-radius:14px;margin:4px 0 10px}
body.gallery-page .gallery-tabs{display:flex;gap:8px;align-items:center;margin:0}
body.gallery-page .gallery-tabs button{padding:9px 14px;white-space:nowrap}
body.gallery-page #gallery-chapters{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex:1 1 270px}
body.gallery-page #gallery-chapters[hidden]{display:none}
body.gallery-page #gallery-chapter-label{font-size:12px;white-space:nowrap}
body.gallery-page #gallery-chapter-select{max-width:100%;min-width:0;width:min(100%,370px);padding:10px 12px;background:#15141c;color:inherit;border:1px solid #b8986577;border-radius:10px;font:inherit;font-size:12px}
body.gallery-page .gallery-grid{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;align-content:start;margin:0;padding:10px 8px 28px;scrollbar-width:thin}
body.gallery-page .unlock-banner{flex:0 0 auto}
body.death.gallery-page .gallery-toolbar,body.death.gallery-page #gallery-chapter-select{border-color:#7a9bc288}
@media(max-width:700px){body.gallery-page .gallery-toolbar{padding:8px;gap:8px}body.gallery-page .gallery-tabs{width:100%;justify-content:center}body.gallery-page .gallery-tabs button{flex:1;padding:9px 5px;font-size:11px}body.gallery-page #gallery-chapters{flex:1 1 100%}body.gallery-page #gallery-chapter-select{width:100%}body.gallery-page main{padding-bottom:8px}}

/* 1.2.33 – kniha ilustraci, samostatny obsah vlevo, zrcadlove ladeni smrti */
body.gallery-page main{max-width:none;width:100%;margin:0;padding:10px clamp(12px,2vw,34px) 16px;gap:0}
body.gallery-page main>.symbol,body.gallery-page main>#title,body.gallery-page main>#message,body.gallery-page main>#chronicle{display:none!important}
body.gallery-page .unlock-banner{margin:0 0 9px;width:100%;padding:7px 12px;min-height:37px}
body.gallery-page #gallery-panel{width:100%;flex:1;min-height:0}
.gallery-layout{display:grid;grid-template-columns:minmax(200px,22%) minmax(0,1fr);gap:clamp(10px,1.5vw,24px);height:100%;min-height:0;text-align:left}
.gallery-sidebar{min-height:0;display:flex;flex-direction:column;border:1px solid #a98b5a99;background:linear-gradient(160deg,#211810f2,#120f10f5);border-radius:15px;box-shadow:0 15px 35px #0007;padding:16px 12px}
.gallery-sidebar-head{display:flex;align-items:center;justify-content:space-between;color:#edce95;font-size:19px;letter-spacing:.06em;padding:3px 8px 13px;border-bottom:1px solid #a98b5a66}
#gallery-sidebar-toggle{display:none}.gallery-sidebar-list{flex:1;min-height:0;overflow-y:auto;padding:14px 2px;scrollbar-width:thin;scrollbar-color:#947249 transparent}
.gallery-side-link{display:flex;flex-direction:column;gap:7px;text-align:left;width:100%;margin:0 0 8px;padding:13px 12px;border:1px solid #94724966;background:#4230207a;color:#f0d7aa;border-radius:9px;font-size:12px;line-height:1.55;transition:background .2s,border-color .2s}
.gallery-side-link:hover,.gallery-side-link.active{background:#87633366;border-color:#dfbb7d}.gallery-side-link small{font-size:10px;color:#c8ad85}.gallery-sidebar-divider{border-top:1px solid #94724988;margin:14px 2px}
.gallery-book-shell{min-height:0;min-width:0;display:flex;padding:clamp(4px,.8vw,12px);background:linear-gradient(90deg,#281b10,#50351b 1.5%,#1c130c 3%,#21170f 97%,#6d4a25 99%,#24160c);border:2px solid #9c7542;border-radius:16px;box-shadow:0 15px 45px #000b, inset 0 0 0 1px #c49a5b66}
.gallery-book{--ink:#543d23;--page:#ebdec0;position:relative;display:flex;flex-direction:column;min-width:0;min-height:0;width:100%;padding:clamp(12px,2vw,28px) clamp(14px,3vw,50px) 12px;overflow:hidden;background:radial-gradient(ellipse at 45% 32%,#f7ecd4 0%,var(--page) 70%,#d0b88c 100%);color:var(--ink);border-radius:4px 12px 12px 4px;box-shadow:inset 14px 0 24px #78552b33,inset -6px 0 13px #98784d55}
.gallery-book:before{content:'';position:absolute;inset:8px;border:1px solid #a4875766;border-radius:2px 8px 8px 2px;pointer-events:none}
.gallery-book-top{display:flex;justify-content:space-between;gap:10px;font-size:clamp(9px,.85vw,12px);letter-spacing:.1em;color:#8d6d44}
.gallery-book-ornament{text-align:center;color:#a28151;font-size:16px;letter-spacing:.5em;margin:5px 0 0}
.gallery-book h2{font-size:clamp(17px,2vw,27px);font-weight:500;text-align:center;margin:2px 0 12px;padding-bottom:10px;border-bottom:1px solid #a58b6388}
.gallery-book-grid{flex:1;min-height:0;overflow-y:auto;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:clamp(7px,1.1vw,18px);padding:3px 4px 8px;align-content:stretch;scrollbar-width:thin}
.gallery-book-tile{display:flex;flex-direction:column;min-width:0;min-height:0;gap:6px;border:0;background:transparent;color:var(--ink);padding:2px;cursor:zoom-in;text-align:center}
.gallery-book-frame{position:relative;display:block;flex:1;min-height:0;width:100%;background:#cbb48d;border:5px solid #f2e6ce;outline:1px solid #9e8057;box-shadow:0 3px 8px #51391d55;overflow:hidden}
.gallery-book-frame img{width:100%;height:100%;object-fit:cover;object-position:center 36%;display:block}.gallery-book-frame.locked{background:linear-gradient(135deg,#b9a687,#877252)}.gallery-book-lock{position:absolute;inset:0;display:grid;place-items:center;font-size:24px}
.gallery-book-caption{font-size:clamp(9px,.85vw,12px);line-height:1.3;min-height:2.5em;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.gallery-book-tile:disabled{cursor:not-allowed;opacity:.75}.gallery-book-tile:not(:disabled):hover .gallery-book-frame{outline:2px solid #b7893d}
.gallery-book-empty{grid-column:1/-1;grid-row:1/-1;display:grid;place-items:center;color:#7c674c;text-align:center;font-size:14px}
.gallery-book-bottom{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #a58b6388;padding-top:8px;margin-top:6px;color:#735738;font-size:13px}.gallery-book-bottom button{font-family:Georgia,serif!important;font-size:26px;line-height:1;width:43px;height:34px;border:1px solid #aa906a;background:#e3d1ad;color:#634b2c;border-radius:7px}.gallery-book-bottom button:disabled{opacity:.3;cursor:default}
.gallery-book.turning{animation:galleryPageTurn .38s ease-in-out}@keyframes galleryPageTurn{0%{transform:perspective(1200px) rotateY(-5deg);filter:brightness(.88)}55%{transform:perspective(1200px) rotateY(2deg);filter:brightness(1.04)}100%{transform:perspective(1200px) rotateY(0);filter:brightness(1)}}
body.death.gallery-page .gallery-sidebar{background:linear-gradient(160deg,#172236f5,#0b1020f7);border-color:#789ac299}body.death.gallery-page .gallery-sidebar-head{color:#b7d4f0;border-color:#789ac277}body.death.gallery-page .gallery-side-link{background:#2439569a;border-color:#688bb877;color:#dce9ff}body.death.gallery-page .gallery-side-link.active,body.death.gallery-page .gallery-side-link:hover{background:#4c739b88;border-color:#a5c9e9}body.death.gallery-page .gallery-side-link small{color:#a9c4e3}body.death.gallery-page .gallery-sidebar-divider{border-color:#789ac277}
body.death.gallery-page .gallery-book-shell{background:linear-gradient(90deg,#0d1423,#34465e 2%,#10192a 4%,#111827 97%,#58718e 99%,#0c1422);border-color:#708eac}
body.death.gallery-page .gallery-book{--ink:#d2e0f3;--page:#19263b;background:radial-gradient(ellipse at 45% 32%,#34445b 0%,var(--page) 70%,#101a2b 100%);box-shadow:inset 14px 0 24px #03081488,inset -6px 0 13px #627d9a55}
body.death.gallery-page .gallery-book:before{border-color:#88a9cb66}body.death.gallery-page .gallery-book-top,body.death.gallery-page .gallery-book-ornament{color:#9ebad9}body.death.gallery-page .gallery-book h2,body.death.gallery-page .gallery-book-bottom{border-color:#87a5c077}body.death.gallery-page .gallery-book-frame{background:#27354a;border-color:#394f6a;outline-color:#8da6c3}body.death.gallery-page .gallery-book-frame.locked{background:linear-gradient(135deg,#293b56,#111b2c)}body.death.gallery-page .gallery-book-bottom button{background:#273c55;border-color:#6b8eaf;color:#dcecff}body.death.gallery-page .gallery-book-empty{color:#b0c4da}
@media(max-width:800px){.gallery-layout{grid-template-columns:minmax(150px,26%) minmax(0,1fr)}.gallery-book{padding:12px 13px}.gallery-book-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr))}.gallery-book-frame{border-width:3px}.gallery-book-caption{font-size:10px}}
@media(max-width:600px){body.gallery-page main{padding:7px 8px 10px}.gallery-layout{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr);gap:7px}.gallery-sidebar{padding:7px 10px;overflow:visible}.gallery-sidebar-head{padding:2px 4px;border:0;font-size:14px}#gallery-sidebar-toggle{display:block;padding:3px 12px;border-radius:6px}.gallery-sidebar-list{display:none;max-height:35vh;overflow-y:auto;padding:8px 0}.gallery-sidebar-list.mobile-open{display:block}.gallery-side-link{margin-bottom:4px;padding:7px 9px}.gallery-book-shell{padding:4px}.gallery-book{padding:10px 11px}.gallery-book h2{font-size:17px;margin:0 0 8px}.gallery-book-ornament{font-size:11px}.gallery-book-grid{gap:7px}.gallery-book-caption{font-size:9px;min-height:2.5em}.gallery-book-bottom{padding-top:4px;margin-top:4px}.gallery-book-bottom button{height:28px;width:36px}}
@media(prefers-reduced-motion:reduce){.gallery-book.turning{animation:none}}


/* v1.2.34 – genuine openable spread, external mirrored contents */
body.gallery-page .gallery-layout{grid-template-columns:minmax(180px,20%) minmax(0,1fr)}
body.death.gallery-page .gallery-layout{grid-template-columns:minmax(0,1fr) minmax(180px,20%)}
body.death.gallery-page .gallery-sidebar{grid-column:2;grid-row:1}
body.death.gallery-page .gallery-book-shell{grid-column:1;grid-row:1}
body.gallery-page .gallery-book-shell{justify-content:center;align-items:center;perspective:1600px}
body.gallery-page .gallery-book{padding:0;display:flex;justify-content:center;align-items:center;background:transparent!important;box-shadow:none!important;overflow:visible}
body.gallery-page .gallery-book:before{display:none}
.gallery-cover{position:relative;display:grid;place-items:center;width:min(60%,430px);height:90%;max-height:680px;min-height:260px;border:9px ridge #a07a47;border-left:22px ridge #5c3920;border-radius:12px 23px 23px 10px;box-shadow:20px 20px 30px #000b,inset 0 0 50px #0009;cursor:pointer;background:radial-gradient(ellipse at center,#624329,#29190e 75%);color:#f6dba6;transform-origin:left center;transition:transform .5s}
.gallery-cover:hover{transform:rotateY(-8deg)}.gallery-cover-inner{display:flex;flex-direction:column;align-items:center;justify-content:space-around;gap:12px;width:83%;height:87%;border:2px solid #ad8851;outline:1px solid #ad885199;outline-offset:8px;padding:12px;text-align:center}
.gallery-cover-brand{font-size:clamp(11px,1.4vw,20px);letter-spacing:.15em}.gallery-cover strong{font-size:clamp(13px,1.7vw,25px);letter-spacing:.12em}.gallery-cover-emblem{display:grid;place-items:center;width:clamp(60px,11vw,150px);aspect-ratio:1;border:8px double #c59a4c;border-radius:50%;background:radial-gradient(circle,#fff8d0 0%,#f8d46a 18%,#d68a22 45%,#60401c 72%);box-shadow:0 0 35px 12px #f2c65d88,inset 0 0 20px #fff8ad}.gallery-cover-emblem:after{content:'✦';font-size:clamp(30px,6vw,75px);color:#fff9df;text-shadow:0 0 15px white}
body.death .gallery-cover{background:radial-gradient(ellipse at center,#273c58,#0c101b 78%);border-color:#6c839f;border-left-color:#101c2c;color:#c7e3fa}.death .gallery-cover-inner{border-color:#7795b6;outline-color:#7795b6}.death .gallery-cover-emblem{background:radial-gradient(circle,#b6d9f0,#355776 54%,#101a2a);border-color:#7798b8;box-shadow:0 0 32px #82b4e088}.death .gallery-cover-emblem:after{content:'☠';font-size:clamp(34px,6vw,78px);color:#e2edf7;text-shadow:0 0 15px #9fcfff}
.gallery-spread{width:100%;height:100%;min-height:0;display:flex;flex-direction:column;padding:clamp(6px,1.1vw,18px) clamp(8px,1.4vw,22px);background:linear-gradient(90deg,#d3b98e 0%,#f1e4ca 48%,#9c7951 50%,#f1e4ca 52%,#d3b98e 100%);border:9px solid #614225;border-radius:12px 18px 18px 12px;box-shadow:inset 0 0 20px #62412277,15px 17px 25px #0008;overflow:hidden}
.gallery-spread[hidden],.gallery-cover[hidden],.gallery-turn-sheet[hidden]{display:none!important}
.gallery-spread h2{margin:0 0 5px!important;padding:0 0 4px!important;flex:0 0 auto;color:#674c2c;font-size:clamp(12px,1.5vw,19px)!important}
.gallery-pages-stage{position:relative;flex:1;min-height:0;perspective:1700px}
.gallery-pages{display:grid;grid-template-columns:1fr 1fr;height:100%;position:relative}
.gallery-pages:after{content:'';position:absolute;z-index:3;top:0;bottom:0;left:calc(50% - 9px);width:18px;background:linear-gradient(90deg,#5d42253b,#4d341f88 48%,#f5e7cd33);pointer-events:none}
.gallery-leaf{min-width:0;min-height:0;display:flex;flex-direction:column;padding:clamp(7px,1.3vw,22px);background:radial-gradient(ellipse at center,#f8ecd4,#e8d6b3);color:#594126;box-shadow:inset 0 0 20px #aa896644}
.gallery-leaf.left{border-radius:9px 0 0 9px;box-shadow:inset -12px 0 20px #6b4b2855}.gallery-leaf.right{border-radius:0 9px 9px 0;box-shadow:inset 12px 0 20px #6b4b2855}
.gallery-leaf-head{font-size:10px;letter-spacing:.13em;color:#957650;text-align:center;flex:0 0 auto}
.gallery-leaf-content{display:grid;grid-template-rows:repeat(2,minmax(0,1fr));gap:clamp(7px,1.5vh,18px);flex:1;min-height:0;padding:7px 3px}
.gallery-leaf .gallery-book-tile{min-height:0;max-height:100%;gap:4px}.gallery-leaf .gallery-book-frame{min-height:0;flex:1;border-width:3px}.gallery-leaf .gallery-book-frame img{object-fit:contain;background:#cbb48d}.gallery-leaf .gallery-book-caption{font-size:clamp(9px,.9vw,13px);min-height:1.3em}
.gallery-leaf-blank{display:grid;place-items:center;color:#bda784;font-size:38px}.gallery-leaf-footer{border-top:1px solid #b8a079;text-align:center;padding-top:6px;flex:0 0 auto;font-size:clamp(9px,.9vw,12px);font-style:italic}
.gallery-spread .gallery-book-bottom{flex:0 0 auto;margin-top:5px;padding-top:5px;border-color:#ad9470;color:#614225}
.gallery-turn-sheet{position:absolute;top:0;bottom:0;left:50%;width:50%;z-index:5;transform-style:preserve-3d;transform-origin:left center;pointer-events:none}
.gallery-turn-front,.gallery-turn-back{position:absolute;inset:0;backface-visibility:hidden;background:linear-gradient(100deg,#d2ba92,#fff2d8 35%,#e5d0aa 90%,#b2936b);box-shadow:inset 10px 0 30px #74502b66,8px 0 16px #0005;border:1px solid #bea37a}
.gallery-turn-back{transform:rotateY(180deg);background:linear-gradient(270deg,#d5b88d,#f3e2c5 65%,#aa875b)}
.gallery-turn-sheet.forward.flipping{animation:galleryLeafForward .85s ease-in-out both}.gallery-turn-sheet.backward{left:0;transform-origin:right center;transform:rotateY(-180deg)}.gallery-turn-sheet.backward.flipping{animation:galleryLeafBack .85s ease-in-out both}
.gallery-turn-sheet.rapid.forward.flipping{animation-duration:.19s}.gallery-turn-sheet.rapid.backward.flipping{animation-duration:.19s}
@keyframes galleryLeafForward{from{transform:rotateY(0)}to{transform:rotateY(-180deg)}}@keyframes galleryLeafBack{from{transform:rotateY(-180deg)}to{transform:rotateY(0)}}
.gallery-book.opening .gallery-spread{animation:galleryOpen .9s ease-out}.gallery-book.gallery-jump .gallery-spread{animation:galleryJump .95s ease-out}
@keyframes galleryOpen{from{transform:rotateY(-35deg) scale(.83);opacity:.35}to{transform:rotateY(0) scale(1);opacity:1}}@keyframes galleryJump{0%,100%{filter:brightness(1)}25%,60%{filter:brightness(.75);transform:perspective(1500px) rotateY(-6deg)}45%,80%{filter:brightness(1.15);transform:perspective(1500px) rotateY(4deg)}}
body.death .gallery-spread{background:linear-gradient(90deg,#192b40,#32465f 48%,#0b1727 50%,#32465f 52%,#192b40);border-color:#4d6989}.death .gallery-leaf{background:radial-gradient(ellipse at center,#354b65,#152237);color:#dbe9f7}.death .gallery-leaf-head,.death .gallery-leaf-footer{color:#abc7e4;border-color:#6987a6}.death .gallery-spread h2,.death .gallery-spread .gallery-book-bottom{color:#d2e6f9;border-color:#6b87a4}.death .gallery-turn-front,.death .gallery-turn-back{background:linear-gradient(110deg,#18273a,#47617c,#142237);border-color:#6482a0}.death .gallery-leaf-blank{color:#587592}
.gallery-modal{z-index:99999!important}.gallery-modal[hidden]{display:none!important}#gallery-close{position:fixed!important;top:22px!important;right:25px!important;z-index:100001!important;font-size:32px!important;cursor:pointer!important;background:#1b1921!important;color:white!important;border:2px solid #d5b989!important;border-radius:50%!important;width:52px!important;height:52px!important}
@media(max-width:750px){body.gallery-page .gallery-layout,body.death.gallery-page .gallery-layout{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr)}body.death.gallery-page .gallery-sidebar,body.death.gallery-page .gallery-book-shell{grid-column:1;grid-row:auto}.gallery-cover{width:min(70%,310px)}.gallery-spread{border-width:5px;padding:5px}.gallery-leaf{padding:5px}.gallery-leaf-content{gap:5px}.gallery-leaf .gallery-book-frame{border-width:2px}.gallery-leaf .gallery-book-caption{font-size:9px}}
@media(prefers-reduced-motion:reduce){.gallery-turn-sheet.flipping,.gallery-book.opening .gallery-spread,.gallery-book.gallery-jump .gallery-spread{animation-duration:.01s!important}}

/* v1.2.35 — graphic pass: fixed geometry, illustrated covers, centered sidebar */
body.gallery-page .gallery-sidebar-head{justify-content:center;text-align:center}
body.gallery-page .gallery-sidebar-list{text-align:center}
body.gallery-page .gallery-side-link{width:100%;text-align:center;align-items:center;justify-content:center}
body.gallery-page .gallery-side-link span,body.gallery-page .gallery-side-link small{display:block;text-align:center}
.gallery-close-book{display:block;flex:0 0 auto;align-self:stretch;text-align:center;margin-top:auto;padding:12px 8px;
 background:linear-gradient(#574028,#2a1d13);border:1px solid #b99460;border-radius:9px;color:#f0d6a4;
 font:inherit;cursor:pointer;box-shadow:inset 0 1px #e3bd7666}
.gallery-close-book[hidden]{display:none!important}
.gallery-close-book:hover{filter:brightness(1.2)}
body.death .gallery-close-book{background:linear-gradient(#2e4661,#142034);border-color:#7695b6;color:#d4eaff}
body.gallery-page .gallery-book{width:100%;height:100%;min-height:0;position:relative}
body.gallery-page .gallery-spread{position:absolute;inset:0;width:100%;height:100%;box-sizing:border-box}
body.gallery-page .gallery-cover{
 position:absolute;inset:0;margin:auto;
 width:min(52%,390px);height:min(91%,650px);min-height:0;max-height:none;
 border:0;border-radius:5px 14px 14px 5px;
 background:#2d1c11 url('assets/images/book_cover_zivot_draft.webp') center / 100% 100% no-repeat;
 box-shadow:11px 15px 25px #000b;overflow:hidden
}
body.death.gallery-page .gallery-cover{
 background:#121b2b url('assets/images/book_cover_smrt_draft.webp') center / 100% 100% no-repeat;
 border:0
}
body.gallery-page .gallery-cover-inner{position:absolute;inset:0;width:100%;height:100%;border:0;outline:0;padding:0;justify-content:flex-end}
body.gallery-page .gallery-cover-brand,body.gallery-page .gallery-cover-emblem,body.gallery-page #gallery-cover-title{display:none}
body.gallery-page #gallery-cover-action{
 display:block;margin:0 8px 10px;padding:8px 12px;border-radius:8px;
 background:#1b140ecb;border:1px solid #b99b68;color:#ffe3ae;font-size:clamp(10px,1.2vw,15px);
 text-shadow:0 1px 2px #000
}
body.death.gallery-page #gallery-cover-action{background:#0a1728d9;color:#d7ebff;border-color:#7899bd}
body.gallery-page .gallery-leaf-content{gap:clamp(4px,.8vh,10px);padding:4px 2px}
body.gallery-page .gallery-leaf .gallery-book-frame{max-height:100%;overflow:hidden}
body.gallery-page .gallery-leaf .gallery-book-frame img{max-width:100%;max-height:100%;object-fit:contain}
body.gallery-page .gallery-leaf .gallery-book-caption{font-size:clamp(8px,.8vw,11px)}
body.gallery-page .gallery-leaf-footer{padding-top:5px;white-space:normal;line-height:1.2}
@media(max-width:750px){
 body.gallery-page .gallery-cover{width:min(52%,300px);height:min(89%,510px)}
 body.gallery-page .gallery-sidebar-head{justify-content:space-between}
 body.gallery-page .gallery-close-book{padding:7px}
}

/* v1.2.36 – six-page extensible illustrated prototype */
body.gallery-page .gallery-book-shell{overflow:hidden;min-height:0}
body.gallery-page .gallery-book{width:100%;height:100%;max-width:100%;max-height:100%;overflow:hidden}
body.gallery-page .gallery-spread{inset:auto;position:relative;width:min(100%,calc((100dvh - 235px)*1.5));height:auto;aspect-ratio:1.5;max-height:100%;padding:0;border:0;background:transparent;box-shadow:none;overflow:visible;display:flex;flex-direction:column}
body.gallery-page .gallery-spread h2{position:absolute;top:3%;left:28%;width:44%;z-index:2;text-align:center;font-size:clamp(10px,1.1vw,16px)!important;color:#745331;background:#e8d0a5b8;border:0;border-radius:12px;padding:3px!important;pointer-events:none}
body.gallery-page .gallery-pages-stage{flex:1;min-height:0;position:relative}
body.gallery-page .gallery-pages{height:100%;width:100%;gap:0}
body.gallery-page .gallery-pages:after{width:1.5%;left:49.25%;background:linear-gradient(90deg,#39200b88,#140b0755,#e7c89633)}
body.gallery-page .gallery-leaf{position:relative;background:#e7d1a9 url('assets/images/life_page_left_prototype.webp') center / 100% 100% no-repeat;padding:10% 9% 12%;box-shadow:none;border-radius:0;overflow:hidden}
body.gallery-page .gallery-leaf.right{background-image:url('assets/images/life_page_right_prototype.webp')}
body.gallery-page .gallery-leaf-head{display:none}
body.gallery-page .gallery-leaf-content{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4%;padding:0;min-height:0;flex:1;overflow:hidden}
body.gallery-page .gallery-leaf .gallery-book-tile{width:80%;height:auto;max-height:43%;flex:0 1 43%;gap:2px;min-height:0;align-items:center}
body.gallery-page .gallery-leaf .gallery-book-frame{background:transparent;border:0;outline:0;box-shadow:none;width:100%;flex:1;min-height:0}
body.gallery-page .gallery-leaf .gallery-book-frame img{background:transparent;object-fit:contain}
body.gallery-page .gallery-leaf .gallery-book-caption{color:#59391c;font-size:clamp(8px,.85vw,12px);text-align:center;line-height:1.15}
body.gallery-page .gallery-leaf-footer{position:absolute;bottom:7.8%;left:15%;width:70%;z-index:2;border:0;background:#e8cfa4d9;color:#583c20;padding:2px;font-size:clamp(8px,.8vw,12px);text-align:center}
body.gallery-page .gallery-book-bottom{position:absolute;bottom:0;left:3%;right:3%;z-index:7;margin:0;padding:0;border:0;pointer-events:none}
body.gallery-page .gallery-book-bottom button{pointer-events:auto;position:relative;bottom:4px;width:clamp(26px,3vw,40px);height:clamp(24px,3vw,35px);font-size:23px;background:#5c3b22e0;color:#fbe4a9;border-color:#cda763}
body.gallery-page #gallery-page-counter{position:absolute;left:43%;width:14%;bottom:5px;text-align:center;color:#50371e;font-size:clamp(9px,1vw,14px);background:#e9d5b3c7;border-radius:6px}
body.gallery-page .gallery-turn-sheet{top:0;bottom:0;z-index:5}
body.gallery-page .gallery-turn-front,body.gallery-page .gallery-turn-back{overflow:hidden;background:transparent;border:0;box-shadow:0 4px 16px #160c0866;display:block}
body.gallery-page .gallery-turn-front>.gallery-leaf,body.gallery-page .gallery-turn-back>.gallery-leaf{width:100%;height:100%}
body.gallery-page .gallery-cover{width:min(50%,calc((100dvh - 235px)*.75));height:auto;aspect-ratio:.75;max-height:100%;left:0;right:0;inset:auto;margin:auto}
body.death.gallery-page .gallery-leaf{background:#283950!important;color:#e2ecf8}
body.death.gallery-page .gallery-leaf-footer{background:#1b2b42db;color:#d5e7fa}
body.death.gallery-page .gallery-book-bottom button{background:#1a2a42e0;color:#e1edfc}
body.death.gallery-page #gallery-page-counter{background:#1b2b42e0;color:#e1edfc}
body.death.gallery-page .gallery-spread h2{background:#1b2b42db;color:#e1edfc}
@media(max-width:750px){body.gallery-page .gallery-spread{width:min(100%,calc((100dvh - 225px)*1.5))}body.gallery-page .gallery-cover{width:min(50%,calc((100dvh - 225px)*.75))}body.gallery-page .gallery-leaf{padding:10% 9% 12%}}

/* v1.2.37 — approved cover art and gallery refinements */
body.gallery-page .gallery-cover{background:transparent url('assets/images/life_cover_front_approved.webp') center/100% 100% no-repeat!important;box-shadow:none!important;border:0!important;overflow:visible!important;aspect-ratio:710/940;width:min(50%,calc((100dvh - 230px)*.755));max-height:100%}
body.gallery-page .gallery-cover.back-cover{background-image:url('assets/images/life_cover_back_approved.webp')!important}
body.death.gallery-page .gallery-cover{background:#121b2b url('assets/images/book_cover_smrt_draft.webp') center/100% 100% no-repeat!important}
body.gallery-page .gallery-spread h2,body.gallery-page #gallery-page-counter{display:none!important}
body.gallery-page .gallery-leaf{padding:15% 15% 18%!important}
body.gallery-page .gallery-leaf-content{justify-content:center;gap:3%;overflow:hidden}
body.gallery-page .gallery-leaf .gallery-book-tile{width:100%;max-height:44%;flex:0 1 44%;gap:3px}
body.gallery-page .gallery-leaf .gallery-book-frame{flex:1;min-height:0}
body.gallery-page .gallery-leaf .gallery-book-frame img{filter:sepia(.82) saturate(.53) contrast(.86) brightness(1.04);transition:filter .35s ease}
body.gallery-page .gallery-leaf .gallery-book-tile:hover img,body.gallery-page .gallery-leaf .gallery-book-tile:focus-visible img{filter:sepia(.18) saturate(.9)}
body.death.gallery-page .gallery-leaf .gallery-book-frame img{filter:grayscale(.8) sepia(.25) hue-rotate(165deg) saturate(.6)}
body.gallery-page .gallery-leaf .gallery-book-caption{flex:0 0 auto;font-size:clamp(8px,.72vw,11px);line-height:1.15;max-height:2.4em;overflow:hidden}
body.gallery-page .gallery-leaf-footer{bottom:8%;left:19%;width:62%;background:transparent!important;font-size:clamp(8px,.78vw,12px)}
body.gallery-page .gallery-book-bottom button{display:inline-flex;align-items:center;justify-content:center;line-height:1;padding:0 0 3px!important}
body.gallery-page .gallery-turn-sheet.backward{transform-origin:right center;transform:rotateY(0)}
body.gallery-page .gallery-turn-sheet.backward.flipping{animation:galleryLeafBackCorrect .85s ease-in-out both}
body.gallery-page .gallery-turn-sheet.rapid.backward.flipping{animation-duration:.19s}
@keyframes galleryLeafBackCorrect{from{transform:rotateY(0)}to{transform:rotateY(180deg)}}
body.gallery-page .gallery-turn-sheet.backward .gallery-turn-front{transform:rotateY(180deg)}
body.gallery-page .gallery-turn-sheet.backward .gallery-turn-back{transform:none}
body.gallery-page .gallery-cover-inner{pointer-events:none}
body.gallery-page #gallery-cover-action{pointer-events:none}
body.gallery-page .gallery-cover:focus-visible{outline:3px solid #e7c077}

/* v1.2.38 — readable compact illustrations, warm parchment toning, clean pages */
body.gallery-page .gallery-leaf.left{background-image:url('assets/images/life_page_left_clean.webp')}
body.gallery-page .gallery-leaf.right{background-image:url('assets/images/life_page_right_clean.webp')}
body.gallery-page .gallery-leaf{padding:18% 18% 21%!important;background-color:transparent!important}
body.gallery-page .gallery-leaf-content{gap:4%;justify-content:center;overflow:hidden}
body.gallery-page .gallery-leaf .gallery-book-tile{width:78%;max-height:37%;flex:0 1 37%;gap:6px;overflow:visible}
body.gallery-page .gallery-leaf .gallery-book-frame{width:100%;overflow:hidden;border-radius:2px;flex:1;min-height:0}
body.gallery-page .gallery-leaf .gallery-book-frame img{width:100%;height:100%;object-fit:contain;filter:grayscale(.48) sepia(.65) saturate(.65) brightness(1.13) contrast(.81);opacity:.89}
body.gallery-page .gallery-leaf .gallery-book-tile:hover img,body.gallery-page .gallery-leaf .gallery-book-tile:focus-visible img{filter:grayscale(.12) sepia(.35) saturate(.78) brightness(1.06);opacity:1}
body.gallery-page .gallery-leaf .gallery-book-caption{color:#432810;background:#f1dfbded;border-radius:3px;padding:3px 7px;max-width:100%;max-height:none;overflow:visible;font-size:clamp(10px,.84vw,13px);line-height:1.35;font-weight:600;text-shadow:0 1px 0 #fff5df}
body.gallery-page .gallery-leaf-footer{bottom:8%;color:#58391f;background:transparent!important}
body.gallery-page .gallery-spread{background:transparent!important}
body.gallery-page .gallery-pages-stage{background:transparent!important}
body.gallery-page .gallery-pages{background:transparent!important}
body.gallery-page .gallery-book-shell{background:transparent!important}
body.gallery-page .gallery-leaf .gallery-book-tile:focus-visible{outline:2px solid #815d2e;outline-offset:3px}

/* v1.2.39 — testovací cyklus: obálka → kapitola I → kapitola II → písně → zadní obálka */
body.gallery-page .gallery-pages-stage { background: url('assets/images/life_open_book_approved.webp') center / 100% 100% no-repeat !important; }
body.gallery-page .gallery-leaf.left,body.gallery-page .gallery-leaf.right { background:transparent!important; box-shadow:none!important; }
body.gallery-page .gallery-pages:after {display:none!important}
body.gallery-page .gallery-leaf{padding:14% 16% 18%!important}
body.gallery-page .gallery-leaf-content{justify-content:center;gap:3%;}
body.gallery-page .gallery-leaf .gallery-book-tile{width:77%;max-height:66%;flex:0 1 66%;display:flex;flex-direction:column;gap:7px}
body.gallery-page .gallery-leaf .gallery-book-caption{order:-1;color:#4b3019;background:#efddb9eb;font-size:clamp(10px,.85vw,14px);font-weight:700;line-height:1.3;padding:4px 6px}
body.gallery-page .gallery-leaf .gallery-book-frame img{filter:sepia(.8) saturate(.48) hue-rotate(-8deg) brightness(1.06) contrast(.85);opacity:.85}
body.gallery-page .gallery-leaf-footer{bottom:9%;font-weight:600;text-shadow:0 1px #f8e9cc}
body.gallery-page .gallery-turn-sheet{left:50%;transform-origin:left center;transform:rotateY(0)}
body.gallery-page .gallery-turn-sheet.backward{left:0;transform-origin:right center;transform:rotateY(0)}
body.gallery-page .gallery-turn-sheet.backward.flipping{animation:galleryLeafBackward39 .85s cubic-bezier(.42,0,.58,1) both}
body.gallery-page .gallery-turn-sheet.forward.flipping{animation:galleryLeafForward39 .85s cubic-bezier(.42,0,.58,1) both}
body.gallery-page .gallery-turn-sheet.rapid.backward.flipping,body.gallery-page .gallery-turn-sheet.rapid.forward.flipping{animation-duration:.55s}
body.gallery-page .gallery-turn-sheet.backward .gallery-turn-front{transform:none}
body.gallery-page .gallery-turn-sheet.backward .gallery-turn-back{transform:rotateY(180deg)}
@keyframes galleryLeafBackward39{from{transform:rotateY(0deg)}to{transform:rotateY(180deg)}}
@keyframes galleryLeafForward39{from{transform:rotateY(0deg)}to{transform:rotateY(-180deg)}}
body.gallery-page .gallery-turn-front,body.gallery-page .gallery-turn-back{backface-visibility:hidden; -webkit-backface-visibility:hidden}
body.gallery-page .gallery-turn-front>.gallery-leaf,body.gallery-page .gallery-turn-back>.gallery-leaf{background:#f1dfbb!important;box-shadow:inset 0 0 25px #805a3070!important}
body.gallery-page .gallery-sidebar-list{display:flex;flex-direction:column;overflow-y:auto}
body.gallery-page .gallery-sidebar-divider{flex:0 0 auto}
body.gallery-page .gallery-side-link{flex:0 0 auto}
@media(max-width:600px){body.gallery-page .gallery-sidebar-list{display:none}body.gallery-page .gallery-sidebar-list.mobile-open{display:flex}}

/* v1.2.40: two illustrations per page, captions close above, persistent Songs navigation */
body.gallery-page .gallery-leaf-footer{display:none!important}
body.gallery-page .gallery-leaf-content{justify-content:center!important;gap:2%!important}
body.gallery-page .gallery-leaf .gallery-book-tile{width:78%!important;max-height:39%!important;flex:0 1 39%!important;gap:2px!important;min-height:0!important}
body.gallery-page .gallery-leaf .gallery-book-caption{margin:0!important;padding:2px 4px!important;line-height:1.12!important;font-size:clamp(9px,.78vw,12px)!important}
body.gallery-page .gallery-leaf .gallery-book-frame{min-height:0!important;flex:1!important}
body.gallery-page .gallery-leaf{padding:16% 16% 17%!important}
body.gallery-page .gallery-songs-shortcut{display:block;width:100%;flex:0 0 auto;padding:10px 8px;margin:4px 0 9px;border:1px solid #d4b17c;border-radius:9px;background:#4b321e;color:#f8dba5;font:600 15px Georgia,serif;cursor:pointer}
body.gallery-page .gallery-songs-shortcut:hover,body.gallery-page .gallery-songs-shortcut:focus-visible{background:#73512c}
body.gallery-page .gallery-sidebar-list{min-height:0!important;overflow-y:auto!important}
body.gallery-page #gallery-large{cursor:zoom-out}

/* v1.2.41: approved death gallery artwork; preserve life gallery unchanged */
body.death.gallery-page .gallery-cover{background:transparent url('assets/images/death_cover_front_approved.webp') center / contain no-repeat!important;box-shadow:none!important;border:0!important;aspect-ratio:760/1024!important;}
body.death.gallery-page .gallery-cover.back-cover{background-image:url('assets/images/death_cover_back_approved.webp')!important;}
body.death.gallery-page .gallery-pages-stage{background:transparent url('assets/images/death_open_book_approved.webp') center / 100% 100% no-repeat!important;}
body.death.gallery-page .gallery-leaf.left,body.death.gallery-page .gallery-leaf.right{background:transparent!important;box-shadow:none!important;color:#1c2832!important;}
body.death.gallery-page .gallery-leaf .gallery-book-caption{background:#c6ccd0ec!important;color:#24303d!important;text-shadow:none!important;}
body.death.gallery-page .gallery-leaf .gallery-book-frame img{filter:grayscale(.65) sepia(.20) hue-rotate(165deg) saturate(.65) brightness(1.06)!important;opacity:.9!important;}
body.death.gallery-page .gallery-turn-front>.gallery-leaf,body.death.gallery-page .gallery-turn-back>.gallery-leaf{background:#c1c6cc!important;box-shadow:inset 0 0 24px #38485966!important;}
body.death.gallery-page .gallery-songs-shortcut{background:#20344b;color:#d9eaf7;border-color:#7b9bb8;}
body.death.gallery-page .gallery-songs-shortcut:hover{background:#385775;}
@media(max-width:750px){body.death.gallery-page .gallery-sidebar{grid-column:1;grid-row:1}body.death.gallery-page .gallery-book-shell{grid-column:1;grid-row:2}}

/* v1.2.43: opaque death artwork; preserve geometry and approved Life gallery */
body.death.gallery-page .gallery-cover{background-color:transparent!important}
body.death.gallery-page .gallery-pages-stage{isolation:isolate}

/* v1.2.44 – stable opaque paper during turns, no transparent seams */
body.death.gallery-page .gallery-turn-front,body.death.gallery-page .gallery-turn-back{background:#c4c8ca!important;}
body.death.gallery-page .gallery-turn-front>.gallery-leaf,body.death.gallery-page .gallery-turn-back>.gallery-leaf{background:#c4c8ca!important;}

/* v1.2.45: death cover and open spread artwork for visual review. */
body.death.gallery-page .gallery-cover{background-size:100% 100%!important}

/* v1.2.46 — Death gallery: mirror-shift images and captions inward.
   Move the entire content column as one unit, keeping the two tiles and
   their captions aligned. Life gallery and approved artwork remain intact. */
body.death.gallery-page .gallery-leaf.left .gallery-leaf-content {
  transform:translateX(7%);
}
body.death.gallery-page .gallery-leaf.right .gallery-leaf-content {
  transform:translateX(-7%);
}

/* v1.2.47: restore unlock switch inside both gallery sidebars */
body.gallery-page .gallery-unlock-control{display:flex;align-items:center;justify-content:center;gap:9px;flex:0 0 auto;margin:5px 0 9px;padding:10px 7px;border:1px solid #a98b5a99;border-radius:9px;background:#3c2d22;color:#f0dfc6;font:600 12px Georgia,serif;cursor:pointer;text-align:center}
body.gallery-page .gallery-unlock-control input{accent-color:#d4b17c;width:16px;height:16px;flex:none;cursor:pointer}
body.death.gallery-page .gallery-unlock-control{border-color:#789ac299;background:#223550;color:#dce9ff}
body.death.gallery-page .gallery-unlock-control input{accent-color:#8cb9e3}
@media(max-width:750px){body.gallery-page .gallery-unlock-control{padding:7px;font-size:11px}}
