/* Comunidade Ekklesia — v45. Original photos and official identity. */
.home-v37 .hero-v28-section{
  display:block;
  isolation:isolate;
  background:
    linear-gradient(90deg,rgba(3,24,31,.95) 0%,rgba(5,37,46,.89) 45%,rgba(6,43,52,.62) 100%),
    url('assets/galeria-home/comunhao.webp') center 46%/cover no-repeat,
    #072e39;
}
.home-v37 .hero-v28-section .hero-v28-grid,
.home-v37 .hero-v28-section .hero-v28-bottom{position:relative;z-index:2}
.home-v37 .v45-cinema{position:relative;z-index:2;margin-top:42px;padding:0 0 26px}
.home-v37 .v45-cinema-intro{display:flex;align-items:end;gap:30px;margin:0 0 18px;padding:18px 0;border-top:1px solid rgba(214,238,240,.16)}
.v45-cinema-intro>span{font-size:.64rem;letter-spacing:.21em;font-weight:800;color:#e6bd7c;flex:0 0 auto}
.v45-cinema-intro p{font-family:'Playfair Display',serif;font-size:clamp(1.2rem,2.2vw,2rem);margin:0;color:#f1f8f8;line-height:1.25;flex:1}
.v45-cinema-intro p em{color:#bed6da}
.v45-cinema-intro a{color:#e8c18b;font-size:.87rem;font-weight:700;text-decoration:none;white-space:nowrap}
.v45-cinema-intro a:hover,.v45-cinema-intro a:focus-visible{text-decoration:underline}
.v45-cinema-photos{display:grid;grid-template-columns:2.1fr 1fr 1fr;gap:12px}
.v45-cinema-shot{position:relative;display:block;height:225px;overflow:hidden;border-radius:20px;border:1px solid rgba(225,245,248,.18);background:#0d3038}
.v45-cinema-shot img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .65s cubic-bezier(.25,.8,.25,1)}
.v45-cinema-shot-main img{object-position:center 52%}
.v45-cinema-shot:nth-child(2) img{object-position:center 32%}
.v45-cinema-shot:after{position:absolute;content:"";inset:32% 0 0;background:linear-gradient(0deg,rgba(1,22,29,.78),transparent);pointer-events:none}
.v45-cinema-shot:hover img,.v45-cinema-shot:focus-visible img{transform:scale(1.065)}
.v45-cinema-shot span{position:absolute;z-index:2;bottom:19px;left:20px;color:#fff;letter-spacing:.1em;font-size:.7rem;font-weight:800;text-transform:uppercase}
.home-v37 .hero-v28-section .hero-v28-bottom{margin-top:26px}
/* Global rhythm, roots as restrained accents. */
.home-v37 .sou-ekklesia-v28{position:relative}
.home-v37 .sou-ekklesia-v28:before{content:"";position:absolute;inset:0;pointer-events:none;opacity:.1;background:url('assets/raizes-mark-v21.webp') no-repeat right -80px center;background-size:440px auto;filter:grayscale(1);mix-blend-mode:screen}
.home-v37 .dna-v36{background:linear-gradient(160deg,#f5faf9 0%,#eaf2f0 100%)}
.home-v37 .home-bento{padding-block:104px 112px}
.home-v37 .programacao-v28{padding-block:105px}
/* Editorial gallery — actual photographs, no AI replacements. */
.v45-gallery{position:relative;overflow:hidden;padding:115px 0 110px;background:linear-gradient(156deg,#f9f8f4 0%,#eaf0ee 100%);color:#173943}
.v45-gallery:before{content:"";position:absolute;right:-300px;top:-320px;width:900px;height:900px;border-radius:50%;border:1px solid rgba(20,75,86,.08);box-shadow:0 0 0 100px rgba(22,73,86,.018),0 0 0 210px rgba(22,73,86,.01);pointer-events:none}
.v45-gallery-heading{position:relative;display:grid;grid-template-columns:1.15fr .65fr;gap:90px;align-items:end;margin-bottom:42px}
.v45-gallery-heading .kicker{color:#af7738}
.v45-gallery-heading h2{margin:12px 0 0;max-width:790px;font-family:'Playfair Display',serif;font-size:clamp(2.7rem,5.3vw,5.4rem);line-height:1.04;letter-spacing:-.04em;color:#0c3845}
.v45-gallery-heading h2 em{color:#386778}
.v45-gallery-heading-aside{padding-bottom:7px}
.v45-gallery-heading-aside p{color:#536f77;font-size:1.03rem;line-height:1.8;margin:0 0 25px}
.v45-gallery-heading-aside span{display:flex;justify-content:space-between;gap:10px;border-top:1px solid #cbdcdd;padding-top:16px;color:#9d6731;font-weight:800;letter-spacing:.13em;font-size:.65rem}
.v45-photo-grid{position:relative;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:216px;gap:12px}
.v45-photo{display:block;appearance:none;position:relative;overflow:hidden;background:#0c3340;border:0;padding:0;margin:0;width:100%;height:100%;border-radius:16px;cursor:zoom-in;text-align:left;color:#fff}
.v45-photo:first-child{grid-column:span 2;grid-row:span 2;border-radius:22px}
.v45-photo:nth-child(6){grid-column:span 2}
.v45-photo img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .7s cubic-bezier(.18,.73,.24,1),filter .4s ease}
.v45-photo:first-child img{object-position:center 55%}
.v45-photo:nth-child(2) img{object-position:center 52%}
.v45-photo:nth-child(4) img{object-position:center 40%}
.v45-photo:nth-child(5) img{object-position:center 30%}
.v45-photo:hover img,.v45-photo:focus-visible img{transform:scale(1.07)}
.v45-photo:focus-visible{outline:3px solid #d5a45a;outline-offset:3px}
.v45-photo-shade{position:absolute;inset:40% 0 0;background:linear-gradient(0deg,rgba(3,26,33,.87),rgba(4,29,35,0));pointer-events:none}
.v45-photo-label{position:absolute;left:18px;right:45px;bottom:19px;display:flex;flex-direction:column;gap:6px;z-index:1}
.v45-photo-label small{color:#f1c88a;letter-spacing:.13em;font-size:.63rem;font-weight:800}
.v45-photo-label strong{color:#fff;font-family:'Playfair Display',serif;font-size:1.1rem;line-height:1.27;font-weight:600}
.v45-photo:first-child .v45-photo-label{left:26px;bottom:26px}
.v45-photo:first-child .v45-photo-label strong{font-size:clamp(1.6rem,3vw,2.65rem)}
.v45-photo-plus{position:absolute;top:13px;right:13px;width:36px;height:36px;display:grid;place-items:center;border-radius:50%;background:rgba(234,247,246,.18);backdrop-filter:blur(10px);font-size:1rem}
.v45-gallery-bottom{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:25px}
.v45-gallery-bottom p{font-family:'Playfair Display',serif;font-size:1.3rem;margin:0;color:#24515b}
.v45-gallery-bottom span{color:#6b858b;font-size:.78rem}
/* Photo viewer */
.v45-lightbox{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;padding:0;border:0;background:rgba(3,22,28,.98);color:#fff;overflow:hidden}
.v45-lightbox::backdrop{background:rgba(1,12,18,.88)}
.v45-lightbox-frame{position:relative;width:100%;height:100%;display:grid;place-items:center;padding:72px 78px 85px}
.v45-lightbox figure{margin:0;min-width:0;max-height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px}
.v45-lightbox figure img{display:block;max-width:min(100%,1150px);max-height:calc(100dvh - 165px);width:auto;height:auto;object-fit:contain;border-radius:12px}
.v45-lightbox figcaption{text-align:center;font-size:.94rem;color:#cfdee1}
.v45-lightbox button{border:1px solid rgba(255,255,255,.25);background:rgba(255,255,255,.12);color:#fff;cursor:pointer;border-radius:50%;height:44px;width:44px;display:grid;place-items:center;font-size:1.2rem;position:absolute;z-index:2}
.v45-lightbox button:focus-visible{outline:2px solid #ebbd7a;outline-offset:3px}
.v45-lightbox-close{top:18px;right:22px}
.v45-lightbox-prev{left:19px;top:50%}.v45-lightbox-next{right:19px;top:50%}
.v45-lightbox-count{position:absolute;bottom:26px;left:50%;transform:translateX(-50%);font-size:.75rem;letter-spacing:.15em;color:#dbebee}
@media(max-width:900px){
  .v45-gallery-heading{grid-template-columns:1fr;gap:18px}
  .v45-photo-grid{grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:210px}
  .v45-photo:first-child{grid-column:span 2;grid-row:span 2}
  .v45-photo:nth-child(6){grid-column:span 2}
  .home-v37 .v45-cinema-intro{flex-wrap:wrap;gap:10px 20px}
  .v45-cinema-intro p{flex-basis:60%}
}
@media(max-width:620px){
  .home-v37 .hero-v28-section{background:linear-gradient(90deg,rgba(3,24,31,.95),rgba(5,37,46,.88)),url('assets/galeria-home/comunhao.webp') 50% 30%/cover no-repeat,#072e39}
  .home-v37 .v45-cinema{margin-top:28px;padding-bottom:10px}
  .home-v37 .v45-cinema-intro{display:flex;align-items:flex-start;flex-direction:column;gap:11px}
  .v45-cinema-intro p{font-size:1.55rem;max-width:100%}
  .v45-cinema-intro a{font-size:.78rem;white-space:normal}
  .v45-cinema-photos{grid-template-columns:1fr 1fr;gap:9px}
  .v45-cinema-shot{height:134px;border-radius:13px}
  .v45-cinema-shot-main{grid-column:span 2;height:210px}
  .v45-cinema-shot span{bottom:11px;left:12px;font-size:.62rem}
  .home-v37 .hero-v28-section .hero-v28-bottom{display:none}
  .home-v37 .hero-v28-section{padding-bottom:46px}
  .v45-gallery{padding:75px 0 72px}
  .v45-gallery-heading{gap:16px;margin-bottom:25px}
  .v45-gallery-heading h2{font-size:clamp(2.6rem,11vw,3.55rem);line-height:1.06}
  .v45-gallery-heading-aside p{font-size:.95rem;line-height:1.68;margin-bottom:13px}
  .v45-photo-grid{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;gap:12px;padding-bottom:5px;scroll-padding:13px}
  .v45-photo-grid::-webkit-scrollbar{display:none}
  .v45-photo,.v45-photo:first-child,.v45-photo:nth-child(6){flex:0 0 81%;width:81%;height:410px;border-radius:20px;scroll-snap-align:center}
  .v45-photo:nth-child(1) img{object-position:center}
  .v45-photo-label,.v45-photo:first-child .v45-photo-label{left:18px;right:38px;bottom:21px}
  .v45-photo-label strong,.v45-photo:first-child .v45-photo-label strong{font-size:1.45rem}
  .v45-gallery-bottom{display:block;margin-top:22px}.v45-gallery-bottom p{font-size:1.05rem}.v45-gallery-bottom span{display:block;margin-top:10px;font-size:.75rem}
  .v45-lightbox-frame{padding:70px 10px 82px}
  .v45-lightbox figure img{max-height:calc(100dvh - 195px)}
  .v45-lightbox-prev{top:auto;bottom:18px;left:18px}.v45-lightbox-next{top:auto;bottom:18px;right:18px}
  .v45-lightbox-close{right:16px;top:14px}
  .home-v37 .home-bento{padding-block:77px 88px}
  .home-v37 .programacao-v28{padding-block:82px}
}
@media(prefers-reduced-motion:reduce){
  .v45-photo img,.v45-cinema-shot img{transition:none!important}
  .v45-photo:hover img,.v45-cinema-shot:hover img{transform:none!important}
  .v45-photo-grid{scroll-behavior:auto}
}

/* Thin branching lines are drawn as visitors reach the photo story. */
.v45-root-lines{pointer-events:none;position:absolute;right:-120px;bottom:-80px;width:min(48vw,580px);height:auto;color:#b78748;opacity:.12;transform:rotate(-17deg)}
.v45-root-lines path{stroke-dasharray:1600;stroke-dashoffset:1600;animation:v45-draw-roots 12s ease-out 1s infinite alternate}
@keyframes v45-draw-roots{0%{stroke-dashoffset:1600}55%,100%{stroke-dashoffset:0}}
@media(max-width:620px){.v45-root-lines{display:none}}
@media(prefers-reduced-motion:reduce){.v45-root-lines path{animation:none;stroke-dashoffset:0}}
