@import url('https://fonts.googleapis.com/css2?family=Allura&display=swap');
.garden-memory-page .gallery-hero{padding:36px 20px 20px;gap:16px}
.garden-memory-page .gallery-hero h1{font-size:clamp(3.4rem,7vw,6.4rem);line-height:.93}
.garden-memory-page .gallery-hero>div{background:#fffaf1ed;max-width:800px;border:1px solid #d6c6a5}
.garden-memory-page .gallery-hero .hero-painting{max-width:500px;aspect-ratio:2.5;object-position:50% 43%;border-radius:6px}
.garden-memory-page .gallery-hero p:last-child{margin:8px 0}
.scrapbook-title{text-align:center;background:#fffaf0eb;border-radius:8px;padding:15px}
.scrapbook-title h2,.memory-tree-section h2,.wedding-share-card h2,.live-wall-heading h2{font-size:clamp(2.6rem,5vw,3.8rem);line-height:1;margin:0;color:#4e6144}
.scrapbook-title p,.memory-tree-section>p{margin:10px auto;max-width:650px;line-height:1.6;color:#5e6b51}
.scrapbook-albums{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:stretch;padding:14px;background:#fff9edec;border:1px solid #c8b68d;border-radius:8px;margin:16px 0}
.scrapbook-albums button{display:flex;flex-direction:column;gap:8px;height:100%;align-items:center;justify-content:flex-start;position:relative;padding:6px 6px 11px;border:1px solid #b6a27c;border-left:6px solid #9d8a63;background:#f8ecd5;color:#46583b;border-radius:4px;box-shadow:2px 3px 0 #d5c6a8,4px 5px 0 #e3d8bf;transition:transform .25s,box-shadow .25s;min-width:0}
.scrapbook-albums button:hover{transform:translateY(-3px)}
.scrapbook-albums button[aria-pressed=true]{border-color:#637751;border-left-color:#506442;background:#e7eadb;transform:translateY(-3px);box-shadow:2px 4px 0 #adba99,4px 6px 0 #cbd1b9}
.scrapbook-albums img{width:100%;aspect-ratio:1.32;object-fit:cover;border:1px solid #ccb994;border-radius:3px}
.scrapbook-albums span{font:600 clamp(.95rem,2vw,1.35rem)/1.1 'Cormorant Garamond',Georgia,serif;overflow-wrap:anywhere;text-align:center}
.album-open{display:grid;grid-template-columns:1.2fr 1fr;align-items:center;gap:18px;padding:15px;background:#fff9ed;border:1px solid #cbb994;border-radius:5px;box-shadow:inset 3px 0 0 #c8ba9c,0 5px 12px #62573c22;margin:16px 0;perspective:1000px}
.album-open img{width:100%;height:clamp(115px,20vw,240px);object-fit:cover;border:1px solid #b7a782;border-radius:5px}
.album-open h2{font-size:clamp(2rem,5vw,3.75rem);margin:7px 0;color:#4d6040}
.album-open p{margin:8px 0;color:#5b6751;line-height:1.5}
.album-open.opening{animation:open-memory .6s ease-out}
@keyframes open-memory{from{opacity:.6;transform:rotateY(-8deg) translateX(-10px)}to{opacity:1;transform:none}}
.memory-toolbar{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:9px;margin:14px 0;background:#fff9edec;border:1px solid #cbb994;padding:9px;border-radius:6px}
.view-options{display:flex;gap:6px}
.view-options button[aria-pressed=true]{background:#e4ead9;border-color:#81936c;color:#3d5233}
.memory-toolbar button{min-height:44px}
.memory-card{display:block;break-inside:avoid;background:#fffaf0;border:1px solid #d4c3a2;box-shadow:0 5px 12px #54472f24;padding:9px 9px 7px;margin-bottom:18px;border-radius:3px;transform:rotate(var(--tilt,0deg));position:relative}
.memory-card:nth-child(4n+1){--tilt:-.7deg}.memory-card:nth-child(4n+3){--tilt:.7deg}
.memory-card .photo-tile{box-shadow:none;margin:0;border-radius:0;background:#ede5d1;border:0;overflow:hidden}
.memory-card .photo-tile img{min-height:0;max-height:600px;object-fit:contain;background:#eae4d6}
.memory-card video{display:block;width:100%;aspect-ratio:1.35;object-fit:cover;background:#283829}
.memory-card .video-label{position:absolute;top:14px;left:14px;background:#334b34dc;color:white;padding:5px 9px;border-radius:20px;pointer-events:none;font-size:.78rem}
.memory-caption{padding:11px 3px 6px;min-height:32px;text-align:left;color:#4e5944}
.memory-caption .caption-note{font:500 1.5rem/1.05 'Allura','Brush Script MT',cursive;display:block;overflow-wrap:anywhere;color:#725b48}
.memory-caption .caption-meta{display:block;font-size:.77rem;color:#766d5a;margin-top:7px;line-height:1.4}
.memory-heart{display:inline-flex;align-items:center;gap:7px;border:1px solid #d8c2b5;background:#fff7ed;padding:6px 10px;border-radius:22px;color:#a55f64;font-size:.88rem;min-height:39px}
.memory-heart strong{font:1.35rem/1 Georgia,serif}
.memory-heart[aria-pressed=true]{background:#f3dfe1;border-color:#cb919a}
.photos.timeline{columns:auto;max-width:880px;margin:auto;position:relative;padding-left:23px;border-left:2px solid #a6b590}
.photos.timeline .memory-card{transform:none;margin:0 0 24px;display:grid;grid-template-columns:1fr minmax(160px,.7fr);gap:12px;align-items:center}
.photos.timeline .memory-card::before{content:"";position:absolute;left:-32px;top:25px;width:14px;height:14px;background:#82966b;border:3px solid #f9f3e8;border-radius:50%;box-shadow:0 0 0 1px #82966b}
.photos.timeline .memory-card .photo-tile{grid-row:1/3}
.photos.timeline .memory-card .memory-heart{justify-self:start;align-self:start}
.photos.timeline .memory-card img,.photos.timeline .memory-card video{max-height:360px;object-fit:contain}
.memory-tree-section{text-align:center;max-width:860px;margin:0 auto 55px;padding:25px clamp(10px,4vw,34px);border:1px solid #cab78f;background:#fffaf0ef;border-radius:8px}
.memory-tree{position:relative;isolation:isolate;aspect-ratio:1.25;margin:18px auto;border:1px solid #c0ad86;background:url("invite-oak-green-gold.webp") center center/cover;border-radius:8px;overflow:hidden}
.memory-tree::after{content:"";position:absolute;inset:0;z-index:-1;background:#3445220b;pointer-events:none}
.tree-leaves{position:absolute;inset:8% 9% 35%;display:grid;grid-template-columns:repeat(6,1fr);grid-template-rows:repeat(3,1fr);gap:2px;align-items:center}
.tree-leaf{position:relative;display:grid;place-items:center;aspect-ratio:1.2;border:0;border-radius:65% 22% 65% 22%;background:#eef0c8e6;box-shadow:0 2px 4px #2c3c2255;transform:rotate(var(--turn));padding:3px;overflow:hidden;cursor:pointer;min-width:0;max-width:84px;margin:auto}
.tree-leaf img,.tree-leaf video{width:100%;height:100%;object-fit:cover;border-radius:65% 22% 65% 22%;pointer-events:none}
.tree-leaf:hover,.tree-leaf:focus-visible{transform:rotate(0deg) scale(1.12);z-index:3}
#tree-empty{position:absolute;bottom:12%;left:10%;right:10%;color:#fff9de;text-shadow:0 1px 4px #3e432d;background:#4e5d3f9e;padding:10px;border-radius:5px}
.tree-pages{display:flex;gap:8px;align-items:center;justify-content:center;flex-wrap:wrap}
.tree-pages span{font-size:.88rem;color:#607052}
.tree-note{min-height:24px;margin:9px auto;color:#6d654f;font:1.4rem 'Allura',cursive}
.wedding-memory-wall{background:#fbf6eb url("travel-garden-trail.webp") center/cover fixed}
.wedding-memory-wall .gallery-hero>div{background:#fffaf0ef;border-radius:8px;padding:22px 15px}
.wedding-share-card{display:grid;grid-template-columns:1fr 205px;gap:25px;align-items:center;text-align:left;max-width:900px;margin:0 auto 26px;background:#fffaf0f2;border:1px solid #c8b68f;border-radius:8px;padding:24px}
.wedding-share-card p{line-height:1.6;color:#59654d}
.wedding-share-card img{width:100%;height:auto;border:5px solid white;box-shadow:0 0 0 1px #b6a17a;border-radius:3px}
.wedding-share-card .secondary,.wedding-share-card .primary{margin:5px 4px}
#share-status{font-size:.8rem;margin:2px}
.live-wall-heading{display:flex;align-items:center;gap:12px;justify-content:center;background:#fffaf0ed;padding:18px;flex-wrap:wrap;border:1px solid #cbb994;border-radius:5px}
.live-wall-heading #wall-updated{font-size:.8rem;color:#66765a}
.live-dot{width:11px;height:11px;background:#6b9155;border-radius:50%;box-shadow:0 0 0 5px #75965b35}
.media-stage{min-width:0;display:grid;place-items:center;flex:1}
.lightbox-image .media-stage img,.media-stage video{max-width:100%;max-height:68svh;object-fit:contain;width:auto;height:auto}
.media-stage video{width:100%}
.slideshow-controls{display:flex;gap:8px;justify-content:center;align-items:center;flex-wrap:wrap;margin:7px 0}
#photo-caption{font:1.55rem/1.2 'Allura',cursive;min-height:10px}
.upload-previews video{width:62px;height:62px;object-fit:cover;flex-shrink:0}
@media(max-width:680px){
 .scrapbook-albums{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
 .album-open{grid-template-columns:1fr;text-align:center;gap:5px;padding:10px}
 .album-open img{height:130px}
 .memory-card{padding:5px;margin-bottom:10px}
 .memory-caption .caption-note{font-size:1.25rem}
 .memory-caption .caption-meta{font-size:.7rem}
 .photos.timeline .memory-card{grid-template-columns:minmax(0,1fr);gap:6px}
 .photos.timeline .memory-card .photo-tile{grid-row:auto}
 .memory-tree-section{margin:10px 12px 40px}
 .tree-leaves{inset:8% 5% 32%;gap:0}
 .tree-leaf{padding:2px}
 .wedding-share-card{grid-template-columns:1fr;text-align:center;margin:0 12px 20px;padding:20px}
 .wedding-share-card img{width:165px;margin:auto}
 .live-wall-heading h2{font-size:2.5rem}
 .memory-toolbar .primary,.memory-toolbar .secondary{padding:8px 10px;font-size:.8rem}
}
@media(prefers-reduced-motion:reduce){.album-open.opening{animation:none}.memory-card{transform:none}}
#write-note{margin:8px 4px}
#note-text{width:100%;font:1.4rem 'Allura',cursive;background:#fffdf5;border:1px solid #c9bc9e;border-radius:4px;padding:10px;color:#526047;resize:vertical}
#read-note-body{font:2rem/1.25 'Allura',cursive;color:#6b5945;overflow-wrap:anywhere}
#read-note-name{font:italic 1.1rem 'Cormorant Garamond',Georgia,serif;text-align:right}

/* Real photographs framed as the covers of the couple's three scrapbooks. */
.garden-memory-page .scrapbook-albums img{aspect-ratio:4/3;background:#efeadc}
.garden-memory-page .scrapbook-albums [data-album=dating] img{object-position:50% 36%}
.garden-memory-page .scrapbook-albums [data-album=ecuador] img{object-position:50% 62%}
.garden-memory-page .scrapbook-albums [data-album=proposal] img{object-position:50% 50%}
.garden-memory-page .album-open img{height:clamp(190px,32vw,380px);object-fit:contain;background:#f3ecdd url('watercolor-paper.png')}

/* A bound, two-page scrapbook with tactile paper and a hinged page turn. */
.scrapbook-book {max-width:1100px;margin:28px auto 20px}
.book-spread {
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));position:relative;
 isolation:isolate;perspective:1800px;border:9px solid #6d7958;border-radius:14px 14px 8px 8px;
 padding:5px;background:#b9a487;box-shadow:0 10px 25px #4d382c45,0 3px 0 2px #a28d6a;
 touch-action:pan-y;outline-offset:5px;
}
.book-spread:focus-visible{outline:2px solid #826c91}
.book-page {
 position:relative;min-width:0;min-height:clamp(320px,52vw,540px);
 padding:clamp(15px,3vw,36px) clamp(12px,3.3vw,40px) 32px;
 background:#fffaf0 url('watercolor-paper.png');border:1px solid #cbbd9c;
 border-radius:4px 1px 3px 5px;display:flex;align-items:center;justify-content:center;flex-direction:column;
 box-shadow:inset -19px 0 27px -26px #6b5533,inset 1px 0 2px #a9936b45;
}
.book-page:nth-child(even){border-radius:1px 4px 5px 3px;box-shadow:inset 19px 0 27px -26px #6b5533,inset -1px 0 2px #a9936b45}
.book-page::before,.book-page::after{content:'';position:absolute;height:1px;bottom:-3px;left:3px;right:3px;background:#b7a88e}
.book-page::after{bottom:-5px;left:5px;right:5px;background:#e8d9bb}
.book-page .memory-card{width:100%;margin:0;transform:rotate(-1.2deg);padding:9px 9px 10px;box-shadow:2px 4px 9px #6d533638;max-width:460px;background:#fffdf7}
.book-page:nth-child(even) .memory-card{transform:rotate(1.1deg)}
.book-page .memory-card::before{
 content:'';position:absolute;left:50%;top:-9px;transform:translateX(-50%) rotate(-5deg);
 width:68px;height:20px;background:#ddd0aabc;z-index:1;box-shadow:0 1px 2px #66513623;pointer-events:none
}
.book-page .memory-card .photo-tile img,.book-page .memory-card .photo-tile video{
 width:100%;height:auto;aspect-ratio:4/5;max-height:390px;object-fit:contain;background:#f1ece1
}
.book-page .photo-tile:hover img{transform:none}
.book-page .memory-caption{padding:8px 2px 4px}
.book-page .caption-meta{margin-top:4px}
.book-page-number{position:absolute;bottom:10px;left:18px;color:#796a51;font:.75rem 'DM Sans',sans-serif}
.book-page:nth-child(even) .book-page-number{left:auto;right:18px}
.book-last-page p{font:2.2rem/1.15 'Allura',cursive;color:#7a647e;text-align:center}
.book-controls{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:18px 0;padding:10px;background:#fff9edec;border:1px solid #cbb994;border-radius:6px}
.book-controls button{min-height:44px;flex-shrink:0;font-size:clamp(.75rem,2vw,.9rem);padding:8px 12px}
.book-controls button:disabled{opacity:.45;cursor:default}
#book-count{font-size:.85rem;color:#57614c;text-align:center}
.book-turning{
 position:absolute;top:5px;bottom:5px;width:calc(50% - 5px);z-index:5;overflow:hidden;pointer-events:none;
 backface-visibility:hidden;will-change:transform;box-shadow:3px 5px 18px #51412d48
}
.book-turn-next{left:50%;transform-origin:left center;animation:book-flip-next .62s cubic-bezier(.38,.08,.35,1) forwards}
.book-turn-prev{right:50%;transform-origin:right center;animation:book-flip-prev .62s cubic-bezier(.38,.08,.35,1) forwards}
@keyframes book-flip-next{from{transform:rotateY(0)}to{transform:rotateY(-180deg)}}
@keyframes book-flip-prev{from{transform:rotateY(0)}to{transform:rotateY(180deg)}}
@media(max-width:640px){
 .book-spread{grid-template-columns:1fr;padding:4px;border-width:7px}
 .book-page{padding:22px 18px 30px;min-height:330px}
 .book-page .memory-card .photo-tile img,.book-page .memory-card .photo-tile video{max-height:420px}
 .book-turning{width:calc(100% - 8px);top:4px;bottom:4px}
 .book-turn-next{left:4px}.book-turn-prev{right:4px}
 .book-controls{padding:8px;gap:5px}
 .view-options{flex-wrap:wrap}
}
@media(prefers-reduced-motion:reduce){.book-page .memory-card,.book-page:nth-child(even) .memory-card{transform:none}.book-turning{display:none}}
