#memories{background:transparent!important;border:0!important;padding:15px 0 40px!important;box-shadow:none!important}#memories:before,#memories:after{display:none!important}.book-legacy{display:none}.book-legacy.legacy-editing{display:block}.keepsake{color:#624537}.book-heading{text-align:center;margin:10px 0 30px}.book-eyebrow{font-size:10px;letter-spacing:3px;color:#98785d}.book-heading h2{font:42px Georgia,serif!important;margin:12px 0!important;color:#674638!important}.book-heading p{font-size:14px;color:#927868}.book-stage{perspective:1600px;margin:auto;max-width:900px}.leather-cover{display:flex!important;position:relative;flex-direction:column;align-items:center;width:min(390px,88%);min-height:510px;margin:0 auto 35px;padding:35px 35px 28px!important;background:radial-gradient(ellipse at 20% 10%,#b6815740,transparent 55%),repeating-linear-gradient(92deg,#ffffff04 0 1px,#00000004 1px 3px),linear-gradient(100deg,#45291c 0%,#775039 7%,#825638 45%,#65402b)!important;border:1px solid #482b1c!important;border-radius:8px 17px 17px 8px!important;color:#ecd5ae!important;box-shadow:inset 8px 0 8px #2c160d70,inset -3px 0 4px #ecd2a540,8px 6px 0 -2px #e5d6b7,12px 9px 0 -3px #7c5138,16px 24px 32px #45291c33!important;transform:rotate(-3deg);transition:transform .5s,box-shadow .5s;cursor:pointer}.leather-cover:hover{transform:rotate(-1deg) translateY(-5px)}.cover-stitch{position:absolute;inset:13px;border:1px dashed #c29a6b88;border-radius:5px 10px 10px 5px;pointer-events:none}.cover-title{font:italic 27px Georgia,serif;letter-spacing:.2px;text-shadow:0 2px 1px #321a14}.cover-photo{position:relative;display:block;background:#fff7e8;color:#765d49;padding:14px 12px 18px;width:95%;margin:37px 0 15px;box-shadow:2px 5px 10px #1e100e66;transform:rotate(5deg)}.cover-photo:before,.cover-photo:after{content:'';position:absolute;top:-12px;width:80px;height:27px;background:#debf8ec9;box-shadow:0 1px 2px #33200f20;transform:rotate(-27deg);left:-19px}.cover-photo:after{left:auto;right:-20px;transform:rotate(30deg)}.cover-photo img{display:block;width:100%;height:215px;object-fit:contain;background:#eee2cf}.cover-photo>span{display:block;font:italic 16px Georgia,serif;margin-top:12px}.cover-heart{font:30px Georgia;margin:6px}.cover-bottom{font-size:9px;letter-spacing:3px}.cover-open{margin-top:22px;font:12px Georgia,serif;color:#f2dec0}.book-footnote{text-align:center;font:italic 14px Georgia,serif;color:#a48b76;margin:28px}.book-tools{display:flex;justify-content:space-between;align-items:center;margin:0 4px 15px;font:italic 17px Georgia;color:#96735b}.keepsake button.book-text{background:transparent!important;color:#77533e!important;font-size:12px;padding:8px}.open-book{display:grid;grid-template-columns:1fr 1fr;padding:9px;background:#69442e;border-radius:8px 12px 12px 8px;box-shadow:0 17px 35px #50301e2e,3px 4px 0 #b49b79;animation:book-unfold .65s ease both;transform-origin:center}.paper{position:relative;background:#faf3e2;color:#674e3d;min-height:490px;padding:30px 28px 38px}.left-paper{background:linear-gradient(90deg,#faf3e2 90%,#d4c4a7);border-radius:3px 0 0 3px}.right-paper{background:linear-gradient(90deg,#c4b295 0,#f5ecd8 6%,#fff9ed 28%);border-radius:0 3px 3px 0}.paper>small{font-size:8px;letter-spacing:2px;color:#9c8366!important}.paper h3{font:italic 29px Georgia,serif;color:#75533d!important;margin:22px 0 30px}.paper-photo{position:relative;background:#fffdf7;padding:10px 10px 20px;min-height:245px;display:flex;flex-direction:column;align-items:center;justify-content:center;box-shadow:0 3px 9px #654c2522;transform:rotate(-3deg);text-align:center}.paper-photo:before{content:'';position:absolute;top:-10px;width:75px;height:25px;background:#d7b98a99;transform:rotate(7deg)}.paper-photo img{width:100%;height:235px;object-fit:contain}.photo-heart{font:55px Georgia;color:#c6a98d}.paper-photo p{font:italic 17px/1.6 Georgia;color:#a18b72}.paper-date{text-align:center;font:italic 14px Georgia;color:#9b8067;margin-top:26px}.page-number{position:absolute;bottom:15px;left:50%;font:11px Georgia;color:#ab967a}.paper label{display:block;font-size:11px;color:#8b7057!important;margin:20px 0 8px}.paper input,.paper textarea{width:100%;box-sizing:border-box;background:#fffdf550!important;color:#674e3d!important;border:0!important;border-bottom:1px solid #dacbb2!important;border-radius:0!important;padding:9px 0;font:15px Georgia,serif}.paper textarea{height:85px;resize:vertical}.paper .import-photo{display:block;text-align:center;padding:15px 10px;border:1px dashed #baa283;border-radius:3px;cursor:pointer;font:14px Georgia,serif;color:#76583c!important;background:#f0e5d2}.import-photo>span{margin-right:8px}.import-photo small{display:block;font:10px system-ui;margin-top:6px;color:#9b8469!important}.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;padding:0!important}.import-photo:focus-within,.import-photo:hover{outline:2px solid #b2916b}.keepsake .save-page{width:100%;background:#79553b!important;color:#fff1d9!important;border:0!important;border-radius:4px;font-size:12px}.page-thumbnails{display:flex;gap:6px;margin-top:10px}.page-thumbnails img{width:45px;height:45px;object-fit:cover;border:3px solid white}.book-pagination{display:flex;justify-content:space-between;align-items:center;margin-top:20px;font-size:11px;color:#9b806a}.book-pagination button{background:transparent!important;color:#79583f!important;border:1px solid #d6bfa9!important;font-size:12px;padding:10px 14px}.book-pagination button:disabled{opacity:.3;cursor:default}.book-status,#bookSelected{font-size:11px;color:#8c7055!important;line-height:1.5}.keepsake button:focus-visible{outline:3px solid #c89c67;outline-offset:5px}@keyframes book-unfold{from{opacity:0;transform:rotateY(-15deg) scale(.96)}to{opacity:1;transform:none}}@media(max-width:600px){.paper{padding:22px 13px 30px;min-height:470px}.paper h3{font-size:22px}.paper-photo{min-height:190px;padding:7px}.paper-photo img{height:190px}.paper-photo p{font-size:14px}.book-tools{font-size:14px}.open-book{padding:5px}.paper>small{font-size:7px;letter-spacing:1px}.paper label{font-size:10px}.paper input,.paper textarea{font-size:13px}.book-heading h2{font-size:35px!important}.book-pagination button{padding:9px}.cover-photo img{height:205px}}@media(prefers-reduced-motion:reduce){.open-book{animation:none}.leather-cover{transition:none}}
#memories .keepsake{background:radial-gradient(ellipse at top,#fff9ef,#efe3d2);padding:25px 20px 10px;border-radius:18px}#memories .keepsake .leather-cover{background:radial-gradient(ellipse at 20% 10%,#b6815740,transparent 55%),repeating-linear-gradient(92deg,#ffffff04 0 1px,#00000004 1px 3px),linear-gradient(100deg,#45291c 0%,#775039 7%,#825638 45%,#65402b)!important;color:#ecd5ae!important}#memories .keepsake .book-text,#memories .keepsake .book-pagination button{background:transparent!important;color:#79583f!important}#memories .keepsake .save-page{background:#79553b!important;color:#fff1d9!important}#memories .paper input,#memories .paper textarea{background:#fffdf550!important;color:#674e3d!important}#memories .paper label{color:#8b7057!important}#memories .paper small{color:#9c8366!important}@media(max-width:600px){#memories .keepsake{padding:22px 8px 10px}}
/* A wider, rectangular keepsake cover. */
#memories .keepsake .leather-cover{width:min(500px,94%);min-height:380px;padding:28px 38px 25px!important;border-radius:5px 10px 10px 5px!important}
#memories .keepsake .cover-photo{width:70%;margin:27px 0 10px;padding:10px 10px 14px}
#memories .keepsake .cover-photo img{height:175px}
#memories .keepsake .cover-open{margin-top:15px}
#memories .keepsake .cover-stitch{border-radius:3px 6px 6px 3px}
@media(max-width:520px){#memories .keepsake .leather-cover{min-height:330px;padding:25px 23px 22px!important}#memories .keepsake .cover-title{font-size:24px}#memories .keepsake .cover-photo{width:75%;margin-top:24px}#memories .keepsake .cover-photo img{height:140px}#memories .keepsake .cover-photo>span{font-size:13px}}
/* Landscape photo-album proportions. */
#memories .keepsake .leather-cover{width:min(580px,96%);min-height:0;aspect-ratio:1.6;padding:24px 35px 20px!important;box-sizing:border-box}
#memories .keepsake .cover-title{font-size:25px}
#memories .keepsake .cover-photo{width:53%;margin:20px 0 6px;padding:8px 8px 10px}
#memories .keepsake .cover-photo img{height:135px}
#memories .keepsake .cover-photo>span{font-size:13px;margin-top:7px}
#memories .keepsake .cover-heart{font-size:22px;margin:3px}
#memories .keepsake .cover-open{margin-top:10px}
@media(max-width:520px){#memories .keepsake .leather-cover{width:96%;min-height:0;aspect-ratio:1.6;padding:18px 22px 15px!important}#memories .keepsake .cover-title{font-size:21px}#memories .keepsake .cover-photo{width:58%;margin:17px 0 5px;padding:6px 6px 8px}#memories .keepsake .cover-photo img{height:95px}#memories .keepsake .cover-photo>span{font-size:11px;margin-top:6px}#memories .keepsake .cover-heart{font-size:19px;margin:2px}#memories .keepsake .cover-bottom{font-size:8px;letter-spacing:2px}#memories .keepsake .cover-open{font-size:11px;margin-top:8px}}
/* Softer, nearly square proportions for both cover and pages. */
#memories .keepsake .leather-cover{width:min(440px,94%);aspect-ratio:1.1;justify-content:center;padding:28px 32px!important}
#memories .keepsake .cover-photo{width:70%;margin:25px 0 10px}
#memories .keepsake .cover-photo img{height:170px}
#memories .keepsake .cover-heart{margin:6px;font-size:25px}
#memories .keepsake .cover-open{margin-top:15px}
#memories .keepsake .paper{height:calc((100cqw - 18px) / 2.2)}
@media(max-width:600px){#memories .keepsake .paper{height:calc((100cqw - 10px) / 2.2)}}
@media(max-width:520px){#memories .keepsake .leather-cover{width:94%;aspect-ratio:1.1;padding:23px 24px!important}#memories .keepsake .cover-photo{width:70%;margin:20px 0 8px}#memories .keepsake .cover-photo img{height:140px}#memories .keepsake .cover-heart{margin:4px;font-size:22px}}

/* Spacious portrait pages: natural content height, no nested scrolling. */
#memories .keepsake .book-stage.is-open{max-width:760px;container-type:normal}
#memories .keepsake .open-book{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:stretch;min-height:860px;box-sizing:border-box;padding:10px}
#memories .keepsake .paper{height:auto;min-height:840px;aspect-ratio:auto;overflow:visible;min-width:0;box-sizing:border-box;padding:38px 28px 52px}
#memories .keepsake .paper>small{display:block;font-size:9px;line-height:1.6;letter-spacing:1.8px}
#memories .keepsake .paper h3{font:italic 29px/1.3 Georgia,serif;margin:28px 0 36px;overflow-wrap:anywhere}
#memories .keepsake .paper-photo{height:360px;min-height:0;box-sizing:border-box;padding:12px 12px 22px;margin:0 5px}
#memories .keepsake .paper-photo img{height:100%;min-height:0;width:100%;object-fit:contain}
#memories .keepsake .paper-date{margin-top:32px;font:italic 15px Georgia,serif}
#memories .keepsake .right-paper{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:12px}
#memories .keepsake .paper label{font-size:12px;line-height:1.5;margin:15px 0 0}
#memories .keepsake .paper input,#memories .keepsake .paper textarea{flex-shrink:0;min-width:0;padding:12px 4px;font:16px/1.5 Georgia,serif;box-sizing:border-box}
#memories .keepsake .paper textarea{height:180px;min-height:180px;field-sizing:content;resize:vertical;overflow:visible}
#memories .keepsake .page-thumbnails{display:flex;flex-wrap:wrap;gap:8px;margin:4px 0}
#memories .keepsake .page-thumbnails:empty{display:none}
#memories .keepsake .page-thumbnails img{width:48px;height:48px;object-fit:cover}
#memories .keepsake .paper .import-photo{margin:8px 0 0;padding:22px 10px;font-size:15px}
#memories .keepsake .import-photo small{display:block;margin-top:8px;font-size:11px}
#memories .keepsake .save-page{flex-shrink:0;min-height:46px;padding:13px;font-size:14px;margin-top:4px}
#memories .keepsake .book-status,#memories .keepsake #bookSelected{font-size:12px;line-height:1.5;margin:0;overflow-wrap:anywhere}
#memories .keepsake .page-number{left:auto;right:24px;bottom:20px}
@media(max-width:600px){
#memories .keepsake .open-book{padding:6px;min-height:900px}
#memories .keepsake .paper{min-height:888px;padding:30px 15px 45px}
#memories .keepsake .paper h3{font-size:24px}
#memories .keepsake .paper-photo{height:310px;margin:0}
#memories .keepsake .paper input,#memories .keepsake .paper textarea{font-size:14px}
#memories .keepsake .paper>small{font-size:8px;letter-spacing:1px}
}
@media(max-width:440px){
#memories .keepsake .open-book{grid-template-columns:minmax(0,1fr);min-height:0}
#memories .keepsake .paper{min-height:0;padding:30px 24px 48px}
#memories .keepsake .left-paper{background:linear-gradient(#faf3e2 94%,#e2d4bb);border-radius:3px 3px 0 0}
#memories .keepsake .right-paper{background:linear-gradient(#e2d4bb,#fff9ed 6%);border-radius:0 0 3px 3px}
#memories .keepsake .paper-photo{height:340px}
}
