@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@500;600;700&display=swap');
:root{--ink:#20232a;--navy:#172334;--navy-2:#243347;--gold:#f4c84f;--gold-deep:#b88b16;--paper:#fbfaf7;--muted:#5b6575;--line:#e6e2d9;--white:#fff;--hero-image:url("../assets/david-sir-sermon-image.jpeg");--max:1180px;--radius:18px;--shadow:0 18px 55px rgba(22,31,44,.10)}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:90px}body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.65 'DM Sans',Arial,sans-serif}body.menu-open{overflow:hidden}img{max-width:100%;display:block}a{color:inherit;text-decoration:none}button,input,textarea,select{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.6;cursor:wait}:focus-visible{outline:3px solid #c28f00;outline-offset:3px}.skip-link{position:absolute;left:-999px;top:10px;background:white;padding:10px;z-index:100}.skip-link:focus{left:10px}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.container{width:min(var(--max),calc(100% - 48px));margin-inline:auto}.site-header{height:72px;background:rgba(255,255,255,.96);position:sticky;top:0;z-index:50;border-bottom:1px solid rgba(25,35,50,.08);backdrop-filter:blur(16px)}.header-inner{height:100%;display:flex;align-items:center;justify-content:space-between;gap:24px}.brand{display:flex;align-items:center;gap:10px;min-width:230px}.brand-mark{width:38px;height:38px;display:grid;place-items:center;border-radius:50%;background:var(--gold);color:var(--navy);font-size:23px;font-weight:700;box-shadow:inset 0 0 0 2px rgba(255,255,255,.4)}.brand-name{font-weight:700;letter-spacing:-.03em;line-height:1.1}.brand-sub{font-size:10px;color:#626b78;letter-spacing:.08em}.main-nav{display:flex;align-items:center;gap:clamp(15px,2vw,30px);font-size:13px;font-weight:600}.main-nav a:not(.button):hover,.main-nav a[aria-current=page]{color:#7a5c00}.button{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;padding:11px 20px;border-radius:9px;border:1px solid transparent;font-size:14px;font-weight:700;transition:transform .18s,background .18s,border-color .18s}.button:hover{transform:translateY(-1px)}.button-primary{background:var(--gold);color:#272315;box-shadow:0 6px 18px rgba(214,169,42,.18)}.button-primary:hover{background:#ffda69}.button-outline{border-color:var(--gold);color:var(--gold);background:rgba(20,29,42,.15)}.button-outline:hover{background:rgba(244,200,79,.13)}.button-light{background:white;color:var(--navy)}.menu-toggle{display:none;width:44px;height:44px;border:1px solid var(--line);border-radius:10px;background:white;color:var(--navy);font-size:23px}.mobile-drawer{display:none}
.hero{position:relative;isolation:isolate;min-height:min(760px,calc(100svh - 72px));display:flex;align-items:center;color:white;background-color:#202b3a;background-image:linear-gradient(90deg,rgba(13,23,37,.90) 0%,rgba(18,26,37,.76) 36%,rgba(28,27,30,.38) 70%,rgba(22,21,25,.45) 100%),linear-gradient(0deg,rgba(15,22,34,.55),transparent 55%),var(--hero-image);background-size:cover;background-position:center 52%;overflow:hidden}.hero:after{content:"";position:absolute;inset:auto 0 0;height:130px;background:linear-gradient(transparent,rgba(18,25,35,.23));z-index:-1}.hero-inner{padding-block:74px 62px;position:relative;z-index:1}.welcome-pill{display:inline-flex;align-items:center;gap:10px;color:#f5cc51;font-size:12px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;margin-bottom:20px}.welcome-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:var(--gold);color:var(--navy);font-size:22px;letter-spacing:0}.hero h1{font-size:clamp(46px,6.4vw,78px);line-height:.99;letter-spacing:-.055em;margin:0;max-width:700px;font-weight:700}.hero h1 span{display:block;color:#f5d56e}.hero-subtitle{font-size:clamp(18px,2vw,23px);margin:18px 0 8px;color:#f7f7f7}.hero-verse{font-size:15px;color:rgba(255,255,255,.82);font-style:italic;max-width:510px;margin:0}.verse-ref{display:block;color:#f5d56e;font-weight:700;font-style:normal;margin-top:5px}.hero-actions{display:flex;flex-wrap:wrap;gap:11px;margin-top:26px}.hero-info{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;max-width:790px;margin-top:34px}.info-card{min-height:100px;border:1px solid rgba(255,255,255,.27);border-radius:12px;background:rgba(255,255,255,.105);backdrop-filter:blur(9px);padding:17px 19px}.info-icon{color:var(--gold);font-size:20px;line-height:1}.info-card h2{font-size:13px;margin:8px 0 2px}.info-card p{font-size:12px;color:rgba(255,255,255,.78);line-height:1.5;margin:0}.scroll-cue{position:absolute;bottom:22px;left:50%;transform:translateX(-50%);width:26px;height:42px;border:1px solid rgba(255,255,255,.6);border-radius:20px;display:grid;place-items:start center;padding-top:7px}.scroll-cue span{height:7px;width:3px;border-radius:3px;background:var(--gold);animation:scroll 1.5s infinite}@keyframes scroll{0%{transform:translateY(0);opacity:1}75%{transform:translateY(13px);opacity:.2}100%{opacity:0}}
.section{padding:82px 0}.section-soft{background:#f2f0ea}.section-head{display:flex;justify-content:space-between;align-items:end;gap:25px;margin-bottom:30px}.eyebrow{font-size:11px;letter-spacing:.15em;text-transform:uppercase;color:#715600;font-weight:700;margin:0 0 10px}.section h2,.page-heading h1{font-family:'Playfair Display',Georgia,serif;font-size:clamp(31px,4vw,46px);line-height:1.14;letter-spacing:-.03em;margin:0}.section-intro{max-width:590px;color:var(--muted);margin:12px 0 0}.text-link{display:inline-flex;align-items:center;gap:8px;color:#8a6708;font-weight:700;font-size:14px;margin-top:15px}.text-link:hover{text-decoration:underline;text-underline-offset:4px}.welcome-grid{display:grid;grid-template-columns:1fr .85fr;gap:56px;align-items:center}.welcome-panel{background:var(--navy);color:white;border-radius:var(--radius);padding:34px;position:relative;overflow:hidden;min-height:280px;display:flex;flex-direction:column;justify-content:end}.welcome-panel:before{content:'✝';position:absolute;right:22px;top:-30px;font-size:180px;line-height:1;color:rgba(255,255,255,.06)}.welcome-panel h3{font-family:'Playfair Display',Georgia,serif;font-size:29px;line-height:1.2;max-width:370px;margin:0 0 10px;position:relative}.welcome-panel p{color:rgba(255,255,255,.72);max-width:440px;margin:0;position:relative}.sermon-card,.event-card,.feature-card{background:white;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;box-shadow:0 6px 25px rgba(28,34,44,.04)}.sermon-card{display:grid;grid-template-columns: .9fr 1fr;max-width:870px}.sermon-art{min-height:235px;background:linear-gradient(135deg,#26364a,#101925);display:flex;align-items:center;justify-content:center;position:relative;color:var(--gold);overflow:hidden}.sermon-art img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.sermon-art:after{content:'';position:absolute;inset:0;background:linear-gradient(135deg,rgba(15,24,38,.48),rgba(15,24,38,.12))}.sermon-art .icon{position:relative;z-index:1;width:60px;height:60px;border:1px solid rgba(255,255,255,.6);background:rgba(0,0,0,.23);border-radius:50%;display:grid;place-items:center;font-size:20px;padding-left:3px}.art-label{position:absolute;z-index:2;bottom:16px;left:18px;color:white;font-size:10px;letter-spacing:.15em;font-weight:700}.sermon-body{padding:28px}.sermon-body h2,.sermon-body h3,.event-content h2{font-family:'Playfair Display',Georgia,serif;font-size:25px;line-height:1.2;margin:0 0 10px}.sermon-body p:not(.eyebrow),.event-content p{color:var(--muted);font-size:14px;margin:0 0 13px}.meta-line{font-size:12px;color:#626b78;line-height:1.5}.feature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.feature-card{padding:25px}.feature-icon{width:46px;height:46px;border-radius:12px;display:grid;place-items:center;background:#fff4cb;color:#85630a;font-size:23px;margin-bottom:18px}.feature-card h3{font-family:'Playfair Display',Georgia,serif;font-size:22px;margin:0 0 8px}.feature-card p{color:var(--muted);font-size:14px;margin:0}.page-heading{padding:64px 0 48px;background:var(--navy);color:white;background-image:radial-gradient(circle at 85% 0,rgba(244,200,79,.18),transparent 35%)}.page-heading .eyebrow{color:var(--gold)}.page-heading p{max-width:640px;color:rgba(255,255,255,.72);margin:14px 0 0}.page-content{padding:54px 0 88px}.content-grid{display:grid;grid-template-columns:1fr 1fr;gap:28px;align-items:start}.content-grid>*{min-width:0}.content-panel{background:white;border:1px solid var(--line);border-radius:var(--radius);padding:30px}.content-panel h2{font-family:'Playfair Display',Georgia,serif;font-size:27px;margin:0 0 12px}.content-panel p{color:var(--muted)}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.field{display:flex;flex-direction:column;gap:7px;margin-bottom:16px}.field label{font-size:13px;font-weight:700}.field input,.field textarea,.field select,.search-control{width:100%;padding:12px 13px;border:1px solid #d8d8d4;border-radius:9px;background:white;color:var(--ink);outline:none}.field textarea{min-height:140px;resize:vertical}.field input:focus,.field textarea:focus,.field select:focus,.search-control:focus{border-color:#c59a21;box-shadow:0 0 0 3px rgba(244,200,79,.2)}.form-status{display:none;padding:13px 15px;border-radius:10px;margin:14px 0;font-size:13px}.form-status:not(:empty){display:block}.form-status.notice{background:#fff4cf;color:#624b0c}.form-status.success{background:#e4f7e9;color:#155b2c}.form-status.error{background:#ffebeb;color:#8c1e1e}.sermon-toolbar{display:flex;gap:12px;margin-bottom:26px}.sermon-toolbar>*{max-width:100%}.sermon-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.sermon-grid .sermon-card{display:flex;flex-direction:column}.sermon-grid .sermon-art{min-height:190px}.sermon-grid .sermon-body{padding:20px}.sermon-grid .sermon-body h2{font-size:21px}.event-list{display:grid;gap:16px}.event-card{display:flex;gap:22px;padding:23px}.event-date{flex:0 0 76px;height:84px;border-radius:12px;background:#fff4cc;color:#6e5200;display:flex;flex-direction:column;align-items:center;justify-content:center}.event-date strong{font-size:28px;line-height:1}.event-date span{font-size:11px;font-weight:700;text-transform:uppercase;margin-top:7px}.event-content{flex:1}.event-content h2{margin:0 0 8px}.event-content .button{margin-top:8px}.empty-state{border:1px dashed #d5d0c4;background:#fff;border-radius:var(--radius);padding:44px 24px;text-align:center;grid-column:1/-1}.empty-icon{font-size:28px;color:#b88b16}.empty-state h2{font-family:'Playfair Display',Georgia,serif;margin:8px 0;font-size:27px}.empty-state p{max-width:620px;margin:0 auto 20px;color:var(--muted)}.giving-callout{background:var(--navy);color:white;border-radius:var(--radius);padding:34px}.giving-callout h2{font-family:'Playfair Display',Georgia,serif;font-size:30px;margin:0 0 12px}.giving-callout p{color:rgba(255,255,255,.75)}.site-footer{background:#151f2e;color:white;padding:52px 0 22px}.footer-grid{display:grid;grid-template-columns:1.5fr 1fr 1fr 1fr;gap:32px}.footer-grid h2,.footer-grid h3{font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:var(--gold);margin:0 0 15px}.footer-grid p,.footer-grid a{font-size:13px;color:rgba(255,255,255,.7)}.footer-links{display:grid;gap:8px}.footer-links a:hover{color:var(--gold)}.footer-bottom{border-top:1px solid rgba(255,255,255,.13);margin-top:34px;padding-top:18px;display:flex;justify-content:space-between;gap:16px;color:rgba(255,255,255,.55);font-size:12px}.is-unconfigured{opacity:.8}.small-note{font-size:12px;color:var(--muted)}
@media(max-width:900px){.main-nav{gap:15px}.main-nav a{font-size:12px}.brand{min-width:auto}.hero{min-height:690px}.welcome-grid{gap:28px}.sermon-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.footer-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:700px){.container{width:min(100% - 34px,var(--max))}.site-header{height:66px}.main-nav,.header-visit{display:none}.menu-toggle{display:grid;place-items:center}.mobile-drawer{display:flex;position:fixed;z-index:80;inset:0 0 0 auto;width:min(340px,88vw);padding:24px;background:white;box-shadow:-25px 0 70px rgba(0,0,0,.18);transform:translateX(105%);transition:transform .25s;flex-direction:column;gap:28px}.mobile-drawer.is-open{transform:translateX(0)}.drawer-top{display:flex;align-items:center;justify-content:space-between}.drawer-close{border:1px solid var(--line);background:white;border-radius:8px;width:42px;height:42px;font-size:22px}.drawer-links{display:grid;gap:8px}.drawer-links a{padding:12px 5px;border-bottom:1px solid var(--line);font-weight:600}.drawer-overlay{display:none;position:fixed;inset:0;background:rgba(12,20,31,.42);z-index:70}.drawer-overlay.is-open{display:block}.hero{min-height:calc(100svh - 66px);background-position:58% center}.hero-inner{padding:54px 0 68px}.hero h1{font-size:clamp(43px,12vw,63px)}.hero-subtitle{margin-top:15px}.hero-verse{font-size:14px}.hero-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px}.hero-actions .button{padding:10px 9px;font-size:12px;min-height:46px}.hero-info{grid-template-columns:1fr;gap:9px;margin-top:24px}.info-card{min-height:auto;display:grid;grid-template-columns:28px 1fr;column-gap:8px;padding:12px 14px}.info-icon{grid-row:span 2;margin-top:3px}.info-card h2{margin:0 0 2px}.scroll-cue{display:none}.section{padding:58px 0}.section-head{align-items:start;flex-direction:column;gap:8px}.welcome-grid,.content-grid{grid-template-columns:1fr}.welcome-panel{min-height:230px}.sermon-card{grid-template-columns:1fr}.sermon-card .sermon-art{min-height:200px}.feature-grid{grid-template-columns:1fr}.page-heading{padding:48px 0 38px}.page-content{padding:32px 0 62px}.sermon-toolbar{flex-direction:column}.sermon-grid{grid-template-columns:1fr}.sermon-grid .sermon-art{min-height:205px}.event-card{gap:14px;padding:15px}.event-date{flex-basis:62px;height:74px}.event-date strong{font-size:24px}.content-panel{padding:22px}.form-grid{grid-template-columns:1fr;gap:0}.footer-grid{grid-template-columns:1fr 1fr;gap:24px}.footer-grid>div:first-child{grid-column:1/-1}.footer-bottom{flex-direction:column}.giving-callout{padding:25px}}
/* A closed off-canvas drawer must not remain in the tab order while aria-hidden. */
@media(max-width:700px){.mobile-drawer{visibility:hidden;transition:transform .25s,visibility 0s .25s}.mobile-drawer.is-open{visibility:visible;transition:transform .25s,visibility 0s}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
/* ============================================================
   ADVERTISING PLACEMENT STYLES (Zero space when inactive)
   ============================================================ */
.ad-slot-container {
  display: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.ad-slot-container.ad-slot-active {
  display: block;
  margin: 30px auto;
  max-width: 728px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 16px 16px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .02);
}

.ad-slot-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #a39e94;
  margin-bottom: 8px;
}

.ad-development-preview {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7c776e;
  font-size: 12px;
  background: #f2efe9;
  border-radius: 8px;
  padding: 12px;
}

.blog-grid > .ad-slot-container {
  grid-column: 1 / -1;
}

/* ============================================================
   VIDEO (YouTube-style) SERMON CARDS
   ============================================================ */

/* Grid of video cards */
.sermon-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(255px,1fr));gap:22px;align-items:start}
.cms-sermon-section{margin-bottom:52px;padding-bottom:38px;border-bottom:1px solid var(--line)}
.cms-sermon-search{display:grid;gap:7px;min-width:min(300px,100%);font-size:13px;font-weight:700;color:var(--muted)}
.cms-sermon-search input{min-height:44px;padding:9px 12px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--ink)}
.sermon-detail{max-width:900px;margin-inline:auto}
.sermon-detail-image-frame{width:100%;min-height:280px;max-height:420px;height:min(56vw,420px);display:grid;place-items:center;overflow:hidden;border-radius:var(--radius);margin-bottom:26px;background:linear-gradient(135deg,#26364a,#101925)}
.sermon-detail-image{display:block;width:100%;height:100%;max-height:420px;object-fit:contain;object-position:center}
#sermon-detail-video-link{background:#fff;color:#6b5200;border-color:#8a6708}
#sermon-detail-video-link:hover{background:#fff4cb}
.sermon-detail-header h2{font-family:'Playfair Display',Georgia,serif;font-size:clamp(29px,4vw,44px);line-height:1.15;margin:0 0 10px}
.sermon-detail-meta{color:var(--muted);font-weight:600;margin:0 0 24px}
.sermon-detail-video{position:relative;aspect-ratio:16/9;margin:0 0 22px;background:#101925;border-radius:var(--radius);overflow:hidden}
.sermon-detail-video iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.sermon-detail-audio{width:100%;margin:0 0 22px}
.sermon-detail-description{white-space:pre-line;font-size:16px;line-height:1.8}

/* The card */
.video-card{display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden;box-shadow:0 6px 25px rgba(28,34,44,.05);transition:transform .2s,box-shadow .2s}
.video-card:hover{transform:translateY(-3px);box-shadow:0 16px 36px rgba(28,34,44,.13)}

/* Thumbnail area (16:9 like YouTube) */
.video-thumb{position:relative;display:block;aspect-ratio:16/9;background:linear-gradient(135deg,#26364a,#101925);overflow:hidden}
.video-thumb-media{position:absolute;inset:0;display:grid;place-items:center}
.video-thumb-fallback{color:rgba(244,200,79,.45);font-size:52px;line-height:1;z-index:0;transition:opacity .3s}
.video-card.has-thumb .video-thumb-fallback{opacity:0}
.video-thumb-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:1;opacity:0;transition:opacity .35s,transform .35s}
.video-card.has-thumb .video-thumb-img{opacity:1}
.video-card:hover .video-thumb-img{transform:scale(1.04)}
.video-thumb:after{content:'';position:absolute;inset:0;z-index:2;background:linear-gradient(180deg,rgba(12,20,31,.02) 35%,rgba(12,20,31,.5));pointer-events:none}

/* Play button */
.video-play{position:absolute;z-index:3;inset:0;margin:auto;width:52px;height:52px;border-radius:50%;display:grid;place-items:center;background:rgba(12,20,31,.62);border:1px solid rgba(255,255,255,.55);color:#fff;font-size:16px;padding-left:3px;backdrop-filter:blur(3px);transition:transform .2s,background .2s,color .2s,border-color .2s}
.video-card:hover .video-play{transform:scale(1.1);background:var(--gold);color:var(--navy);border-color:transparent}

/* Corner tag */
.video-tag{position:absolute;z-index:3;left:10px;bottom:10px;background:rgba(12,20,31,.8);color:#fff;font-size:10px;font-weight:700;letter-spacing:.09em;text-transform:uppercase;padding:4px 8px;border-radius:5px}

/* Body: avatar + text */
.video-body{display:flex;gap:12px;padding:14px 15px 17px}
.video-avatar{flex:0 0 38px;width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:var(--gold);color:var(--navy);font-size:19px;font-weight:700;box-shadow:inset 0 0 0 2px rgba(255,255,255,.45)}
.video-text{flex:1;min-width:0}
.video-title{font-size:15px;line-height:1.35;font-weight:700;letter-spacing:-.01em;margin:0 0 5px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.video-title a{color:var(--ink)}
.video-title a:hover{color:#9b7200}
.video-channel{font-size:12.5px;font-weight:600;color:#5d6674;margin:0 0 2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.video-meta{font-size:12px;color:#626b78;margin:0}
.video-desc{font-size:12.5px;color:var(--muted);margin:7px 0 0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.video-desc[hidden]{display:none}

/* Featured card on the homepage */
#featured-sermon{display:block;max-width:none;background:transparent;border:0;border-radius:0;box-shadow:none;overflow:visible}
.video-card.is-featured{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);align-items:stretch;max-width:920px}
.video-card.is-featured .video-thumb{aspect-ratio:auto;height:100%;min-height:240px}
.video-card.is-featured .video-body{padding:24px;align-items:flex-start}
.video-card.is-featured .video-title{font-family:'Playfair Display',Georgia,serif;font-size:clamp(20px,2.2vw,25px);letter-spacing:-.02em}
.video-card.is-featured .video-avatar{flex-basis:42px;width:42px;height:42px;font-size:20px}
.video-card.is-featured .video-desc{-webkit-line-clamp:3}

@media(max-width:820px){
  .video-card.is-featured{grid-template-columns:1fr}
  .video-card.is-featured .video-thumb{aspect-ratio:16/9;min-height:0}
}
@media(max-width:700px){
  .sermon-grid{grid-template-columns:1fr;gap:18px}
}
.welcome-image-panel {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 280px;
  box-shadow: var(--shadow);
  display: flex;
}

.welcome-image-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ==========================================
   IMAGE GALLERY (click to reveal description)
   ========================================== */
.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.gallery-item {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: #f2f0ea;
  box-shadow: 0 6px 25px rgba(28, 34, 44, .06);
  transition: transform .25s ease, box-shadow .25s ease;
}

.gallery-item:hover,
.gallery-item:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(28, 34, 44, .15);
  outline: none;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

/* Soft dark gradient + zoom icon on hover */
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 20, 31, 0) 55%, rgba(12, 20, 31, .55));
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}

.gallery-item:hover::after,
.gallery-item:focus-visible::after {
  opacity: 1;
}

.gallery-item::before {
  content: '⤢';
  position: absolute;
  bottom: 14px;
  right: 16px;
  z-index: 2;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
}

.gallery-item:hover::before,
.gallery-item:focus-visible::before {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================
   LIGHTBOX MODAL
   ========================================== */
body.modal-open {
  overflow: hidden;
}

.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.gallery-modal.is-open {
  display: flex;
}

.gallery-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 16, 26, .82);
  backdrop-filter: blur(6px);
  animation: fadeIn .25s ease;
}

.gallery-modal-content {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  max-height: calc(100vh - 48px);
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  animation: popIn .3s cubic-bezier(.2, .9, .3, 1.2);
}

.gallery-modal-image {
  background: #101925;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  overflow: hidden;
}

.gallery-modal-image img {
  width: 100%;
  height: 100%;
  max-height: calc(100vh - 48px);
  object-fit: cover;
  display: block;
}

.gallery-modal-info {
  padding: 34px 32px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.gallery-modal-info .eyebrow {
  margin-bottom: 8px;
}

.gallery-modal-info h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.2;
  letter-spacing: -.02em;
  margin: 0 0 10px;
  color: var(--ink);
}

.gallery-modal-meta {
  font-size: 12.5px;
  font-weight: 600;
  color: #8a9099;
  margin: 0 0 18px;
}

.gallery-modal-description {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}

/* Close button */
.gallery-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, .92);
  color: var(--navy);
  font-size: 24px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
  transition: background .2s ease, transform .2s ease;
}

.gallery-modal-close:hover {
  background: var(--gold);
  transform: scale(1.05);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes popIn {
  from { opacity: 0; transform: scale(.94); }
  to   { opacity: 1; transform: scale(1); }
}

/* Responsive */
@media (max-width: 760px) {
  .gallery-modal {
    padding: 12px;
  }
  .gallery-modal-content {
    grid-template-columns: 1fr;
    max-height: calc(100vh - 24px);
    border-radius: 14px;
  }
  .gallery-modal-image {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }
  .gallery-modal-image img {
    max-height: 45vh;
  }
  .gallery-modal-info {
    padding: 24px 22px 28px;
  }
  .gallery-modal-close {
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
  }
  .image-gallery {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
  }
}

/* Pastor Card Container */
.pastor-card {
  background: #ffffff;
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 16px;
  padding: 40px;
  max-width: 850px;
  margin: 0 auto;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #7a5c00; /* Warm gold, darkened for AA contrast */
  text-transform: uppercase;
  margin-bottom: 8px;
}

.pastor-name {
  font-family: 'Playfair Display', 'Cinzel', Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  color: #0f172a; /* Deep Navy */
  margin: 0 0 4px 0;
  line-height: 1.2;
}

.pastor-title {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #7a5c00; /* Deep ochre, darkened for AA contrast */
  margin-bottom: 24px;
}

/* Pastor Bio Typography & Spacing */
.pastor-bio p {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  color: #475569; /* Soft Slate Text */
  margin-bottom: 16px;
}

.pastor-bio strong {
  color: #0f172a;
  font-weight: 600;
}

/* Tag Badges */
.pastor-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
}

.pastor-tags .tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #faf8f5; /* Warm Cream */
  color: #0f172a;
  border: 1px solid rgba(212, 175, 55, 0.3);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}
/* ============================================================
   HEADER FIT (tablet): with the Blog link the main nav has 7 items.
   Between 701px and 900px the "Visit Us" button no longer fits beside
   them, so it is hidden there. Contact stays in the nav; "Plan a visit"
   remains in the footer and the mobile drawer.
   ============================================================ */
@media (min-width: 701px) and (max-width: 900px) {
  .header-visit { display: none; }
}
.facebook-feed-section,.facebook-sermon-section{margin-top:48px;padding-top:32px;border-top:1px solid var(--line)}
.facebook-feed-section .section-head{margin-bottom:14px}
.facebook-feed-section h2,.facebook-sermon-section h2{font-family:'Playfair Display',Georgia,serif;font-size:clamp(26px,3vw,36px);line-height:1.2;margin:0}
.facebook-feed-status{color:var(--muted);font-size:14px;margin:12px 0 18px}
.facebook-feed-retry{margin:-4px 0 18px}
.facebook-feed-retry[hidden]{display:none}
.facebook-post-grid,.facebook-sermon-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:20px;align-items:start}
.facebook-post-card,.facebook-sermon-card{min-width:0;padding:20px;background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:0 6px 25px rgba(28,34,44,.04)}
.facebook-post-card h3,.facebook-sermon-card h3{font-family:'Playfair Display',Georgia,serif;font-size:21px;line-height:1.3;margin:0 0 8px}
.facebook-post-meta{color:var(--muted);font-size:12px;margin:0 0 12px}
.facebook-post-description{white-space:pre-wrap;overflow-wrap:anywhere;margin:0 0 12px}
.facebook-embed{width:100%;max-width:100%;overflow:hidden}
.facebook-embed iframe{display:block;width:100%;min-height:300px;border:0}
.facebook-source-link{display:inline-block;margin-top:12px;color:#8a6708;font-size:13px;font-weight:700;text-decoration:underline;text-underline-offset:3px}
.facebook-gallery-item img{width:100%;height:auto;min-height:180px;max-height:520px;object-fit:contain;background:#f2f0ea}
.facebook-gallery-caption{padding:10px 12px;color:var(--muted);font-size:13px;line-height:1.45}
@media(max-width:680px){.facebook-post-card,.facebook-sermon-card{padding:16px}.facebook-embed iframe{min-height:260px}}
