.homegrade-blocks-timeline {
  @apply max-w-screen-xl mx-auto pt-12 pb-16;
  .section_titling {
    @apply mb-9;
  }
  &__container {
    @apply relative;
  }
  &__lateral-cover {
    @apply hidden lg:block;

    img {
      @apply rounded-3xl mb-3;
    }
    .description,
    .caption {
      @apply m-0 p-0;
    }
    .caption {
      @apply font-semibold text-primary text-sm;
    }

    &--squared {
      img {
        @apply h-auto
        object-cover object-center;
        aspect-ratio: 1/1;
      }
    }
    &--md {
      img {
        @apply w-full
        object-cover object-center;
        max-height: 450px;
      }
    }
    &--illustration {
      img {
        @apply w-full;
        max-height: 450px;
      }
    }
  }

  &--has-lateral-cover {
    .homegrade-blocks-timeline__container {
      @apply grid grid-cols-3 gap-12;
    }
    .homegrade-blocks-timeline__innercontent {
      @apply col-span-3 lg:col-span-2;
    }
    .homegrade-blocks-timeline-step {
      @apply !block;
    }
  }
  &--has-step-icons {
    .homegrade-blocks-timeline__container {
      &:before {
        @apply rounded-3xl bg-secondary
        opacity-10
        absolute;
        height: calc(100% + 40px);
        top: -20px;
        z-index: -1;
        content: '';
        width: 26px;
        left: 24px;
        @screen md {
          width: 28px;
          left: 38px;
        }
        @screen lg {
          width: 34px;
          left: calc(33% + 54px);
        }
      }
    }
  }
  &--has-no-step-pictures {
  }

  .homegrade-blocks-timeline-step {
    @apply grid grid-cols-2 lg:grid-cols-3 gap-12 py-7;
    ul {
      list-style: none;
    }
    &__innercontent {
      @apply -mt-12;
    }
    &__cover {
      @apply hidden lg:block max-w-md h-auto;
      border-radius: 22px;
      img {
        @apply rounded-3xl mb-3;
      }
      .description,
      .caption {
        @apply m-0 p-0;
      }
      .caption {
        @apply font-semibold text-primary text-sm;
      }
    }
    &__icon {
      @apply w-16 h-16 md:w-24 md:h-24 shrink-0 bg-white shadowed p-4 rounded-3xl flex justify-center items-center;

      img {
        @apply mx-auto object-contain;
        max-width: 80%;
        max-height: 80%;
      }
    }
    &__text-content {
      @apply pt-2;
    }
    &__content {
      @apply col-span-2 flex gap-8;
      &--has-step-icon {
        &:before {
          content: '';
          height: 100%;
          width: 2px;
          background: red;
        }
      }
      ul,
      ol {
        @apply !mt-3 mb-1 pl-4;
        li {
          @apply py-1;
        }
      }
    }

    &__title {
      @apply text-secondary font-bold text-xl m-0 leading-none;
    }
    &__subtitle {
      @apply text-neutral-900 font-bold text-2xl;
    }
  }

  .section_titling__title:first-child {
    @apply mt-0;
  }
}

.section_titling + .homegrade-blocks-timeline {
  @apply mt-12;
}
