/* Fixes on top of Webflow's stylesheet. Loaded after it on every page (see src/layouts/Base.astro).
   Webflow's CSS stays untouched in /assets so it can be compared with the old site. */

/* Mobile: nothing may make the page scroll sideways (the live Webflow site was 1456px wide on a 375px phone) */
html, body { overflow-x: clip; }

@media (max-width: 767px) {
  /* Home page "projects" tabs were a fixed 1440px wide */
  .tabs-content.w-tab-content { width: 100%; max-width: 100%; min-width: 0; margin-right: 0; }
  .tabs-content .tab-pane, .tabs-content .collection-list-wrapper, .tabs-content .collection-item,
  .tabs-content .tab-item-wrap { width: 100%; max-width: 100%; }
}

/* Comfortable tap targets for menu links and buttons on touch screens */
@media (pointer: coarse) {
  .w-nav-link, .w-nav-menu a, .w-button { min-height: 44px; display: inline-flex; align-items: center; }
  .w-nav-menu .w-nav-link { display: flex; }
}

/* Respect "reduce motion": stop the moving logo strips and Webflow scroll animations */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
