/* V1.5 – load after all existing styles */
html{max-width:100%;-webkit-text-size-adjust:100%}
body{max-width:100%;overflow-x:clip}
#content{width:100%;min-width:0}
#content > :is(header,section,footer){min-width:0;overflow-wrap:anywhere}
#content .cover .flower.left,#content .cover.elegant-reveal .flower.left{left:0;right:auto;scale:none;transform-origin:top left;animation:mobileFlowerLeft 6s ease-in-out infinite alternate}
#content .cover .flower.right,#content .cover.elegant-reveal .flower.right{right:0;left:auto;scale:none;transform-origin:center;animation:mobileFlowerRight 6s ease-in-out infinite alternate}
@keyframes mobileFlowerLeft{from{transform:rotate(0)}to{transform:rotate(3deg)}}
@keyframes mobileFlowerRight{from{transform:scaleX(-1)}to{transform:scaleX(-1) rotate(3deg)}}
#content img{max-width:100%}
#content .wedding-map{max-width:100%;box-sizing:border-box}
#content .wedding-map iframe{width:100%;display:block}
#content form,#content form label{min-width:0}
#content input,#content select,#content textarea{min-width:0;max-width:100%;font-size:16px}
#content [data-field$="Parents"]{white-space:pre-line;overflow-wrap:anywhere}
#content .album .gallery.glass-slider{touch-action:pan-y}
#music{min-width:44px;min-height:44px;right:calc(12px + env(safe-area-inset-right,0px));bottom:calc(12px + env(safe-area-inset-bottom,0px))}
@media(max-width:760px){
 #content > :is(header,section,footer){margin:clamp(5px,1.5vw,12px);padding:clamp(42px,8vw,60px) clamp(12px,4vw,28px)}
 #content > .cover{padding-top:clamp(85px,22vw,140px)}
 #content .cover .flower{width:clamp(65px,23vw,125px)}
 #content h1{font-size:clamp(30px,8vw,54px)}
 #content h2{font-size:clamp(24px,6vw,34px)}
 #content .eyebrow{letter-spacing:2px;gap:6px}
 #content .portrait{width:min(100%,440px)}
 #content .families{gap:8px}
 #content .count{gap:5px}
 #content .count div{min-width:0;flex:1 1 0;max-width:85px;padding:8px 2px}
 #content .count strong{font-size:clamp(19px,5vw,25px)}
 #content .wcal-grid{padding:10px 5px 4px;gap:2px}
 #content .wcal-grid>*{min-height:32px;font-size:13px}
 #content .wcal-day::before{width:min(100%,34px);height:32px}
 #content .album .gallery.glass-slider{height:clamp(240px,90vw,520px)}
 #content .album .prev,#content .album .next{min-width:44px;min-height:44px;padding:8px;backdrop-filter:none}
 #content .wedding-map iframe{height:280px}
 #content #wedding-gift .gift-grid{gap:8px}
 #content #wedding-gift .gift-card{padding:8px}
 #content #wedding-gift .gift-card img{height:auto;object-fit:contain}
 #content .button,#content form button{min-height:44px}
 #intro{padding:16px;gap:clamp(12px,4vh,32px)}
 #intro .envelope{width:min(82vw,360px)}
 #particles .cloud,#particles .bird{opacity:.22}
}
@media(max-height:480px) and (orientation:landscape){#intro{gap:8px;overflow-y:auto;justify-content:flex-start}#intro .envelope{height:145px}#intro .intro-heading h2{font-size:20px}}
@media(prefers-reduced-motion:reduce){#content .cover .flower,#content .cover.elegant-reveal .flower{animation:none!important}#content .cover .flower.right{transform:scaleX(-1)}#content .reveal{opacity:1;transform:none}}
