.text-img-boxes {
  grid-template-rows: var(--s-xl) auto 1fr auto var(--s-xl);
  align-items: flex-start;
}

.text-img-boxes-headline {
  grid-column: 3 / span 5;
  grid-row: 2 / span 1;
  color: var(--white);
  margin-top: 0;
  margin-bottom: 0.75em;
}

.text-img-boxes-description {
  grid-column: 3 / span 5;
  grid-row: 3 / span 1;
  color: var(--white);
}

.text-img-boxes-img-wrapper {
  grid-column: 9 / span 4;
  grid-row: 2 / span 2;
  display: flex;
  z-index: 1;
}

.text-img-boxes-img-wrapper img {
  width: 100%;
  height: auto;
}

.text-img-boxes-boxes-list {
  grid-column: 3 / span 10;
  grid-row: 4 / span 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap);
  margin-top: var(--s-md);
}

.text-img-boxes-boxes-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.5em 1em;
}

.text-img-boxes-boxes-item-btn {
  margin-top: auto;
}

.text-img-boxes::before {
  content: "";
  grid-column: 1 / span 10;
  background-color: var(--blue);
  grid-row: 1 / span 5;
  align-self: stretch;
}

.text-img-boxes-boxes-item-description:not(:last-child) {
  margin-bottom: 1em;
}

.text-img-boxes-boxes-item-description {
  margin-top: 1em;
}

.text-img-boxes-boxes-item-headline {
  margin: 0;
}

@media (max-width: 1199.98px) {
  .text-img-boxes-headline,
  .text-img-boxes-description {
    grid-column: 2 / span 6;
  }

  .text-img-boxes-img-wrapper {
    grid-column: 9 / span 5;
    width: calc(100% - var(--grid-gap));
  }

  .text-img-boxes-boxes-list {
    grid-column: 2 / span 12;
  }
}

@media (max-width: 991.98px) {
.text-img-boxes {
  grid-template-rows: var(--s-xl) auto 1fr auto auto var(--s-xl);
}

  .text-img-boxes-headline {
    grid-column: 2 / span 12;
  }

  .text-img-boxes-description {
    grid-column: 2 / span 12;
  }

  .text-img-boxes-img-wrapper {
    grid-column: 3 / span 10;
    grid-row: 5 / span 1;
    width: 100%;
    margin-top: var(--s-lg);
  }

  .text-img-boxes::before {
    grid-column: 1 / span 14;
    grid-row: 1 / span 6;
  }
}

@media (max-width: 767.98px) {
    .text-img-boxes-boxes-list {
    grid-template-columns: 1fr;
  }
}