@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=Playfair+Display:ital,wght@0,400;0,500;1,400&family=Caveat:wght@400;500;600&family=Poppins:wght@300;400;500&display=swap');*{margin:0;padding:0;box-sizing:border-box}body{background:#3b151c;color:#4d2929;font-family:'Poppins',sans-serif;overflow-x:hidden}button{font-family:'Poppins',sans-serif;cursor:pointer;border:none}.page{display:none;min-height:100vh;width:100%;padding:30px;align-items:center;justify-content:center}.page.active{display:flex}.small-label{display:block;text-transform:uppercase;letter-spacing:4px;font-size:10px;color:#9d7664;margin-bottom:14px}#page1{background:radial-gradient(circle at center,#6b313b,#3b151c)}.first-container{text-align:center;display:flex;flex-direction:column;align-items:center;gap:25px}.birthday-image{width:min(460px,85vw);max-height:65vh;object-fit:contain;filter:drop-shadow(0 18px 25px rgba(0,0,0,.3))}.click-btn,.surprise-container button,#calendar-cover button,#calendar-inside button{background:#7c3945;color:#f9ebd7;border:1px solid #c5a17e;padding:13px 28px;border-radius:30px;transition:.3s;letter-spacing:1px}.click-btn:hover,.surprise-container button:hover,#calendar-cover button:hover,#calendar-inside button:hover{background:#b37a72;transform:translateY(-3px);color:white}#page2{background:radial-gradient(circle at center,#71414a,#35151c)}.calendar-container{position:relative;display:flex;width:min(1000px,96vw);min-height:570px;background:#d7bda0;padding:15px;border-radius:5px;box-shadow:0 30px 65px rgba(0,0,0,.4)}.book-page{width:50%;min-height:540px;padding:40px;background:linear-gradient(rgba(255,248,231,.9),rgba(255,248,231,.9)),repeating-linear-gradient(0deg,#c9b292 0px,#c9b292 1px,transparent 1px,transparent 30px)}.left-page{border-radius:4px 0 0 4px;background-color:#f1e3cb}.left-page-content{border:1px solid rgba(153,113,78,.35);min-height:450px;padding:25px;text-align:center;position:relative}.birthday-number{font-family:'DM Serif Display',serif;font-size:115px;color:#873c49;line-height:1;margin:20px 0}.left-page h2{font-family:'Caveat',cursive;font-size:42px;color:#743540}.left-page p{margin-top:20px;line-height:1.9;font-size:13px}.left-wish{font-family:'Caveat',cursive;font-size:22px !important;color:#8b4e52}.left-page-heart{font-size:45px;color:#a55b63;margin-top:20px}.book-spine{width:22px;background:linear-gradient(90deg,#7c4a3e,#c5a27e,#754439);z-index:3;box-shadow:2px 0 5px rgba(0,0,0,.2)}.right-page{position:relative;border-radius:0 4px 4px 0;background-color:#f7ead6}#calendar-cover{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;min-height:450px}.cover-decoration{font-size:45px;color:#ae8164;margin-bottom:20px}#calendar-cover h1{font-family:'Caveat',cursive;font-size:48px;color:#793a44}#calendar-cover p{margin:20px 0 35px;font-size:13px}#calendar-inside{display:none;text-align:center}#calendar-inside h1{font-family:'DM Serif Display',serif;font-size:30px;color:#763845}.calendar-subtitle{font-family:'Caveat',cursive;margin:5px 0 20px;font-size:22px}.calendar{background:#fff9ef;padding:15px;border:1px solid #ddc6a5;box-shadow:0 4px 12px rgba(92,49,34,.1)}.weekdays,.dates{display:grid;grid-template-columns:repeat(7,1fr);gap:5px}.weekdays div{font-size:10px;color:#986957;padding:8px 0}.dates div{min-height:34px;display:flex;justify-content:center;align-items:center;font-size:12px;color:#61413a}.dates .birthday{position:relative;background:#9c4555;color:white;border-radius:50%;font-weight:bold}.dates .birthday::after{content:"♥";position:absolute;top:-10px;right:-5px;font-size:13px;color:#b94e5c}.special-date{font-family:'Caveat',cursive;font-size:20px;margin:15px 0;color:#88444e}#page3{background:radial-gradient(circle at center,#f1dfc4,#a47b67)}.surprise-container{text-align:center;background:#f6e9d5;padding:55px 40px;border:1px solid #d3ad83;outline:10px solid rgba(225,195,157,.2);max-width:650px;box-shadow:0 25px 50px rgba(60,30,20,.25)}.surprise-container h1{font-family:'Caveat',cursive;font-size:clamp(40px,6vw,65px);color:#833c4a}.cake{font-size:115px;margin:25px;animation:cakeBounce 2s ease-in-out infinite}.surprise-container h2{font-family:'Playfair Display',serif;color:#743946}.surprise-container p{margin:20px;font-family:'Caveat',cursive;font-size:28px}@keyframes cakeBounce{0%,100%{transform:translateY(0)}50%{transform:translateY(-10px)}}.balloon{position:fixed;bottom:-120px;font-size:55px;z-index:100;pointer-events:none;display:none}.balloon.active{display:block;animation:floatBalloon 9s linear forwards}.balloon1{left:10%}.balloon2{left:35%;animation-delay:1s}.balloon3{left:70%;animation-delay:2s}.balloon4{left:90%;animation-delay:3s}@keyframes floatBalloon{0%{transform:translateY(0) rotate(-10deg)}100%{transform:translateY(-120vh) rotate(15deg)}}.confetti{position:fixed;top:-40px;font-size:25px;pointer-events:none;z-index:999;animation:fallConfetti 5s linear forwards}@keyframes fallConfetti{to{transform:translateY(110vh) rotate(720deg);opacity:0}}#page4{display:none;flex-direction:column;align-items:center;justify-content:flex-start;padding:60px 25px;background-color:#54242c;background-image:radial-gradient(rgba(235,205,163,.08) 1px,transparent 1px);background-size:20px 20px}.scrapbook-header{text-align:center;margin-bottom:45px;color:#f1dfc5}.scrapbook-header h1{font-family:'Caveat',cursive;font-size:clamp(45px,6vw,75px);font-weight:500}.scrapbook-header p{font-family:'Playfair Display',serif;font-style:italic;color:#d6b89b;margin-top:10px}#memory-container{width:min(1450px,100%);display:grid;grid-template-columns:repeat(3,minmax(260px,1fr));gap:65px 45px;align-items:start}.memory{--paper:#f0dfc5;position:relative;min-width:0;padding:20px;overflow:visible;background:linear-gradient(135deg,rgba(255,255,255,.25),transparent 45%),var(--paper);color:#593b34;box-shadow:3px 8px 14px rgba(0,0,0,.22),inset 0 0 25px rgba(143,101,63,.07);transform:rotate(var(--rotation,0deg));transition:transform .3s,box-shadow .3s;isolation:isolate}.memory:hover{transform:rotate(0deg) translateY(-6px);box-shadow:0 18px 30px rgba(0,0,0,.32);z-index:30}.memory::before{content:"";position:absolute;inset:0;pointer-events:none;opacity:.22;z-index:-1;background:repeating-linear-gradient( 35deg,transparent 0px,transparent 4px,rgba(121,83,49,.08) 5px,transparent 6px )}.memory::after{content:"";position:absolute;top:0;right:0;width:32px;height:32px;background:linear-gradient(135deg,transparent 49%,#bba182 50%,#ddc9a9 52%);filter:drop-shadow(-2px 2px 2px rgba(0,0,0,.12));z-index:5;pointer-events:none}.memory-photo{display:block;width:100%;height:225px;object-fit:cover;padding:9px 9px 25px;background:#fffaf0;box-shadow:0 5px 12px rgba(55,30,20,.2);position:relative;z-index:2}.memory-content{position:relative;z-index:3;padding:16px 5px 5px}.memory-content h2{font-family:'Caveat',cursive;font-size:30px;font-weight:500;margin-bottom:7px;color:#743c43}.short-text,.full-text{font-family:'Playfair Display',serif;font-style:italic;font-size:14px;line-height:1.8;color:#77584b}.full-text{display:none;margin-top:12px;font-style:normal;white-space:pre-line}.full-text.show{display:block}.read-more{margin-top:13px;background:transparent;color:#924f58;font-family:'Caveat',cursive;font-size:20px;border-bottom:1px solid #b78778;padding-bottom:3px}.memory-decoration{position:absolute;display:block;object-fit:contain;height:auto;z-index:15;pointer-events:none;filter:drop-shadow(2px 4px 3px rgba(45,20,15,.2))}.decor-top-left{top:-28px;left:-28px}.decor-top-right{top:-25px;right:-25px}.decor-bottom-left{bottom:-25px;left:-25px}.decor-bottom-right{bottom:-25px;right:-25px}.asset-teddy{width:115px}.asset-camera{width:100px}.asset-cassette{width:110px}.asset-butterfly{width:72px}.asset-vintageflower{width:115px}.asset-driedflowers{width:120px}.asset-envelope{width:100px}.asset-stickers{width:90px}.asset-stamp{width:82px}.asset-tape{width:120px}.asset-pprclip{width:70px}.asset-pprtape{width:115px}.memory-three-teddy
{width:145px !important;bottom:-45px !important;right:-38px !important;top:auto !important;left:auto !important;z-index:25}.style-01{--rotation:-2deg;border:1px solid #d4b893}.style-01 .memory-photo{transform:rotate(-2deg)}.style-02{--rotation:1.8deg;background:#ead5b8;border:1px dashed #a77b60}.style-02 .memory-photo{height:195px;transform:rotate(2deg)}.style-03{--rotation:-1deg;clip-path:polygon(2% 0,97% 1%,100% 4%,98% 18%,100% 33%,97% 48%,100% 64%,98% 82%,100% 97%,96% 100%,3% 99%,0 95%,2% 80%,0 61%,3% 44%,0 25%,2% 8%);padding:25px}.style-04{--rotation:2deg;background:#d7c0a0;border:8px double #977452}.style-04 .memory-content h2{color:#55302d}.style-05{--rotation:-2.5deg;background:#eee1ca;padding:28px}.style-05 .memory-photo{transform:rotate(3deg);box-shadow:5px 7px 0 #d3b795}.style-06{--rotation:1.5deg;background:repeating-linear-gradient( transparent 0px,transparent 27px,rgba(142,106,76,.17) 28px ),#f1e3c9}.style-06 .memory-content{padding-left:12px}.style-07{--rotation:-1.5deg;background:#fffaf0;padding:14px 14px 30px;box-shadow:3px 8px 17px rgba(0,0,0,.28)}.style-07 .memory-photo{padding:0;height:240px;box-shadow:none}.style-08{--rotation:2deg;background:#e8d1ad;border:1px solid #b28d6b}.style-08 .memory-content{border-top:1px dashed #b48c6a}.style-09{--rotation:-2deg;background:#c7a77f;border:8px solid #a17c57;box-shadow:inset 0 0 0 2px #e6cfad,5px 10px 15px rgba(0,0,0,.2)}.style-09 .memory-photo{border:4px solid #f3e5ce}.style-10{--rotation:1deg;background:#f1e4ca;border-left:12px solid #c9a27a}.style-10 .memory-content{padding-left:10px}.style-11{--rotation:-1deg;background:#e3cfb2;padding:12px}.style-11 .memory-photo{height:270px}.style-12{--rotation:2deg;border-radius:18px 4px 16px 4px;background:#f1dfc7}.style-12 .memory-photo{border-radius:8px 2px 8px 2px}.style-13{--rotation:-2deg;background:#e6d0b0;clip-path:polygon(4% 0,96% 0,100% 5%,100% 95%,95% 100%,5% 100%,0 95%,0 5%)}.style-14{--rotation:1.5deg;background:#ebddc3;border:5px double #b4936e;padding:16px}.style-15{--rotation:-1.8deg;background:#e9d6b9}.style-15::before{box-shadow:7px 7px 0 #c6a782,12px 12px 0 #b18d68}@media (max-width:950px){#memory-container{grid-template-columns:repeat(2,minmax(240px,1fr));gap:55px 30px}.calendar-container{width:98%}.book-page{padding:25px}}@media (max-width:600px){.page{padding:15px}.calendar-container{flex-direction:column;width:100%}.book-page{width:100%;min-height:auto;padding:20px}.left-page-content{min-height:auto}.birthday-number{font-size:85px}.book-spine{height:12px;width:100%;background:linear-gradient(#7c4a3e,#c5a27e,#754439)}#calendar-cover{min-height:330px}#memory-container{grid-template-columns:1fr;gap:55px;max-width:390px}.memory{width:100%}.memory-photo{height:240px}.surprise-container{padding:35px 20px}.cake{font-size:85px}}#page2 .calendar-container{align-items:stretch}#page2 .book-page{position:relative}#page2 .birthday-number{font-size:clamp(90px,11vw,115px);margin:15px 0}#page2 .left-page-content{display:flex;flex-direction:column;justify-content:center}#page2 #calendar-cover{min-height:450px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:25px 12px}#page2 .cover-decoration{color:#ae8164;font-size:28px;margin-bottom:15px}#page2 #calendar-cover h1{font-family:'DM Serif Display',serif;font-size:clamp(27px,3.4vw,40px);font-weight:normal;line-height:1.25;color:#793a44;margin:10px 0}#page2 #calendar-cover p{font-family:'Playfair Display',serif;color:#89695b;font-size:14px;line-height:1.8;margin:15px 0}#page2 .calendar-heart{width:52px;height:52px;border-radius:50%;border:1px solid #c5a17e;background:#f2dfce;color:#974655;font-size:24px;margin:15px auto 0;box-shadow:0 5px 12px rgba(80,35,35,.12);transition:.3s ease}#page2 .calendar-heart:hover{background:#873c49;color:#fff3df;transform:scale(1.12)}#page2 .heart-caption{display:block;font-family:'Caveat',cursive;font-size:15px;color:#9d7664;margin-top:10px}#page2 #calendar-inside.calendar-sticker{display:none;width:min(300px,100%);background:#fffaf0;position:relative;padding:22px 17px 16px;margin:20px auto;border:1px solid #ddc6a5;box-shadow:0 12px 25px rgba(60,30,20,.2);transform:rotate(-2deg);text-align:center}#page2 #calendar-inside.calendar-sticker.show{display:block;animation:birthdayCalendarReveal .65s ease forwards}#page2 #calendar-inside.calendar-sticker::before{content:'';position:absolute;top:-10px;left:37%;width:75px;height:20px;background:rgba(197,161,126,.58);transform:rotate(8deg);z-index:3}#page2 .calendar-sticker-top{display:flex;justify-content:space-between;font-family:'DM Serif Display',serif;font-size:20px;color:#873c49;border-bottom:1px solid #ddc6a5;padding-bottom:10px;margin-bottom:12px}#page2 #calendar-inside .calendar{background:#fff9ef;padding:12px;border:1px solid #ddc6a5;box-shadow:0 4px 12px rgba(92,49,34,.1)}#page2 #calendar-inside .weekdays,#page2 #calendar-inside .dates{display:grid;grid-template-columns:repeat(7,1fr);gap:5px}#page2 #calendar-inside .weekdays div{font-size:10px;color:#986957;padding:8px 0}#page2 #calendar-inside .dates div{min-height:34px;display:flex;justify-content:center;align-items:center;font-size:12px;color:#61413a}#page2 #calendar-inside .dates .birthday{position:relative;background:#9c4555;color:white;border-radius:50%;font-weight:bold}#page2 #calendar-inside .dates .birthday::after{content:'♥';position:absolute;top:-10px;right:-5px;font-size:13px;color:#b94e5c}#page2 .calendar-note{text-align:center;font-family:'Caveat',cursive;font-size:17px;color:#88444e;margin:13px 0 5px}#page2 .next-heart{display:block;margin:12px auto 0}@keyframes birthdayCalendarReveal{from{opacity:0;transform:translateY(25px) rotate(-8deg) scale(.85)}to{opacity:1;transform:translateY(0) rotate(-2deg) scale(1)}}@media (max-width:600px){#page2 .calendar-container{flex-direction:column}#page2 .book-page{width:100%}#page2 .book-spine{height:12px;width:100%}#page2 .left-page-content{padding:20px}#page2 #calendar-cover{min-height:320px}#page2 #calendar-inside.calendar-sticker{width:min(300px,95%)}}:root{--reference-red:#8B2529;--reference-red-light:#A9343D;--vintage-ivory:#F3EBDD;--vintage-cream:#FAF6EE;--antique-beige:#D4B994;--vintage-brown:#593D37}body{background:var(--reference-red)}#page1,#page2,#page3,#page4{background:var(--reference-red)}#page1{background:radial-gradient(circle at center,#A9343D,#8B2529 75%)}#page2{background:radial-gradient(circle at center,#A9343D,#8B2529 75%)}#page3{background:radial-gradient(circle at center,#A9343D,#8B2529 75%)}#page4{background-color:var(--reference-red)}.calendar-container{background:var(--antique-beige)}#page2 .book-page,#page2 .left-page,#page2 .right-page{background-color:var(--vintage-ivory)}#page2 .birthday-number,#page2 .left-page h2,#page2 #calendar-cover h1{color:var(--reference-red)}#page2 .calendar-heart{background:var(--reference-red);color:var(--vintage-cream);border-color:var(--antique-beige)}#page2 .calendar-heart:hover{background:var(--reference-red-light);color:white}#page2 #calendar-inside.calendar-sticker{background:var(--vintage-cream);border-color:var(--antique-beige)}#page2 .calendar-sticker-top,#page2 .calendar-note{color:var(--reference-red)}#page2 #calendar-inside .dates .birthday{background:var(--reference-red);color:white}.surprise-container{background:var(--vintage-ivory);border-color:var(--antique-beige)}.surprise-container h1,.surprise-container h2{color:var(--reference-red)}.click-btn,.surprise-container button{background:var(--reference-red);color:var(--vintage-cream);border:1px solid var(--antique-beige)}.click-btn:hover,.surprise-container button:hover{background:var(--reference-red-light)}.scrapbook-header{color:var(--vintage-ivory)}.scrapbook-header h1{color:var(--vintage-cream)}.scrapbook-header p{color:#E5C9A3}.memory{--paper:var(--vintage-ivory);background-color:var(--vintage-ivory);color:var(--vintage-brown)}.memory-content h2{color:var(--reference-red)}.short-text,.full-text{color:#76534A}.read-more{color:var(--reference-red);border-color:var(--antique-beige)}.memory-photo{background:var(--vintage-cream)}.book-spine{background:linear-gradient(90deg,var(--reference-red),var(--antique-beige),var(--reference-red))}
#memory-container .memory-with-envelope{grid-column:auto;width:100%;min-height:0;padding:20px;overflow:visible}.envelope-photo-scene{position:relative;width:100%;height:225px;display:flex;align-items:flex-end;justify-content:center;overflow:hidden;isolation:isolate}.envelope-back{position:absolute;z-index:1;left:50%;bottom:22px;width:min(82%,245px);height:142px;transform:translateX(-50%);background:#E8D5B6;border:1px solid #C7A982;clip-path:polygon(0 18%,50% 0,100% 18%,100% 100%,0 100%);box-shadow:0 5px 12px rgba(50,25,15,.2)}.envelope-photo{position:absolute;z-index:2;left:50%;top:5px;width:min(58%,165px);height:175px;transform:translateX(-50%) rotate(-4deg);object-fit:cover;padding:7px 7px 18px;background:#FFF9EF;border:1px solid #D6C3A5;box-shadow:0 5px 13px rgba(45,25,15,.25)}.envelope-front{position:absolute;z-index:3;left:50%;bottom:22px;width:min(82%,245px);height:112px;transform:translateX(-50%);background:linear-gradient(145deg,#F2E3C9,#DCC29B);border:1px solid #C7A982;clip-path:polygon(0 0,50% 58%,100% 0,100% 100%,0 100%);filter:drop-shadow(0 4px 3px rgba(50,25,15,.18))}@media (max-width:600px){.envelope-photo-scene{height:215px}.envelope-back,.envelope-front{width:min(86%,245px)}.envelope-photo{width:min(62%,165px)}}#memory-container .style-16{background:#fff8ed;padding:15px 15px 22px;border:1px solid #c8a982;transform:rotate(-2deg)}#memory-container .style-16 .memory-photo{height:225px;padding:8px 8px 28px;background:#fff;box-shadow:0 5px 13px rgba(139,37,41,.21)}#memory-container .style-16 .memory-content{text-align:center}#memory-container .style-17{background:#ead8bd;padding:17px;display:grid;grid-template-columns:1fr 1fr;gap:13px;align-items:center}#memory-container .style-17 .memory-photo{height:230px;width:100%;transform:rotate(-4deg);border:5px solid #fff8ed}#memory-container .style-17 .memory-content{border-left:2px solid var(--reference-red);padding:8px 0 8px 13px}#memory-container .style-18{background:#f7ead6;padding:12px;border:8px double var(--reference-red);border-radius:2px}#memory-container .style-18 .memory-photo{height:205px;border:7px solid #fffaf1;outline:1px solid #c5a17e}#memory-container .style-18 .memory-content{text-align:center;padding-top:10px}#memory-container .style-19{background:#fff8ed;padding:17px;display:flex;flex-direction:row;align-items:stretch;gap:14px}#memory-container .style-19 .memory-photo{width:48%;height:245px;flex-shrink:0;object-fit:cover}#memory-container .style-19 .memory-content{align-self:center;writing-mode:horizontal-tb}#memory-container .style-20{background:var(--reference-red);color:#f9ebd7;padding:13px;border:1px solid #c5a17e}#memory-container .style-20 .memory-photo{height:275px;width:100%;padding:0;border:0}#memory-container .style-20 .memory-content{color:#f9ebd7;text-align:center;padding:13px 8px 4px}#memory-container .style-20 .memory-content h2{color:#e4c59d}#memory-container .style-21{background:#e8d5b6;padding:20px 15px 15px}#memory-container .style-21 .memory-photo{height:190px;width:78%;margin:0 auto 0 0;border:6px solid #fff8ed;transform:rotate(3deg)}#memory-container .style-21 .memory-content{width:82%;margin:-12px 0 0 auto;position:relative;background:#fff8ed;padding:13px;box-shadow:4px 4px 0 var(--reference-red)}#memory-container .style-22{background:#f4e4ce;padding:16px;border:1px solid #b99470;position:relative}#memory-container .style-22:before{content:'POST CARD';display:block;color:var(--reference-red);letter-spacing:5px;font-size:11px;text-align:right;border-bottom:1px solid #b99470;padding-bottom:9px;margin-bottom:12px}#memory-container .style-22 .memory-photo{height:175px;border:5px solid #fffaf1}#memory-container .style-22 .memory-content{padding-top:10px}#memory-container .style-23{background:#e8d5b6;padding:18px;border-radius:150px 150px 4px 4px}#memory-container .style-23 .memory-photo{height:245px;border-radius:130px 130px 3px 3px;padding:6px;background:#fff8ed}#memory-container .style-23 .memory-content{text-align:center;padding:10px 3px 0}#memory-container .style-24{background:#f8eddd;padding:18px;border:1px dashed #a98268;clip-path:polygon(0 0,100% 0,100% 100%,0 100%,2% 95%,0 90%,2% 85%,0 80%,2% 75%,0 70%,2% 65%,0 60%,2% 55%,0 50%,2% 45%,0 40%,2% 35%,0 30%,2% 25%,0 20%,2% 15%,0 10%,2% 5%)}#memory-container .style-24 .memory-photo{height:215px}#memory-container .style-24 .memory-content{padding:10px 5px 0}#memory-container .style-25{background:#ead8bd;padding:24px 14px 17px}#memory-container .style-25 .memory-photo{height:220px;width:86%;margin:0 auto;transform:rotate(-5deg);border:8px solid #fff8ed;box-shadow:8px 8px 0 var(--reference-red)}#memory-container .style-25 .memory-content{padding-top:22px;text-align:right}#memory-container .style-26{background:repeating-linear-gradient(to bottom,#f7ead6 0,#f7ead6 29px,#d8c2a4 30px);padding:22px 18px}#memory-container .style-26 .memory-photo{height:165px;width:76%;margin:0 auto 16px}#memory-container .style-26 .memory-content{border-left:3px solid var(--reference-red);padding:4px 0 4px 13px}#memory-container .style-27{background:#fff8ed;padding:13px;display:flex;flex-direction:column}#memory-container .style-27 .memory-photo{height:190px;width:100%}#memory-container .style-27 .memory-content{background:var(--reference-red);color:#fff3e1;margin:12px -13px -13px;padding:17px;text-align:center}#memory-container .style-27 .memory-content h2{color:#f3d8b5}#memory-container .style-27 .read-more{color:var(--reference-red)}#memory-container .style-28{background:#d9c09e;padding:25px 13px 14px;border:2px solid var(--reference-red)}#memory-container .style-28 .memory-photo{height:220px;border:9px solid #fff8ed;outline:1px solid var(--reference-red);box-shadow:0 0 0 5px #d9c09e}#memory-container .style-28 .memory-content{text-align:center;padding-top:15px}#memory-container .style-29{background:#f1e2cc;padding:15px;border-radius:34px 4px 34px 4px}#memory-container .style-29 .memory-photo{height:225px;border-radius:28px 3px 28px 3px;padding:5px;background:#fff8ed}#memory-container .style-29 .memory-content{padding:12px 5px 2px}#memory-container .style-30{background:#e9d7bd;padding:18px 16px 20px}#memory-container .style-30 .memory-photo{height:185px;width:85%;margin:0 0 0 auto;transform:rotate(2deg)}#memory-container .style-30 .memory-content{margin-top:15px;padding:13px;background:#fff8ed;border-top:4px solid var(--reference-red)}#memory-container .style-31{background:#fff8ed;padding:18px 16px 18px 27px;border-left:13px solid var(--reference-red)}#memory-container .style-31 .memory-photo{height:210px;width:100%}#memory-container .style-31 .memory-content{padding:12px 0 0}#memory-container .style-32{background:var(--reference-red);padding:12px;border:1px solid #c5a17e}#memory-container .style-32 .memory-photo{height:285px;width:100%;padding:0;border:0}#memory-container .style-32 .memory-content{color:#fff3e1;padding:15px 8px 5px;text-align:left}#memory-container .style-32 .memory-content h2{color:#e4c59d}#memory-container .style-33{background:#f4e4ce;padding:18px;border:3px double var(--reference-red);transform:rotate(1deg)}#memory-container .style-33 .memory-photo{height:235px;border:7px solid #fff8ed;box-shadow:0 0 0 1px #b99470}#memory-container .style-33 .memory-content{text-align:center;padding-top:12px}@media (max-width:900px){#memory-container{grid-template-columns:repeat(2,minmax(240px,1fr))}}@media (max-width:600px){#memory-container{grid-template-columns:minmax(0,1fr);gap:35px}#memory-container .style-17{grid-template-columns:1fr}#memory-container .style-17 .memory-photo{width:100%;height:220px}#memory-container .style-19{flex-direction:column}#memory-container .style-19 .memory-photo{width:100%;height:220px}}
/* SHOW COMPLETE PHOTOS WITHOUT CROPPING */

.memory-photo {
    object-fit: contain !important;
    object-position: center !important;
}

.envelope-photo {
    object-fit: contain !important;
    object-position: center !important;
}
/* Make photo frames follow the actual image shape */

.memory-photo {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    aspect-ratio: auto !important;
}

/* Let memory boxes adjust to their content */

.memory {
    height: auto;
    min-height: 0;
}

/* Keep the complete photo visible */

.memory-photo {
    object-position: center;
}

/* THREE BOXES IN EVERY ROW */

@media (min-width: 769px) {
    #memory-container {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-auto-flow: row;
    }
}

/* Beige paper inside memory number 15 */

#memory-container .style-27 .memory-content {
    background: #F3EBDD !important;
    color: #593D37 !important;
    margin: 12px -13px -13px;
    padding: 17px;
    text-align: center;
    border: 1px solid #D4B994;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

#memory-container .style-27 .memory-content h2 {
    color: #8B2529 !important;
}

#memory-container .style-27 .short-text,
#memory-container .style-27 .full-text {
    color: #76534A !important;
}

#memory-container .style-27 .read-more {
    color: #8B2529 !important;
    border-color: #D4B994;
}

/* Beige paper inside memory number 20 */

#memory-container .style-32 .memory-content {
    background: #F3EBDD !important;
    color: #593D37 !important;
    padding: 20px 15px;
    margin-top: 12px;
    text-align: center;
    border: 1px solid #D4B994;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

#memory-container .style-32 .memory-content h2 {
    color: #8B2529 !important;
}

#memory-container .style-32 .short-text,
#memory-container .style-32 .full-text {
    color: #76534A !important;
}

#memory-container .style-32 .read-more {
    color: #8B2529 !important;
    border-color: #D4B994;
}

/* Beige paper inside 8th memory box */

#memory-container .memory:nth-child(8) .memory-content {
    background: #F3EBDD !important;
    color: #593D37 !important;
    padding: 20px 15px;
    margin-top: 12px;
    text-align: center;
    border: 1px solid #D4B994;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

#memory-container .memory:nth-child(8) .memory-content h2 {
    color: #8B2529 !important;
}

#memory-container .memory:nth-child(8) .short-text,
#memory-container .memory:nth-child(8) .full-text {
    color: #76534A !important;
}

#memory-container .memory:nth-child(8) .read-more {
    color: #8B2529 !important;
    border-color: #D4B994;
}
/* Prevent memory cards from overlapping */

#memory-container {
    align-items: start;
    grid-auto-flow: row;
    row-gap: 90px;
}

#memory-container .memory {
    height: fit-content;
    position: relative;
}

#memory-container .memory:has(.full-text.show) {
    z-index: 40;
}

/* 7th Memory - Horizontal Layout */

#memory-container .memory:nth-child(7) {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    grid-column: span 2;
    padding: 20px;
    min-height: 280px;
}

#memory-container .memory:nth-child(7) .memory-photo {
    width: 48%;
    height: 240px;
    flex-shrink: 0;
    object-fit: contain;
}

#memory-container .memory:nth-child(7) .memory-content {
    flex: 1;
    background: #F3EBDD;
    padding: 18px;
    border: 1px solid #D4B994;
    text-align: center;
}

#memory-container .memory:nth-child(7) .memory-content h2 {
    color: #8B2529;
}

#memory-container .memory:nth-child(7) .short-text,
#memory-container .memory:nth-child(7) .full-text {
    color: #76534A;
}

#memory-container .memory:nth-child(7) .read-more {
    color: #8B2529;
}

@media (max-width: 768px) {
    #memory-container .memory:nth-child(7) {
        grid-column: span 1;
        flex-direction: column;
    }

    #memory-container .memory:nth-child(7) .memory-photo {
        width: 100%;
    }
}
/* Reduce 7th box photo size */

#memory-container .memory:nth-child(7) .memory-photo {
    width: 38% !important;
    height: 190px !important;
    max-height: 190px;
    object-fit: contain !important;
    padding: 5px;
}

#memory-container .memory:nth-child(7) {
    gap: 10px;
    padding: 15px;
    min-width: 0;
}

#memory-container .memory:nth-child(7) .memory-content {
    min-width: 0;
    padding: 12px;
}
/* 7th memory - photo becomes full width when Read More opens */
#memory-container .memory:nth-child(7) .memory-photo {
    width: 100% !important;
    height: 260px !important;
    max-height: 260px !important;
    object-fit: contain !important;
    display: block;
}

/* Expanded 7th memory */
#memory-container .memory:nth-child(7):has(.full-text.show) {
    grid-column: span 2;
    flex-direction: column;
    height: auto !important;
}

/* Photo stays large when expanded */
#memory-container .memory:nth-child(7):has(.full-text.show) .memory-photo {
    width: 100% !important;
    height: 420px !important;
    max-height: 420px !important;
    object-fit: contain !important;
}

/* Mobile */
@media (max-width: 768px) {
    #memory-container .memory:nth-child(7):has(.full-text.show) {
        grid-column: span 1;
    }

    #memory-container .memory:nth-child(7):has(.full-text.show) .memory-photo {
        height: 300px !important;
    }
}/* 7th Memory - Horizontal Photo Design */

#memory-container .memory:nth-child(7) {
    display: flex !important;
    flex-direction: column !important;
    grid-column: span 2;
    gap: 0 !important;
    padding: 15px !important;
    height: auto !important;
    background: #6B252B;
    overflow: hidden;
}

/* Horizontal landscape photo */
#memory-container .memory:nth-child(7) .memory-photo {
    width: 100% !important;
    height: 260px !important;
    max-height: 260px !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block;
}

/* Message box below photo */
#memory-container .memory:nth-child(7) .memory-content {
    width: 100% !important;
    box-sizing: border-box;
    margin: 0 !important;
    padding: 20px !important;
    background: #F3EBDD !important;
    color: #593D37 !important;
    border: 1px solid #D4B994;
    text-align: center;
}

#memory-container .memory:nth-child(7) .memory-content h2 {
    color: #8B2529 !important;
}

#memory-container .memory:nth-child(7) .short-text,
#memory-container .memory:nth-child(7) .full-text {
    color: #76534A !important;
}

#memory-container .memory:nth-child(7) .read-more {
    color: #8B2529 !important;
}

/* Expanded message */
#memory-container .memory:nth-child(7):has(.full-text.show) {
    height: auto !important;
    grid-column: span 2;
}

/* Mobile */
@media (max-width: 768px) {
    #memory-container .memory:nth-child(7) {
        grid-column: span 1;
    }

    #memory-container .memory:nth-child(7) .memory-photo {
        height: 220px !important;
    }
}
/* 21st Memory - Same Horizontal Design */

#memory-container .memory:nth-child(21) {
    display: flex !important;
    flex-direction: column !important;
    grid-column: span 2;
    gap: 0 !important;
    padding: 15px !important;
    height: auto !important;
    background: #6B252B;
    overflow: hidden;
}

#memory-container .memory:nth-child(21) .memory-photo {
    width: 100% !important;
    height: 260px !important;
    max-height: 260px !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block;
}

#memory-container .memory:nth-child(21) .memory-content {
    width: 100% !important;
    box-sizing: border-box;
    margin: 0 !important;
    padding: 20px !important;
    background: #F3EBDD !important;
    color: #593D37 !important;
    border: 1px solid #D4B994;
    text-align: center;
}

#memory-container .memory:nth-child(21) .memory-content h2 {
    color: #8B2529 !important;
}

#memory-container .memory:nth-child(21) .short-text,
#memory-container .memory:nth-child(21) .full-text {
    color: #76534A !important;
}

#memory-container .memory:nth-child(21) .read-more {
    color: #8B2529 !important;
}

/* Mobile */
@media (max-width: 768px) {
    #memory-container .memory:nth-child(21) {
        grid-column: span 1;
    }

    #memory-container .memory:nth-child(21) .memory-photo {
        height: 220px !important;
    }
}
/* Last box - Almost full screen width */
#memory-container .memory:nth-child(21) {
    grid-column: 1 / -1 !important;
    width: 95vw !important;
    max-width: 1400px;
    justify-self: center;
    box-sizing: border-box;
}

/* Keep photo horizontal */
#memory-container .memory:nth-child(21) .memory-photo {
    width: 100% !important;
    height: 350px !important;
    object-fit: cover !important;
}

/* Mobile */
@media (max-width: 768px) {
    #memory-container .memory:nth-child(21) {
        width: 95% !important;
    }

    #memory-container .memory:nth-child(21) .memory-photo {
        height: 230px !important;
    }
}

#memory-container .memory:nth-child(21) .memory-photo {
    height: 430px !important;
    max-height: 430px !important;
    object-fit: cover !important;
}

@media (max-width: 768px) {
    #memory-container .memory:nth-child(21) .memory-photo {
        height: 280px !important;
    }
}