/* Bound pages: fixed underlay, actual photographs on both sides of each leaf. */
.nostalgic-album .album-book{isolation:isolate;padding:4px 6px 9px;background:#76614d;border-radius:4px 8px 8px 4px;box-shadow:0 18px 30px -16px #3c30284d}
.nostalgic-album .album-book:before{content:'';position:absolute;left:7px;right:6px;bottom:3px;height:7px;background:repeating-linear-gradient(to bottom,#ddcfb6 0 1px,#fcf3e1 1px 2px);border-radius:0 0 3px 3px;z-index:-1}
.nostalgic-album .album-spreads{perspective:1800px;isolation:isolate;overflow:visible}
.nostalgic-album .album-spreads:after{content:'';position:absolute;top:0;bottom:0;left:calc(50% - 10px);width:20px;background:linear-gradient(90deg,transparent,#74553418 30%,#61492c4d 49%,#fffcf035 54%,#7d603020 68%,transparent);pointer-events:none;z-index:3}
.nostalgic-album .album-spread{box-shadow:0 1px 0 #cabb9e,0 3px 0 #f5ead5;transition:none;transform:none}
.nostalgic-album .album-page{background:radial-gradient(ellipse at 50% 30%,#fcf6e8,#ecdfc5);padding:27px 21px;flex-direction:column;gap:18px}
.nostalgic-album .album-page:first-child{box-shadow:inset -18px 0 25px -22px #5c412aad}
.nostalgic-album .album-page:last-child{box-shadow:inset 18px 0 25px -22px #5c412aad}
.nostalgic-album .album-mount{padding:5px;transform:rotate(-.5deg);box-shadow:0 2px 5px #3e2f2121}
.nostalgic-album .album-page:nth-child(even) .album-mount{transform:rotate(.6deg)}
.nostalgic-album .album-page--pair .album-mount:first-child{align-self:flex-start;transform:rotate(-1deg)}
.nostalgic-album .album-page--pair .album-mount:last-child{align-self:flex-end;transform:rotate(.9deg)}
.nostalgic-album .album-corner{width:10px;height:10px;opacity:.75}
.album-leaf,.album-fixed-face{position:absolute;top:0;bottom:0;width:50%;pointer-events:none}
.album-fixed-face{z-index:2;overflow:hidden}.album-fixed-face.on-left{left:0}.album-fixed-face.on-right{left:50%}
.album-leaf{left:50%;z-index:5;transform-origin:left center;transform-style:preserve-3d;will-change:transform}
.album-leaf.is-backward{left:0;transform-origin:right center}
.album-leaf-front,.album-leaf-back{position:absolute;inset:0;backface-visibility:hidden;-webkit-backface-visibility:hidden;overflow:hidden;background:#f6ecd8;box-shadow:0 2px 3px #382a1726}
.album-leaf-back{transform:rotateY(180deg);box-shadow:4px 2px 13px #30201525}
.album-leaf-face-content{position:absolute;inset:0;overflow:hidden}
.album-leaf-face-content>.album-page{position:absolute;inset:0;width:100%;height:100%;box-sizing:border-box}
.album-face-fragment>.album-page{right:auto}
.album-leaf-front:after,.album-leaf-back:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#5e41201a,transparent 14%,transparent 85%,#8c6d3a13);pointer-events:none}
.album-leaf.is-mobile{width:100%;left:0}.album-leaf.is-mobile.is-backward{left:0}
@media(max-width:600px){.nostalgic-album .album-spreads:after{display:none}.nostalgic-album .album-page{padding:28px 22px!important}}
@media(prefers-reduced-motion:reduce){.album-leaf{display:none}}

/* A worn leather front cover, embossed with the founding year. */
.album-cover-scene{position:absolute;inset:3px 4px 7px;z-index:20;perspective:1800px;overflow:hidden;border-radius:3px 7px 7px 3px}
.album-cover{position:absolute;inset:0;width:100%;height:100%;padding:0;border:0;background:none;border-radius:3px 7px 7px 3px;transform-origin:left center;transform-style:preserve-3d;cursor:pointer;text-align:center}
.album-cover-front,.album-cover-inside{position:absolute;inset:0;backface-visibility:hidden;-webkit-backface-visibility:hidden;display:flex;align-items:center;justify-content:center;border-radius:3px 7px 7px 3px;overflow:hidden}
.album-cover-front{background:radial-gradient(ellipse at 4% 1%,#ba98755c,transparent 26%),radial-gradient(ellipse at 98% 100%,#b99a7159,transparent 28%),repeating-linear-gradient(28deg,#ffffff04 0 1px,#00000009 1px 3px),repeating-radial-gradient(ellipse at 34% 61%,#ffffff08 0 1px,transparent 2px 5px),linear-gradient(100deg,#281c16 0%,#513a2b 5%,#35261e 9%,#493327 45%,#3d2a20 90%,#72513a 100%);box-shadow:inset 5px 0 6px #160d0b99,inset -3px 0 6px #c4a07744,inset 0 2px 5px #cbb19044,inset 0 -4px 6px #1e140daa,0 3px 7px #2b1b154d}
.album-cover-front:before{content:'';position:absolute;left:6%;top:0;bottom:0;width:1px;background:#1c100e77;box-shadow:2px 0 1px #c19d6930,-3px 0 6px #1b110e77}
.album-cover-front:after{content:'';position:absolute;inset:8px;border:1px solid #b18c5730;border-radius:2px;box-shadow:inset 0 0 14px #b5926114;pointer-events:none}
.album-cover-border{position:absolute;inset:11% 12% 11% 15%;border:1px solid #c3a16754;box-shadow:0 0 0 3px #21130f22,inset 0 0 0 3px #b99a5830}
.album-cover-year{font:clamp(45px,6vw,76px)/1 Georgia,'Times New Roman',serif;letter-spacing:8px;color:#bda16b;text-shadow:0 1px 0 #e3c89477,0 -1px 1px #160c09,1px 2px 3px #1e120fcc;transform:translateX(5%);opacity:.9}
.album-cover-inside{transform:rotateY(180deg);background:repeating-linear-gradient(25deg,#ffffff04 0 1px,transparent 1px 4px),linear-gradient(90deg,#b9a082,#d0b99a 12%,#bca283 95%,#8a6e51);box-shadow:inset -10px 0 18px #513b214d}
.album-is-closed:not(.album-is-opening) .album-spreads{visibility:hidden}
.album-cover:focus-visible{outline:3px solid #d1b277;outline-offset:-9px}

/* Photographic leather cover replaces the procedural illustration. */
.nostalgic-album .album-cover-front{background:#39281e url('/assets/family/album-cover-1991-realistic.png') center/100% 100% no-repeat;box-shadow:inset 0 0 2px #23150c44,0 3px 7px #2b1b1533}.nostalgic-album .album-cover-front:before,.nostalgic-album .album-cover-front:after,.nostalgic-album .album-cover-border{display:none}.nostalgic-album .album-cover-year{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

/* Photographic rag paper, stitched leather gutter and lifted print edges. */
.nostalgic-album .album-page{background:#f3e8d0 url('/assets/family/album-paper-archival.png') center/100% 100% no-repeat;border:1px solid #b7a58136}
.nostalgic-album .album-page:nth-child(even){background-position:35% 55%;background-size:110% 107%}
.nostalgic-album .album-spread:nth-child(even) .album-page{background-position:65% 35%;background-size:105% 112%}
.nostalgic-album .album-page:before{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,#fffaf018,transparent 55%,#81613e0a 82%,#5d422b25);z-index:0}
.nostalgic-album .album-page:nth-child(even):before{background:linear-gradient(90deg,#5d422b25,#81613e09 18%,transparent 50%,#fffaf018)}
.nostalgic-album .album-spread.is-single .album-page:before{background:radial-gradient(ellipse at center,#fffdf00a,transparent 65%,#6b4a2115)}
.nostalgic-album .album-page:first-child{box-shadow:inset -24px 0 28px -24px #503623a6,inset 1px 0 2px #fff8e8}
.nostalgic-album .album-page:last-child{box-shadow:inset 24px 0 28px -24px #503623a6,inset -1px 0 2px #fff8e8}
.nostalgic-album .album-spreads:after{top:2px;bottom:2px;left:calc(50% - 6px);width:12px;border-radius:45%;opacity:.86;background:linear-gradient(90deg,#2e1c1370,transparent 35%,#ad8f6340 50%,#2e1c1399),url('/assets/family/album-cover-1991-realistic.png') 1% center/1400% 100%;box-shadow:-4px 0 6px #422d1833,4px 0 6px #422d1833}
.nostalgic-album .album-spreads:before{content:'';position:absolute;top:15px;bottom:15px;left:calc(50% - 12px);width:24px;z-index:4;pointer-events:none;background:radial-gradient(ellipse 1px 3px at 3px 9px,#61472f99 90%,transparent),radial-gradient(ellipse 1px 3px at 21px 9px,#61472f99 90%,transparent);background-size:24px 38px;opacity:.7}
.nostalgic-album .album-book:before{height:9px;background:repeating-linear-gradient(to bottom,#b5a182 0 1px,#f6ead3 1px 2px,#dfceb0 2px 3px);box-shadow:0 2px 2px #43321b1a}
.nostalgic-album .album-mount{z-index:1;border:1px solid #d9cbb354;background:#fcf7e9;box-shadow:0 1px 1px #3e2b1e24,1px 5px 7px -3px #3e2b1e4d,-2px 2px 5px -4px #3e2b1e4d;transform:rotate(-.45deg)}
.nostalgic-album .album-page:nth-child(even) .album-mount{transform:rotate(.4deg);box-shadow:0 1px 1px #3e2b1e24,-1px 5px 7px -3px #3e2b1e4d,2px 2px 5px -4px #3e2b1e4d}
.nostalgic-album .album-mount img{background:none;filter:none}
.nostalgic-album .album-corner{width:11px;height:11px;opacity:.85;filter:drop-shadow(0 1px 1px #3b2b1b3d)}
.nostalgic-album .album-corner:nth-of-type(1){background:linear-gradient(135deg,#7b674b 45%,#b6a181 49%,transparent 51%)}
.nostalgic-album .album-corner:nth-of-type(2){background:linear-gradient(225deg,#7b674b 45%,#b6a181 49%,transparent 51%)}
.nostalgic-album .album-corner:nth-of-type(3){background:linear-gradient(45deg,#7b674b 45%,#b6a181 49%,transparent 51%)}
.nostalgic-album .album-corner:nth-of-type(4){background:linear-gradient(315deg,#7b674b 45%,#b6a181 49%,transparent 51%)}
.album-leaf-front:after,.album-leaf-back:after{background:linear-gradient(90deg,#51351618,transparent 30%,#ffffff05 65%,#6b472418)}
.album-leaf-front,.album-leaf-back{border-radius:1px 5px 4px 1px}
.nostalgic-album .album-cover-inside{background:#cbb38c url('/assets/family/album-paper-archival.png') center/cover;box-shadow:inset -12px 0 16px #4c321c55}
.nostalgic-album .album-navigation button{font-size:17px;color:#88765f}.nostalgic-album .album-navigation{gap:18px}.nostalgic-album .album-navigation button span,.nostalgic-album .album-navigation .album-auto-toggle{font-size:9px}
@media(max-width:600px){.nostalgic-album .album-spreads:before{display:none}.nostalgic-album .album-cover-front{background-size:cover}}

/* The panoramic opening print must never be crossed by the binding. */
.nostalgic-album .album-spreads.album-without-gutter:before,.nostalgic-album .album-spreads.album-without-gutter:after{display:none!important}
.nostalgic-album .album-spread.is-single .album-page{box-shadow:inset 0 1px 2px #fffbef,inset 0 -1px 2px #bbaa8c25}
.nostalgic-album .album-page{background-image:linear-gradient(#fffaf16b,#fffaf16b),url('/assets/family/album-paper-archival.png');border-color:#c9bda233}
.nostalgic-album .album-spreads:not(.album-without-gutter):after{left:calc(50% - 3px);width:6px;opacity:.52;background:linear-gradient(90deg,#7d62472b,#59412d88 48%,#f3e6ca77 60%,#8e725238);box-shadow:-3px 0 7px #58402520,3px 0 7px #58402520}
.nostalgic-album .album-spreads:not(.album-without-gutter):before{opacity:.26;width:18px;left:calc(50% - 9px);background-size:24px 44px}
.nostalgic-album .album-mount{padding:3px;transform:rotate(-.15deg);box-shadow:0 1px 1px #3e2b1e1a,0 3px 5px -3px #3e2b1e4d;background:#fcf7ec}
.nostalgic-album .album-page:nth-child(even) .album-mount{transform:rotate(.2deg);box-shadow:0 1px 1px #3e2b1e1a,0 3px 5px -3px #3e2b1e4d}
.nostalgic-album .album-corner{width:8px;height:8px;opacity:.6;filter:drop-shadow(0 1px .5px #3b2b1b24)}
.album-leaf-front,.album-leaf-back{border-radius:1px 3px 2px 1px}

/* Avoid WebKit's blank nested 3D faces on phones. */
@media(max-width:600px){
.nostalgic-album .album-cover,.nostalgic-album .album-leaf{transform-style:flat}
.nostalgic-album .album-cover-front,.nostalgic-album .album-leaf-front{backface-visibility:visible;-webkit-backface-visibility:visible;transform:none}
.nostalgic-album .album-cover-inside,.nostalgic-album .album-leaf-back{display:none}
.nostalgic-album .album-spread.is-active,.nostalgic-album .album-spread.is-active img{visibility:visible}
}
