/* --- iOS SNAP-SCROLL FIX --- */

/* Ensure body takes full height */
body.page-feed {
  height: 100vh;
  overflow-y: scroll;
  overscroll-behavior-y: contain;
}

/* Feed container must NOT exceed viewport */
body.page-feed .feed-container {
  height: 100vh !important;
  min-height: 100vh !important;
  scroll-snap-type: y mandatory;
}

/* Each post aligns exactly to the viewport top */
body.page-feed article.post {
  scroll-snap-align: start;
  scroll-snap-stop: always;
  height: 100vh;
  min-height: 100vh;
}

/* Fix iPhone Safari header offset bug */
@supports (-webkit-touch-callout: none) {
  body.page-feed {
    position: fixed;
    inset: 0;
  }
}
