/*!
 * antonios-smooth.css  —  v1.2  (2026-11-20)
 * Goes with antonios-smooth.js. Linked in <head>.
 */

/* text stays the right size on rotate; no grey flash or 300ms delay on tap */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
* { -webkit-tap-highlight-color: transparent; }
a, button, [role=button], .btn, label, input, select, textarea { touch-action: manipulation; }

/* CSS smooth-scroll fights the script — the script owns smooth scrolling */
html, body { scroll-behavior: auto !important; }

/* Sideways scrolling on phones (and the white strip behind the scrollbar):
   two <div class="row"> blocks (the line + the photo gallery) sit directly inside
   <div class="main"> with no .container, so they stick out 12px on the right. */
.main > .row { margin-left: 0; margin-right: 0; }
.main > .row > .col { padding-left: 0; padding-right: 0; }
/* safety net: nothing can ever make the page scroll sideways
   (clip, unlike hidden, doesn't break the sticky header) */
body { overflow-x: clip; }

/* Lenis (desktop smooth wheel) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-scrolling iframe { pointer-events: none; }

/* Phones & tablets: "fixed" backgrounds stutter on Android and are broken on
   iPhone/iPad (huge zoomed image). Scroll them with the page instead. */
.ag-touch .section-parallax,
.ag-touch .scrollable-parallax-wrapper,
.ag-touch [data-plugin-parallax] { background-attachment: scroll !important; }

/* GPU layers only where things actually move */
.parallax-background { will-change: transform; }
#header .header-body { backface-visibility: hidden; }

/* All fade-in animations and parallax run on every device (phones & tablets included).
   They are switched on for small screens in js/custom.js (minWindowWidth: 0, enableOnMobile). */

/* Reduced motion (OS setting): show everything, no movement */
@media (prefers-reduced-motion: reduce) {
  .appear-animation { animation: none !important; opacity: 1 !important; transform: none !important; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
