/* Version 130 — mobile scroll repair and lighter decorative rendering. */

@media (max-width: 900px) {
  /*
   * Use the browser viewport as the only vertical scroller.
   * Older full-screen and snap rules remain untouched on desktop.
   */
  html {
    height: auto !important;
    min-height: 100%;
    overflow-x: clip;
    overflow-y: auto !important;
    scroll-behavior: auto !important;
    scroll-snap-type: none !important;
    overscroll-behavior-y: auto !important;
  }

  body,
  .about-page-body,
  .services-page-body,
  .programs-page-body,
  .events-page-body,
  .bible-page-body {
    position: relative;
    height: auto !important;
    min-height: 100% !important;
    max-height: none !important;
    overflow-x: clip !important;
    overflow-y: visible !important;
    touch-action: auto !important;
    overscroll-behavior-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  /*
   * Remove the remaining mobile snap containers and fixed viewport heights.
   * Keep existing min-heights so each section retains its intended visual scale.
   */
  .section,
  .about-page,
  .services-page,
  .services-shell,
  .support-groups-section,
  .workshops-section,
  .life-coaching-section,
  .consultation-section,
  .transitional-section,
  .eligibility-section,
  .speaking-section,
  .speaking-request-section,
  .community-outreach-section,
  .programs-section,
  .program-interest-section,
  .event-screen,
  .bible-show-screen {
    height: auto !important;
    max-height: none !important;
    overflow-x: clip !important;
    overflow-y: visible !important;
    scroll-snap-align: none !important;
    scroll-snap-stop: normal !important;
    scroll-snap-type: none !important;
  }

  /*
   * The header remains visually solid without live blur repainting during
   * every finger movement.
   */
  .site-header,
  .site-header.scrolled {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  /*
   * Preserve the full vine look using four mobile layers (top, bottom, left,
   * right) instead of the previous five-layer field.
   */
  .soft-vine-layer {
    background-image:
      url("assets/luxury-vine-watermark-horizontal-v121.svg"),
      url("assets/luxury-vine-watermark-horizontal-v121.svg"),
      url("assets/luxury-vine-watermark-v120.svg"),
      url("assets/luxury-vine-watermark-v120.svg") !important;
    background-position:
      center top -30px,
      center bottom -36px,
      left -92px top 29%,
      right -92px top 68% !important;
    background-repeat: no-repeat !important;
    background-size:
      min(112vw, 760px) auto,
      min(112vw, 760px) auto,
      min(61vw, 285px) 43%,
      min(61vw, 285px) 43% !important;
    background-attachment: scroll !important;
    pointer-events: none !important;
    will-change: auto;
  }
}

@media (max-width: 700px) {
  .soft-vine-layer {
    background-position:
      center top -22px,
      center bottom -26px,
      left -96px top 31%,
      right -96px top 69% !important;
    background-size:
      132vw auto,
      132vw auto,
      min(72vw, 260px) 39%,
      min(72vw, 260px) 39% !important;
  }
}
