/*
 * Cross-device scroll fix (iOS Safari, older Android, DevTools emulators).
 * Use overflow-x: hidden — NOT clip (poor support on older mobile browsers).
 */
@media (max-width: 991.98px) {
  html {
    height: auto !important;
    min-height: 100%;
    overflow-x: hidden !important;
    overflow-y: scroll !important;
    -webkit-overflow-scrolling: touch;
  }

  body,
  body.site-body {
    display: block !important;
    height: auto !important;
    min-height: 100% !important;
    max-height: none !important;
    overflow-x: hidden !important;
    overflow-y: visible !important;
    position: static !important;
    width: 100% !important;
  }

  .page-main,
  .page-main > .container-fluid,
  .footer,
  section {
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    overflow: visible !important;
  }
}
