/* Small-screen alignment fixes only; desktop design remains unchanged. */
@media(max-width:850px){
 header nav,body:has(.hero) header nav,
 header.nav-scrolled nav,body:has(.hero) header.nav-scrolled nav{
  transform:none;transition:none;margin:0;width:100%;min-width:0;
 }
 header nav.open,body:has(.hero) header nav.open{
  display:flex;justify-content:center;align-items:center;flex-wrap:wrap;
  gap:16px 20px;padding:16px 0 0;
 }
 header nav a{max-width:100%;white-space:normal}
 main,main section,main article,.wrap,.split>div,.contact>div,.contact form,
 .timeline-content,.timeline-date,.estate-feature-text,.history-chapter-card,
 .home-photo-card,.home-photo-card-copy,.home-at-glance-grid>article{min-width:0}
 .wrap{max-width:calc(100% - 32px)}
 .home-transition .hero-copy .hero-top,.home-transition .hero-copy .hero-bottom{
  left:16px;right:16px;max-width:calc(100% - 32px);
 }
 .home-transition .hero-copy .hero-bottom p,.home-transition .hero-bottom h1.home-welcome-title,
 .family-timeline .family-history-intro,.events-opening-lines>span,
 .story-banner .estate-sources>a,.estate-banner-title .estate-banner-subtitle p,
 .our-story-banner .estate-banner-opening .family-quote-sentence,
 .venue-banner .events-nelly-quote blockquote p{
  max-width:100%;white-space:normal;overflow-wrap:break-word;
 }
 .home-estate-history-roll{box-sizing:border-box}
 .estate-details>h2.estate-section-heading{font-size:1.65rem;gap:12px}
 .estate-details>h2.estate-section-heading>span{white-space:normal}
 .history-chapters>h2,.featured-in>h2{gap:12px}
 .estate-grid .estate-feature-text h3,.timeline-content h3,.history-chapter-card h3{
  overflow-wrap:break-word;
 }
 .history-chapter-page>.history-back-link,.history-chapter-navigation>a{
  box-sizing:border-box;max-width:100%;white-space:normal;
 }
 .contact form{padding:24px;box-sizing:border-box}
 .contact input,.contact select,.contact textarea{min-width:0;max-width:100%;box-sizing:border-box}
 .foot .footer-location,.foot .footer-nav{min-width:0;max-width:100%}
 .foot .footer-location p,.foot .footer-location a,.foot .footer-nav a{
  overflow-wrap:anywhere;white-space:normal;
 }
 .event-inquiry .btn,.home-primary-actions .btn{box-sizing:border-box;white-space:normal}
}
@media(max-width:560px){
 .gallery-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;width:100%}
 .gallery-filters button{width:100%;min-width:0;max-width:100%;padding:16px 10px;letter-spacing:.09em;box-sizing:border-box}
 .home-primary-actions{gap:16px}
 .home-primary-actions .btn{margin:0;max-width:100%}
 .spaces-heading>h2{overflow-wrap:break-word}
 .history-chapter-card{padding:24px 20px}
}

/* Keep the complete footer email together on phones, including .com. */
@media(max-width:850px){
 .foot .footer-location a[href^="mailto:"]{
  white-space:nowrap;overflow-wrap:normal;word-break:normal;
  font-size:min(1em,3.8vw);
 }
}
