/* Keep the animated image inside the hero. */
.living-background {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* Animate only the decorative image layer. */
.living-background > .living-background__image {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  transform-origin: center;
  animation: living-background-zoom 10s ease-in-out infinite alternate;
  animation-play-state: paused;
}

/* Preserve Kadence's overlay above the photograph. */
.living-background > .kt-row-layout-overlay {
  z-index: 1;
}

/* Keep headings, text and buttons above the background. */
.living-background > .kt-row-column-wrap {
  position: relative;
  z-index: 2;
}

.living-background--visible > .living-background__image {
  animation-play-state: running;
}

@keyframes living-background-zoom {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.15);
  }
}

@media (max-width: 767px) {
  @keyframes living-background-zoom {
    from {
      transform: scale(1);
    }

    to {
      transform: scale(1.10);
    }
  }
}