/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.1
 Text Domain:  bricks
*/

/* Bricksforge TL[0] animiert von 0→1 — Container von Anfang an unsichtbar (kein Flash vor GSAP-Init) */
#needle-container {
  opacity: 0;
}

/* Sticky 3D layer must not capture touches — scroll goes to document */
#valve-container {
  pointer-events: none;
}

/* Scrollytelling: page scroll passes through the canvas (in-scroll phase). */
needle-engine,
needle-engine canvas {
  pointer-events: none;
  touch-action: pan-y !important;
}

/* Desktop only: Orbit drag on canvas before scroll zone (edbyto_ScrollTimelineOrbit). */
@media (hover: hover) and (pointer: fine) {
  html.nautec-scroll-pre needle-engine,
  html.nautec-scroll-pre needle-engine canvas {
    pointer-events: auto !important;
    touch-action: pan-y !important;
  }

  html.nautec-scroll-pre #valve-container {
    z-index: 11;
  }
}

/* Let pointer events reach the canvas in the free viewport area beside text. */
html.nautec-scroll-pre .station-container {
  pointer-events: none;
}

html.nautec-scroll-pre .station-content {
  pointer-events: auto;
}
