/* Version 43: final collision-safe responsive layer. Loaded last on purpose. */
html,body{max-width:100%;overflow-x:clip}
.site-header>*{min-width:0}
.events-gallery-nav{display:inline-flex!important;align-items:center;gap:.42em;white-space:nowrap}
.events-gallery-nav i{font-style:normal;color:var(--orange);font-weight:800}

.events-gallery-preview{margin-top:52px;padding:clamp(24px,4vw,48px);display:grid;grid-template-columns:minmax(240px,.72fr) minmax(0,1.28fr);align-items:center;gap:clamp(28px,5vw,70px);border:1px solid rgba(255,255,255,.16);border-radius:18px;background:linear-gradient(135deg,rgba(255,255,255,.08),rgba(255,255,255,.025));box-shadow:0 24px 70px rgba(0,0,0,.16)}
.events-gallery-preview>div:first-child>span{display:block;margin-bottom:10px;color:#ffc056;font-size:10px;font-weight:800;letter-spacing:.17em;text-transform:uppercase}
.events-gallery-preview h3{margin:0 0 12px;font:600 clamp(30px,3vw,46px)/1 var(--display)}
.events-gallery-preview p{max-width:480px;margin:0 0 24px;color:#b7c4d3;font-size:15px;line-height:1.7}
.events-gallery-grid{min-width:0;display:grid;grid-template-columns:1.15fr .85fr;grid-template-rows:repeat(2,145px);gap:10px}
.events-gallery-grid a{position:relative;min-width:0;min-height:0;overflow:hidden;border-radius:10px;background:#06142b}
.events-gallery-grid a:first-child{grid-row:1/3}
.events-gallery-grid img,.events-gallery-grid video{width:100%;height:100%;display:block;object-fit:cover;transition:transform .45s cubic-bezier(.22,1,.36,1)}
.events-gallery-grid a:hover img,.events-gallery-grid a:hover video{transform:scale(1.045)}
.preview-play{position:absolute;inset:50% auto auto 50%;translate:-50% -50%;width:42px;height:42px;display:grid;place-items:center;border-radius:50%;background:#ffc056;color:#031a3d;box-shadow:0 10px 28px rgba(0,0,0,.3)}

/* Desktop proportions: keep the complete welcome composition inside the viewport. */
@media(min-width:901px){
  .site-header{width:100%;grid-template-columns:auto auto minmax(0,1fr);gap:clamp(16px,1.7vw,28px)!important}
  .site-header nav{min-width:0;max-width:100%;gap:clamp(12px,1.3vw,24px)!important}
  .nav-links{min-width:0;gap:clamp(13px,1.35vw,25px)!important}
  .nav-actions{flex:0 0 auto}
  .hero{height:calc(100svh - 129px)!important;min-height:610px!important;max-height:820px!important}
  .hero-content{width:min(720px,53vw)!important;max-width:720px!important}
  .hero h1{font-size:clamp(4.35rem,6.8vw,7.15rem)!important;line-height:.86!important}
  .hero-emblem{right:clamp(42px,7vw,132px)!important;width:clamp(270px,25vw,350px)!important}
  .service-pill{right:clamp(32px,5vw,96px)!important;bottom:18px!important}
  .prayer-float{bottom:max(18px,env(safe-area-inset-bottom))}
}

/* Reduce header density before it can collide. */
@media(max-width:1450px) and (min-width:901px){
  .site-header{grid-template-columns:auto minmax(0,1fr)!important;padding-inline:clamp(24px,4vw,58px)!important}
  .nav-meta{display:none!important}
  .site-header nav{justify-content:flex-end}
  .nav-links>a,.explore-toggle{font-size:10px!important;letter-spacing:.045em!important}
  .nav-actions{gap:7px!important}
  .nav-visit,.nav-give{padding-inline:14px!important}
}

@media(max-width:1280px) and (min-width:901px){
  .nav-social-shortcuts{display:none!important}
}

/* Short laptop windows and browser zoom must not crop the hero footer. */
@media(min-width:901px) and (max-height:800px){
  .hero{height:calc(100svh - 129px)!important;min-height:540px!important;max-height:none!important}
  .hero-content{top:49%!important;transform:translateY(-50%)!important}
  .hero .eyebrow{margin-bottom:12px!important}
  .hero h1{font-size:clamp(4rem,12vh,6.25rem)!important;margin-bottom:20px!important}
  .hero-content>p:not(.eyebrow){line-height:1.55!important}
  .hero-actions{margin-top:22px!important}
  .hero-proof{margin-top:22px!important}
  .hero-emblem{width:clamp(230px,23vw,310px)!important}
  .service-pill{bottom:12px!important;padding-block:14px!important}
}

@media(max-width:1180px) and (min-width:901px){
  .site-header{grid-template-columns:minmax(210px,auto) 1fr!important;gap:18px!important;padding-inline:clamp(20px,3vw,42px)!important}
  .site-header nav,.nav-links{gap:clamp(10px,1.35vw,18px)!important}
  .nav-links>a,.explore-toggle{font-size:10px!important;letter-spacing:.045em!important}
  .nav-actions{display:none!important}
}

@media(max-width:900px){
  .announcement{position:relative;z-index:1001;min-height:34px;padding:8px 14px;display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;text-align:center;line-height:1.35}
  .site-header{top:0!important;min-height:78px;height:78px!important;padding-inline:16px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important}
  .site-header>.brand{max-width:calc(100% - 62px);overflow:hidden}
  .site-header>.brand>span{min-width:0}.site-header>.brand b,.site-header>.brand small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .site-header nav{overscroll-behavior:contain;padding-bottom:max(12px,env(safe-area-inset-bottom))!important}
  .site-header nav .nav-links{padding-block:14px 8px!important}
  .site-header nav .nav-links>a,.site-header nav .explore-toggle{flex:0 0 auto!important;min-height:48px!important;padding:13px 2px!important}
  .events-gallery-nav{justify-content:flex-start!important}
  .hero{box-sizing:border-box!important;height:auto!important;min-height:max(650px,calc(100svh - 112px))!important;padding:70px 22px 96px!important;display:grid!important;align-items:center!important;overflow:hidden!important}
  .hero-content,.hero-content.reveal{position:relative!important;left:auto!important;right:auto!important;top:auto!important;transform:none!important;width:100%!important;max-width:680px!important;animation:none!important}
  .hero h1{max-width:100%;overflow-wrap:normal;word-break:normal}
  .hero-actions{width:min(100%,550px)!important}
  .hero-actions .button{width:100%;min-width:0}
  .quick-connect{width:100%;margin:0;box-shadow:0 16px 45px rgba(3,26,61,.1)}
  .events .section-head{gap:20px;align-items:flex-start}
  .events-list{width:100%;min-width:0}
  .events-list article{min-width:0;grid-template-columns:72px minmax(0,1fr) 46px;gap:18px}
  .events-list article>div:nth-child(2){min-width:0}.events-list h3,.events-list p{overflow-wrap:anywhere}
  .events-gallery-preview{grid-template-columns:1fr;gap:28px;margin-top:38px}
  .events-gallery-grid{grid-template-rows:repeat(2,130px)}
}

@media(max-width:580px){
  .announcement span,.announcement a{font-size:10px}
  .site-header>.brand .brand-logo{flex:0 0 48px!important;width:48px!important;height:48px!important}
  .site-header>.brand b{font-size:16px!important}
  .hero{min-height:max(640px,calc(100svh - 112px))!important;padding:58px 20px 86px!important}
  .hero h1{font-size:clamp(3.15rem,14vw,4.65rem)!important;line-height:.9!important}
  .hero-content>p:not(.eyebrow){font-size:16px!important;line-height:1.6!important}
  .hero-proof{max-width:100%}.hero-proof>span{min-width:0}
  .section{padding-left:18px!important;padding-right:18px!important}
  .events .section-head h2{font-size:clamp(42px,13vw,62px);overflow-wrap:normal}
  .events-list article{grid-template-columns:58px minmax(0,1fr) 40px;gap:12px;padding:20px 0}
  .events-list .date b{font-size:30px}.events-list h3{font-size:21px;line-height:1.12}
  .event-details-button{width:40px;height:40px}
  .events-gallery-preview{padding:22px 18px;border-radius:13px}
  .events-gallery-grid{grid-template-columns:1fr 1fr;grid-template-rows:175px 105px}
  .events-gallery-grid a:first-child{grid-column:1/3;grid-row:1}
  .event-modal{padding:10px}.event-modal-card{width:100%;max-height:92dvh;border-radius:14px}.event-modal-image{min-height:200px}.event-modal-copy{padding:30px 20px}.event-modal-copy h2{font-size:clamp(35px,11vw,49px);overflow-wrap:anywhere}
  footer,.footer-links,.footer-socials{min-width:0}.footer-links{gap:14px 20px}.footer-socials{grid-template-columns:1fr!important}
}

@media(max-width:360px){
  .site-header>.brand small{display:none!important}.site-header>.brand b{font-size:15px!important}
  .hero{padding-inline:15px!important}.hero h1{font-size:2.9rem!important}
  .events-list article{grid-template-columns:52px minmax(0,1fr) 38px;gap:9px}
}

@media(prefers-reduced-motion:reduce){.events-gallery-grid img,.events-gallery-grid video{transition:none}}
