/* Overwrite Gutenberg Variables */
:root {
  --wp--style--global--content-size: 1400px;
}

/* Breakpoints */
/* Typography */
/* Color Palette */
/* Layout */
.epic-image-scroll-reveal {
  height: 250vh;
  width: 100%;
}
.epic-image-scroll-reveal .img-wrapper {
  align-items: center;
  display: flex;
  height: 100vh;
  justify-content: center;
  overflow: hidden;
  position: sticky;
  top: 0;
  width: 100%;
}
.epic-image-scroll-reveal .img-wrapper img {
  clip-path: inset(20% round 1rem);
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  transition: clip-path 0.1s linear;
  width: 100%;
}
@media only screen and (min-width: 768px) {
  .epic-image-scroll-reveal .img-wrapper img {
    clip-path: inset(15% round 1rem);
  }
}
.epic-image-scroll-reveal .img-wrapper .text-overlay {
  color: white;
  font-size: min(8vw, 5rem);
  left: 50%;
  line-height: 1;
  opacity: 1;
  pointer-events: none;
  position: absolute;
  text-align: center;
  top: 50%;
  transform: translate(-50%, -25%);
  transition: opacity 0.2s linear, transform 0.2s linear;
}
.epic-image-scroll-reveal .img-wrapper .text-overlay .secondary-text {
  opacity: 0;
  transition: opacity 0.2s linear;
}
.epic-image-scroll-reveal .img-wrapper .scroll-text {
  bottom: 2rem;
  left: 50%;
  opacity: 1;
  position: absolute;
  transform: translate(-50%, 0);
  transition: opacity 0.2s linear, transform 0.2s linear;
}
.epic-image-scroll-reveal .img-wrapper .scroll-text span {
  display: inline-block;
  opacity: 0;
  transform: translateY(-1rem);
  transition: opacity 0.1s linear, transform 0.1s linear;
}
.epic-image-scroll-reveal .img-wrapper .scroll-text span:nth-child(1) {
  animation: letterFadeIn 3s linear 0.1s infinite;
}
.epic-image-scroll-reveal .img-wrapper .scroll-text span:nth-child(2) {
  animation: letterFadeIn 3s linear 0.2s infinite;
}
.epic-image-scroll-reveal .img-wrapper .scroll-text span:nth-child(3) {
  animation: letterFadeIn 3s linear 0.3s infinite;
}
.epic-image-scroll-reveal .img-wrapper .scroll-text span:nth-child(4) {
  animation: letterFadeIn 3s linear 0.4s infinite;
}
.epic-image-scroll-reveal .img-wrapper .scroll-text span:nth-child(5) {
  animation: letterFadeIn 3s linear 0.5s infinite;
}
.epic-image-scroll-reveal .img-wrapper .scroll-text span:nth-child(6) {
  animation: letterFadeIn 3s linear 0.6s infinite;
}
.epic-image-scroll-reveal .img-wrapper .scroll-text span:nth-child(7) {
  animation: letterFadeIn 3s linear 0.7s infinite;
}
.epic-image-scroll-reveal .img-wrapper .scroll-text span:nth-child(8) {
  animation: letterFadeIn 3s linear 0.8s infinite;
}
.epic-image-scroll-reveal .img-wrapper .scroll-text span:nth-child(9) {
  animation: letterFadeIn 3s linear 0.9s infinite;
}
.epic-image-scroll-reveal .img-wrapper .scroll-text span:nth-child(10) {
  animation: letterFadeIn 3s linear 1s infinite;
}
.epic-image-scroll-reveal .img-wrapper .scroll-text span:nth-child(11) {
  animation: letterFadeIn 3s linear 1.1s infinite;
}
.epic-image-scroll-reveal .img-wrapper .scroll-text span:nth-child(12) {
  animation: letterFadeIn 3s linear 1.2s infinite;
}
.epic-image-scroll-reveal .img-wrapper .scroll-text span:nth-child(13) {
  animation: letterFadeIn 3s linear 1.3s infinite;
}
.epic-image-scroll-reveal .img-wrapper .scroll-text span:nth-child(14) {
  animation: letterFadeIn 3s linear 1.4s infinite;
}
.epic-image-scroll-reveal .img-wrapper .scroll-text span:nth-child(15) {
  animation: letterFadeIn 3s linear 1.5s infinite;
}
.epic-image-scroll-reveal .img-wrapper .scroll-text span:nth-child(16) {
  animation: letterFadeIn 3s linear 1.6s infinite;
}
.epic-image-scroll-reveal .img-wrapper .scroll-text span:nth-child(17) {
  animation: letterFadeIn 3s linear 1.7s infinite;
}
.epic-image-scroll-reveal .img-wrapper .scroll-text span:nth-child(18) {
  animation: letterFadeIn 3s linear 1.8s infinite;
}
.epic-image-scroll-reveal .img-wrapper .scroll-text span:nth-child(19) {
  animation: letterFadeIn 3s linear 1.9s infinite;
}
.epic-image-scroll-reveal .img-wrapper .scroll-text span:nth-child(20) {
  animation: letterFadeIn 3s linear 2s infinite;
}
.epic-image-scroll-reveal.scroll-start .text-overlay, .epic-image-scroll-reveal.scroll-complete .text-overlay {
  transform: translate(-50%, -50%);
}
.epic-image-scroll-reveal.scroll-start .text-overlay .secondary-text, .epic-image-scroll-reveal.scroll-complete .text-overlay .secondary-text {
  opacity: 1;
}
.epic-image-scroll-reveal.scroll-start .scroll-text, .epic-image-scroll-reveal.scroll-complete .scroll-text {
  opacity: 0;
  transform: translate(-50%, -2rem);
}
.epic-image-scroll-reveal.scroll-complete .text-overlay {
  opacity: 0;
  transform: translate(-50%, -75%);
}

@keyframes letterFadeIn {
  0% {
    opacity: 0;
    transform: translateY(-1rem);
  }
  10%, 60% {
    opacity: 1;
    transform: translateY(0);
  }
  70% {
    opacity: 0;
    transform: translateY(0);
  }
}