/* stylelint-disable selector-class-pattern */

/*
Text block placed (in WPBakery) right after a group of single images.
JS moves it from below the viewport to above it while those images scroll by.
*/

.p-widget-scrolling-text {
  width: clamp(14rem, 30vw, 32rem);
  margin-inline: auto;
  text-align: center;
  color: var(--v-color-2);
  font-family: var(--v-font-family-alt1);
  font-weight: var(--v-font-weight-normal);
  font-size: clamp(1.4rem, 2.8vw, 3rem);
  line-height: 1.15;
  text-transform: uppercase;

  /* Soft layered shadow: crisp edge + diffuse halo, for contrast on light/busy images. */
  text-shadow:
    0 1px 2px rgb(0 0 0 / 25%),
    0 2px 10px rgb(0 0 0 / 30%),
    0 0 32px rgb(0 0 0 / 35%);
}

.p-widget-scrolling-text :is(h1, h2, h3, h4, h5, h6, p) {
  margin: 0;
  color: inherit;
  font-family: inherit;
  font-weight: inherit;
  font-size: inherit;
  line-height: inherit;
}

.p-widget-scrolling-text.is-ready {
  position: fixed;
  z-index: 200;
  top: 0;
  left: 50%;
  margin: 0;
  pointer-events: none;
  visibility: hidden;
  will-change: transform;
}

.p-widget-scrolling-text.is-ready.is-visible {
  visibility: visible;
}
