.text-img-link .spacing {
  padding-top: 0;
  padding-bottom: 0;
}
.text-img-link .image-wrapper {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  position: relative;
}

@media (min-width: 960px) and (prefers-reduced-motion: no-preference) {
  .text-img-link .image-wrapper canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 1;
  }

  .text-img-link .image-wrapper .no-animation-background {
    display: none;
  }
}

@media (prefers-reduced-motion) {
  .text-img-link .image-wrapper .no-animation-background {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-repeat: no-repeat;
    background-size: auto 100%;
  }

  .text-img-link .image-wrapper canvas {
    display: none !important;
  }
}

.text-img-link {
  position: relative;
  background-color: var(--gray-10);
}

.text-img-link .card-wrapper {
  z-index: 2;
}

.text-img-link .card-wrapper .bg-wrapper {
  z-index: 2;
  width: 100%;
  height: auto;
}
.text-img-link .card-wrapper .text-wrapper {
  z-index: 3;
  background-color: var(--background);
  width: 100%;
  height: 100%;
}

.text-img-link .text-wrapper .link {
  float: right;
  margin-top: 40px;
  margin-bottom: 32px;
}

.text-img-link .card-wrapper .text-wrapper .preheader {
  margin-top: 0;
}

/* S */
@media (max-width: 479px) {
  /* 4 columns */
  .text-img-link .card-wrapper {
    grid-column: 1 / 5;
    grid-row: 2 / 2;
    background-image: none !important;
  }

  .text-img-link .image-wrapper {
    grid-column: 1 / 5;
    grid-row: 1 / 1;
    height: 50vh;
    margin-left: -40px;
    margin-right: 20px;
  }

  .text-img-link .card-wrapper .text-wrapper {
    padding: 32px 24px;
    margin-bottom: -40px;
    transform: translateY(-80px);
  }
}

@media (max-width: 960px) {
  .text-img-link .image-wrapper .no-animation-background {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-repeat: no-repeat;
    background-size: 2947px 1163px;
  }

  .text-img-link .image-wrapper canvas {
    display: none !important;
  }
}

/* M */
@media (min-width: 480px) and (max-width: 960px) {
  /* 8 columns */
  .text-img-link .card-wrapper {
    grid-column: 1 / 9;
    grid-row: 2 / 2;
    background-image: none !important;
  }

  .text-img-link .image-wrapper {
    grid-column: 1 / 9;
    grid-row: 1 / 1;
    height: 400px;
    margin-left: -40px;
    margin-right: 20px;
  }

  .text-img-link .card-wrapper .text-wrapper {
    padding: 32px 24px;
    margin-bottom: -40px;
    transform: translateY(-80px);
  }
}

/* L - XL */
@media (min-width: 960px) {
  /* 12 columns */

  .text-img-link .card-wrapper {
    margin: 160px 0;
  }

  .text-img-link .card-wrapper .text-wrapper {
    padding: 32px;
    transition: transform 0.3s;
  }

  .text-img-link .image-wrapper {
    width: 100%;
    height: 100%;
    z-index: 1;
  }

  .text-img-link .card-wrapper .text-wrapper p,
  .text-img-link .card-wrapper .text-wrapper h2 {
    margin: 16px 0;
  }

  .text-img-link .card-wrapper .text-wrapper:hover {
    transition: transform 0.3s;
    transform: translate(-10px, -10px);
  }

  /* Left */
  .text-img-link.left .card-wrapper {
    grid-area: 1 / 2 / 1 / 7;
  }

  .text-img-link.left .image-wrapper {
    grid-area: 1 / 6 / 1 / 13;
    width: calc(100% + 40px);
    height: 100%;
  }

  /* Right */
  .text-img-link.right .card-wrapper {
    grid-area: 1 / 7 / 1 / 12;
  }

  .text-img-link.right .image-wrapper {
    grid-area: 1 / 1 / 1 / 9;
    width: calc(100% + 40px);
    height: 100%;
    transform: translateX(-40px);
    background-repeat: no-repeat;
    background-size: cover;
  }
}
