/* Visual safety layer: theme styles remain authoritative; this file only prevents layout breakage. */
html,body.invitation-v4{max-width:100%;overflow-x:clip}.invitation-v4 .theme-page,.invitation-v4 .theme-flow,.invitation-v4 .theme-hero,.invitation-v4 .theme-section,.invitation-v4 .countdown-band{min-width:0;max-width:100%}.invitation-v4 .theme-hero{contain:paint}.invitation-v4 .theme-hero>*,.invitation-v4 .story>*,.invitation-v4 .details>*,.invitation-v4 .theme-gallery>*,.invitation-v4 .theme-timeline>*{min-width:0}.invitation-v4 .theme-hero h1,.invitation-v4 .theme-hero h2,.invitation-v4 .section-heading h2,.invitation-v4 .story h2,.invitation-v4 .details h2,.invitation-v4 .rsvp h2{max-inline-size:100%;overflow-wrap:anywhere;word-break:normal;text-wrap:balance}.invitation-v4 .theme-hero p,.invitation-v4 .theme-section p,.invitation-v4 .theme-section strong,.invitation-v4 .theme-section a{overflow-wrap:anywhere}.invitation-v4 .hero-media,.invitation-v4 .hero-media img,.invitation-v4 .hero-media video{max-width:none}.invitation-v4 .theme-botanical-art{max-height:110%;object-fit:contain}.invitation-v4 .theme-gallery{max-width:100%}.invitation-v4 .theme-gallery figure{min-width:0;max-width:100%}.invitation-v4 .theme-gallery img,.invitation-v4 .theme-gallery video{max-width:100%;max-height:540px}.invitation-v4 .detail-grid article,.invitation-v4 .theme-timeline article{min-width:0;overflow:hidden}.invitation-v4 .theme-rsvp-form input,.invitation-v4 .theme-rsvp-form select,.invitation-v4 .theme-rsvp-form textarea{min-width:0;max-width:100%}.music-dock{max-width:calc(100vw - 24px)}@media(max-width:760px){.invitation-v4 .theme-hero{max-height:820px}.invitation-v4 .theme-hero [class*=copy],.invitation-v4 .theme-hero [class*=card],.invitation-v4 .theme-hero [class*=plaque],.invitation-v4 .theme-hero [class*=title]{max-width:calc(100% - 28px)!important;max-height:calc(100% - 28px);overflow:hidden}.invitation-v4 .theme-hero h1{font-size:clamp(2.35rem,12vw,4.6rem)!important;line-height:.93!important}.invitation-v4 .theme-botanical-art{max-width:145vw}.invitation-v4 .story,.invitation-v4 .details{grid-template-columns:1fr!important}.invitation-v4 .theme-gallery{grid-template-columns:1fr!important}.invitation-v4 .theme-gallery figure{grid-column:auto!important;grid-row:auto!important;margin:0!important;transform:none!important;aspect-ratio:4/5!important;max-height:520px}.invitation-v4 .detail-grid{grid-template-columns:1fr!important}.invitation-v4 .theme-timeline{grid-template-columns:1fr!important}.invitation-v4 .theme-rsvp-form{grid-template-columns:1fr!important}.invitation-v4 .theme-rsvp-form>*{grid-column:auto!important}}
