/* Generic and strictly opt-in: untouched containers do not inherit these rules. */
.prk-fx-sticky-placeholder[hidden] { display: none !important; }
.prk-fx-sticky-active { box-sizing: border-box; }
/* Hidden reveal containers are removed from layout (no empty slot).
   Keep the actual container in DOM so Elementor retains its structure. */
[data-prk-fx-reveal="yes"]:not(.prk-fx-revealed):not([data-prk-fx-moving]) {
  display: none !important;
}
/* During exit, preserve its layout until the outgoing WAAPI animation ends. */
[data-prk-fx-reveal="yes"][data-prk-fx-moving="out"],
[data-prk-fx-reveal="yes"][data-prk-fx-moving="in"] { visibility: visible; }
/* Never make a container unselectable in the live Elementor designer. */
body.elementor-editor-active [data-prk-fx-reveal="yes"][data-prk-fx-editor-preview="no"] {
  display: var(--display, flex) !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}
@media (prefers-reduced-motion: reduce) {
  [data-prk-fx-reveal="yes"] { scroll-behavior: auto; }
}

/* Optional floating reveal: no vacant space in the original page flow.
   Not combined with Sticky, which deliberately reserves its original position. */
[data-prk-fx-reveal-layout="floating"] {
  position: fixed !important;
  top: var(--prk-fx-float-top, 90px);
  inset-inline: 0;
  margin-inline: auto;
  max-width: calc(100vw - 24px);
  z-index: 990;
}
body.elementor-editor-active [data-prk-fx-reveal-layout="floating"][data-prk-fx-editor-preview="no"] {
  position: relative !important;
  top: auto !important;
  inset-inline: auto !important;
  max-width: none;
}
/* Prevent scroll-anchor compensation when a floating sticky swaps its placeholder. */
.prk-fx-sticky-placeholder, [data-prk-fx-sticky="yes"] { overflow-anchor: none; }
