/* Text fills on scroll as you go down the page. */

/* Scoped to prevent clashing with your WP Theme */
.wp-custom-hero-fill {
  /* Theme variables for background and text colors */
  --bg-color: #ffffff;
  --text-active: #000000;
  --text-muted: #eeeeee;
  background: var(--bg-color);
  padding: 60px 0;
}

.fill-text {
  margin: 0;
  text-wrap: pretty;
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  font-size: 22px;
}

.fill-text > span {
  display: inline;
  /* Create a text gradient that can shift on scroll */
  background-image: linear-gradient(
    to right,
    var(--text-active) 50%,
    var(--text-muted) 50%
  );
  background-size: 200% 100%; /* The gradient is twice as wide as the text */
  background-position: 100% 0; /* Start with the muted side showing */
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: none !important;
}

.headline-serif {
  font-family: "Lora", serif;
  font-size: 32px;
  display: block;
  color: #000;
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  .headline-serif {
    font-size: 26px;
    padding-bottom: 10px;
  }
  .fill-text > span {
    font-size: 17px;
  }
  .wp-custom-hero-fill {
    padding: 15px 0 15px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fill-text > span {
    background-size: 200% 200%;
    color: var(--text-active);
  }
}
