/* Dagmars 50. Geburtstag – presentation only, existing gallery hooks preserved. */
:root{--paper:#faf7f1;--ink:#3c2930;--wine:#783a4f;--gold:#b18b50;--muted:#85767b;--line:#e8ded8;--rose:#f1e4e4}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:25px}body{margin:0;background:var(--paper);color:var(--ink);font:15px/1.65 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif}button,input,textarea{font:inherit}a{color:inherit}button,input[type=submit]{cursor:pointer}img{max-width:100%;display:block}h1,h2,h3,p{margin:0}h1,h2,h3{font-family:Georgia,"Times New Roman",serif;font-weight:400;line-height:1.16}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid var(--gold);outline-offset:4px}.container{max-width:1420px;margin:0 auto;padding:0 5%}.birthday-nav{display:flex;justify-content:space-between;align-items:center;gap:25px;padding:25px 0;border-bottom:1px solid var(--line)}.birthday-brand{text-decoration:none;display:flex;align-items:center;gap:12px;font-family:Georgia,serif;font-size:22px}.birthday-brand span{width:37px;height:37px;display:grid;place-items:center;border:1px solid #d6b881;border-radius:50%;font-size:17px;font-style:italic;color:var(--wine)}.birthday-nav nav{display:flex;gap:28px}.birthday-nav nav a{text-decoration:none;color:var(--muted);font-size:12px}.birthday-nav nav a:hover{color:var(--wine)}.birthday-hero{display:grid;grid-template-columns:1.35fr 1fr;align-items:center;gap:40px;padding:62px 4% 55px;position:relative;overflow:hidden}.birthday-eyebrow{color:var(--wine);font-size:10px;font-weight:650;letter-spacing:3px;text-transform:uppercase;margin-bottom:20px}.birthday-hero h1{font-size:clamp(40px,5.4vw,74px);letter-spacing:-2.5px;max-width:670px}.birthday-hero h1 em{font-weight:400;color:var(--wine)}.birthday-hero p{font-size:14px;color:var(--muted);line-height:1.9;max-width:390px;margin-top:23px}.birthday-signature{font-family:Georgia,serif;font-size:16px;font-style:italic;color:var(--wine);margin-top:26px;display:flex;align-items:center;gap:12px}.birthday-signature:before{content:"";width:30px;height:1px;background:var(--gold)}.birthday-number{position:relative;display:flex;align-items:center;justify-content:center;min-height:275px;color:var(--wine)}.birthday-number:before{content:"";position:absolute;width:270px;height:270px;border:1px solid #d8bb87;border-radius:50%;transform:rotate(-15deg)}.birthday-number:after{content:"";position:absolute;width:295px;height:235px;border:1px solid #dcc9a2;border-radius:50%;transform:rotate(25deg)}.birthday-number strong{font-family:Georgia,serif;font-size:185px;line-height:1;font-weight:400;letter-spacing:-16px;position:relative;z-index:1;padding-right:15px}.birthday-number>span{position:absolute;bottom:12px;left:50%;transform:translateX(-50%);font-size:9px;letter-spacing:4px;background:var(--paper);padding:8px 15px;z-index:2;white-space:nowrap}.birthday-star{position:absolute;color:var(--gold);font-style:normal;font-size:29px;z-index:2;line-height:1}.birthday-star.one{top:24px;right:15%}.birthday-star.two{bottom:40px;left:10%;font-size:20px}.birthday-star.three{top:62px;left:17%;font-size:12px}.birthday-divider{display:flex;align-items:center;gap:20px;color:var(--gold);font-size:16px;margin-bottom:36px}.birthday-divider:before,.birthday-divider:after{content:"";flex:1;height:1px;background:var(--line)}.header{display:flex;justify-content:space-between;align-items:center;gap:25px;margin:0 0 22px;padding:0;height:auto;background:transparent;color:var(--ink)}.header h1,.header h2{display:block;font-size:28px;letter-spacing:-.6px}.header-right{display:flex;align-items:center;gap:12px;flex-wrap:wrap}#uploadBtn,input[type=submit]{border:1px solid var(--wine);border-radius:7px;background:var(--wine);color:white;padding:12px 19px;font-size:12px;font-weight:600;transition:background .2s;min-height:44px}#uploadBtn:hover,input[type=submit]:hover{background:#5b293a}#searchInput{width:230px;max-width:100%;padding:11px 14px;border:1px solid var(--line);border-radius:7px;background:white;color:var(--ink);font-size:12px;min-height:44px}#searchInput::placeholder{color:var(--muted)}.gallery{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;margin:0 0 45px;padding:0}.gallery:empty{display:none}.gallery:empty+.header{display:none}.thumbnail{min-width:0;width:100%;height:auto;margin:0;border:1px solid var(--line);border-radius:10px;overflow:hidden;background:white;box-shadow:0 3px 12px #57323b05;transition:transform .2s,box-shadow .2s;content-visibility:auto;contain-intrinsic-size:auto 220px}.thumbnail:hover{transform:translateY(-3px);box-shadow:0 10px 25px #57323b14}.thumbnail>a{display:block;aspect-ratio:3/2;background:#eee9e4;overflow:hidden}.thumbnail img{width:100%;height:100%;object-fit:contain}.like-section{position:static;display:flex;align-items:center;gap:7px;padding:11px 14px;background:white;color:var(--muted);font-size:11px}.uploader-name{margin-right:auto;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.like-heart{cursor:pointer;line-height:1;padding:4px}.like-count{color:var(--wine);font-size:11px;min-width:9px}.guestbook-panel{border-top:1px solid var(--line);padding:45px 0 20px;margin-top:25px}.guestbook-panel>h2{font-size:36px;margin-bottom:25px}.guestbook-panel>h3{font-size:25px;margin:34px 0 18px}#guestbook-entries{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;align-items:start}.guestbook-entry{font-size:12px;line-height:1.9;padding:23px;background:#fff;border:1px solid var(--line);border-radius:10px;color:var(--muted);overflow-wrap:anywhere;max-height:270px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#d5b8bd transparent}.guestbook-entry strong{display:block;font-family:Georgia,serif;color:var(--wine);font-size:18px;font-weight:400;margin-bottom:9px}#guestbookForm{max-width:710px;padding:27px 30px;background:var(--rose);border:1px solid #e6d5d6;border-radius:12px;font-size:12px}input[type=text],input[type=password],input[type=number],input[type=file],textarea{border:1px solid #dfd4d2;border-radius:7px;background:white;padding:10px 12px;color:var(--ink);width:100%;margin-top:7px;min-width:0}textarea{min-height:125px;resize:vertical}input[type=file]{font-size:12px}input[type=submit]{width:auto;min-width:135px}#guestbookForm br{line-height:1}#guestbookForm input[style*="display:none"]{display:none}.birthday-footer{display:flex;justify-content:space-between;align-items:center;gap:20px;border-top:1px solid var(--line);margin-top:40px;padding:25px 0 32px;color:var(--muted);font-size:10px}.birthday-footer strong{font-family:Georgia,serif;font-weight:400;font-size:16px;color:var(--wine)}.birthday-footer a{text-decoration:none}.modal-upload{display:none;position:fixed!important;inset:0!important;top:0!important;left:0!important;transform:none!important;width:100%!important;height:100%;height:100dvh;max-width:none;z-index:10000!important;background:#291b29bb;backdrop-filter:blur(8px);overflow-y:auto;padding:30px 18px}.modal-content-upload{position:relative;background:var(--paper);padding:32px;border:1px solid #f2e5d4;border-radius:15px;box-shadow:0 25px 80px #0003;width:100%;max-width:520px;margin:2vh auto}.modal-content-upload h2{display:block!important;font-size:30px;margin:0 30px 25px 0}.modal-content-upload form{font-size:12px}.close-upload{position:absolute;right:18px;top:12px;font-size:29px;cursor:pointer;color:var(--wine);width:35px;text-align:center}#uploadSpinner{padding:15px;font-size:13px}#uploadSpinner img{max-width:75px}.modal{display:none;position:fixed;inset:0;width:100%;height:100%;height:100dvh;background:#201923f5;z-index:9999;align-items:center;justify-content:center;padding:65px 65px 90px;overflow:hidden;backdrop-filter:blur(12px)}.modal-content{max-width:100%;max-height:100%;object-fit:contain;border-radius:4px;box-shadow:0 20px 80px #0005}.close-modal{position:absolute;right:22px;top:14px;font-size:31px;color:#fff;cursor:pointer;width:40px;height:40px;display:grid;place-items:center;z-index:3}.modal-arrow{position:absolute;top:50%;transform:translateY(-50%);color:white;background:#ffffff14;border:1px solid #ffffff25;width:42px;height:50px;border-radius:8px;display:grid;place-items:center;font-size:25px;cursor:pointer;z-index:2}.prev-button{left:14px}.next-button{right:14px}.modal-actions{position:absolute;bottom:18px;left:25px;right:25px;display:flex;align-items:center;justify-content:space-between;gap:15px;color:white}.download-button{display:inline-block;text-decoration:none;border:1px solid #ffffff40;background:#ffffff14;color:#fff;border-radius:7px;padding:11px 23px;font-size:12px}.download-button:hover{background:#ffffff24}.like-section-modal{display:flex;gap:10px;align-items:center;font-size:13px}.like-heart-modal,.report-button{cursor:pointer;font-size:22px;padding:8px}.like-heart-modal{color:#e8a0b1}.report-button{color:#d9c59e}#confirmationPopup{border-radius:12px;box-shadow:0 20px 60px #291b2925}
@media(min-width:1600px){.gallery{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(max-width:1000px){.birthday-hero{padding:45px 1%;gap:20px}.birthday-hero h1{font-size:52px}.birthday-number strong{font-size:150px}.birthday-number:before{width:225px;height:225px}.birthday-number:after{width:250px;height:195px}.birthday-number{min-height:235px}.birthday-number>span{bottom:0}.gallery{grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.header h1,.header h2{font-size:25px}.header-right{gap:8px}#searchInput{width:180px}#guestbook-entries{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.container{padding:0 5%}.birthday-nav{padding:20px 0}.birthday-brand{font-size:19px;gap:9px}.birthday-nav nav{gap:15px}.birthday-nav nav a{font-size:11px}.birthday-hero{grid-template-columns:1fr;gap:22px;padding:35px 0 30px;text-align:center}.birthday-eyebrow{font-size:9px;letter-spacing:2px;margin-bottom:16px}.birthday-hero h1{font-size:47px;letter-spacing:-1.8px;max-width:500px;margin:auto}.birthday-hero p{font-size:13px;margin:18px auto 0;max-width:330px}.birthday-signature{justify-content:center;font-size:14px;margin-top:19px}.birthday-number{min-height:180px;max-width:280px;width:100%;margin:4px auto}.birthday-number strong{font-size:125px;letter-spacing:-10px}.birthday-number:before{width:168px;height:168px}.birthday-number:after{width:195px;height:145px}.birthday-number>span{font-size:8px;letter-spacing:3px;bottom:-2px}.birthday-star.one{top:20px;right:15%;font-size:24px}.birthday-star.two{bottom:35px;left:15%;font-size:17px}.birthday-star.three{top:50px;left:20%}.birthday-divider{margin-bottom:26px}.header{flex-direction:column;align-items:stretch;gap:16px;margin-bottom:20px}.header h1,.header h2{font-size:28px}.header-right{display:grid;grid-template-columns:1fr 1.15fr;gap:10px}#uploadBtn,#searchInput{width:100%;margin:0;min-width:0;padding:12px 11px;font-size:12px}.gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:30px}.thumbnail{border-radius:8px;contain-intrinsic-size:auto 170px}.like-section{padding:9px 10px;font-size:10px;gap:4px}.guestbook-panel{padding-top:30px}.guestbook-panel>h2{font-size:30px}#guestbook-entries{grid-template-columns:1fr;gap:12px}.guestbook-entry{max-height:220px;padding:20px}#guestbookForm{padding:23px}.birthday-footer{flex-wrap:wrap;gap:12px;margin-top:28px}.birthday-footer strong{width:100%}.modal{padding:60px 10px 90px}.modal-arrow{width:32px;height:43px;background:#20192388}.prev-button{left:6px}.next-button{right:6px}.modal-actions{left:12px;right:12px;bottom:20px;gap:10px}.download-button{padding:10px 14px}.modal-content-upload{padding:26px 22px;margin:0 auto}.modal-content-upload h2{font-size:26px}input[type=text],input[type=password],input[type=number],textarea{font-size:16px}.birthday-nav .birthday-brand span{width:31px;height:31px;font-size:15px}}
@media(max-width:370px){.birthday-hero h1{font-size:40px}.birthday-nav nav{gap:10px}.birthday-brand{font-size:17px}.gallery{gap:8px}.like-section{padding:8px;font-size:9px}.birthday-nav nav a{font-size:10px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}
