/* v1.1.82 — homepage section rhythm + seam alignment cleanup */
.home .fx-home,
.page-template-template-homepage .fx-home{
  --pj-home-shell-standard:min(calc(100% - 34px),1540px);
  --pj-home-shell-wide:min(calc(100% - 34px),1740px);
  --pj-home-section-gap:clamp(24px,2.8vw,36px);
  --pj-home-section-pad:clamp(28px,3.6vw,48px);
}

.home .fx-home > section,
.page-template-template-homepage .fx-home > section{
  position:relative;
  margin:0!important;
  border:0!important;
  isolation:isolate;
  overflow:hidden;
  background-clip:border-box;
}

/* Stop pseudo/background bleed between sections so starts/ends feel matched. */
.home .fx-home > .rm-section::after,
.page-template-template-homepage .fx-home > .rm-section::after,
.home .fx-home > .fx-bottom-zone::after,
.page-template-template-homepage .fx-home > .fx-bottom-zone::after{
  background-clip:border-box;
}

/* Shared section shell widths for better visual continuity. */
.home .fx-home > .rm-section > .site-container,
.page-template-template-homepage .fx-home > .rm-section > .site-container,
.home .fx-home > .pj-sacred-gallery > .gallery-section,
.page-template-template-homepage .fx-home > .pj-sacred-gallery > .gallery-section,
.home .fx-home > .fx-bottom-zone > .site-container,
.page-template-template-homepage .fx-home > .fx-bottom-zone > .site-container,
.home .fx-home > .pj-about > .pj-about__layout,
.page-template-template-homepage .fx-home > .pj-about > .pj-about__layout{
  width:var(--pj-home-shell-wide)!important;
  max-width:var(--pj-home-shell-wide)!important;
  margin-inline:auto!important;
}

/* Full-image section remains wide, but its start/end now aligns with surrounding sections. */
.home .fx-home > .rm-international,
.page-template-template-homepage .fx-home > .rm-international{
  padding-block:clamp(18px,2.2vw,28px)!important;
}
.home .fx-home > .rm-international > .fx-global-image-exact__media,
.page-template-template-homepage .fx-home > .rm-international > .fx-global-image-exact__media{
  width:var(--pj-home-shell-wide)!important;
  max-width:var(--pj-home-shell-wide)!important;
  margin-inline:auto!important;
  border-radius:0!important;
}

/* Normalize top/bottom rhythm so sections feel like one family. */
.home .fx-home > .pj-sacred-gallery,
.home .fx-home > .pj-about,
.home .fx-home > .rm-sankalp,
.home .fx-home > .fx-bottom-zone,
.page-template-template-homepage .fx-home > .pj-sacred-gallery,
.page-template-template-homepage .fx-home > .pj-about,
.page-template-template-homepage .fx-home > .rm-sankalp,
.page-template-template-homepage .fx-home > .fx-bottom-zone{
  padding-block:var(--pj-home-section-pad)!important;
}

/* Remove awkward dead bars before/after gallery internals. */
.home .pj-sacred-gallery .gallery-header,
.page-template-template-homepage .pj-sacred-gallery .gallery-header{margin-bottom:28px!important}
.home .pj-sacred-gallery .slider-nav,
.page-template-template-homepage .pj-sacred-gallery .slider-nav{margin-top:18px!important}
.home .pj-sacred-gallery .dots-wrap,
.page-template-template-homepage .pj-sacred-gallery .dots-wrap{margin-top:14px!important}
.home .pj-sacred-gallery .view-all-wrap,
.page-template-template-homepage .pj-sacred-gallery .view-all-wrap{margin-top:20px!important}

/* Give every homepage section a clean visual edge instead of abrupt mismatched strips. */
.home .fx-home > .rm-section,
.home .fx-home > .fx-bottom-zone,
.page-template-template-homepage .fx-home > .rm-section,
.page-template-template-homepage .fx-home > .fx-bottom-zone{
  box-shadow:inset 0 1px rgba(255,255,255,.06), inset 0 -1px rgba(60,14,24,.08);
}
.home .fx-home > .rm-section:first-child,
.page-template-template-homepage .fx-home > .rm-section:first-child{box-shadow:inset 0 -1px rgba(60,14,24,.08)}

/* Match the content-start line inside card/grid based sections. */
.home .fx-home > .fx-bottom-zone .fx-bottom-grid,
.page-template-template-homepage .fx-home > .fx-bottom-zone .fx-bottom-grid{
  align-items:stretch!important;
  gap:clamp(18px,2vw,28px)!important;
}

/* About section should align perfectly with neighbouring sections. */
.home .fx-home > .pj-about,
.page-template-template-homepage .fx-home > .pj-about{
  padding-block:0!important;
}
.home .fx-home > .pj-about > .pj-about__layout,
.page-template-template-homepage .fx-home > .pj-about > .pj-about__layout{
  min-height:clamp(560px,48vw,700px);
}

/* Narrow screens: keep starts/ends visually consistent and avoid off-looking strips. */
@media (max-width: 991px){
  .home .fx-home,
  .page-template-template-homepage .fx-home{
    --pj-home-shell-standard:min(calc(100% - 24px),1040px);
    --pj-home-shell-wide:min(calc(100% - 24px),1040px);
    --pj-home-section-pad:clamp(22px,5vw,34px);
  }
  .home .fx-home > .rm-international,
  .page-template-template-homepage .fx-home > .rm-international{
    padding-block:16px!important;
  }
  .home .pj-sacred-gallery .gallery-header,
  .page-template-template-homepage .pj-sacred-gallery .gallery-header{margin-bottom:22px!important}
}

@media (max-width: 640px){
  .home .fx-home,
  .page-template-template-homepage .fx-home{
    --pj-home-shell-standard:min(calc(100% - 18px),680px);
    --pj-home-shell-wide:min(calc(100% - 18px),680px);
    --pj-home-section-pad:20px;
  }
  .home .fx-home > .pj-sacred-gallery,
  .home .fx-home > .fx-bottom-zone,
  .page-template-template-homepage .fx-home > .pj-sacred-gallery,
  .page-template-template-homepage .fx-home > .fx-bottom-zone{
    padding-block:20px!important;
  }
  .home .fx-home > .pj-about > .pj-about__layout,
  .page-template-template-homepage .fx-home > .pj-about > .pj-about__layout{width:min(calc(100% - 18px),680px)!important;max-width:min(calc(100% - 18px),680px)!important}
}
