.tp-image-with-text {
  width: 100%;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;

  .tp-wrapper {
    display: flex;
    flex-direction: column;
    gap: clamp(3.2rem, 2.0114rem + 3.0476vw, 6.4rem);

    @media screen and (min-width: 1024px) {
      flex-direction: row;
    }

    .tp-media {
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;

      @media screen and (max-width: 1023px) {
        margin-inline: calc(-1 * var(--page-gutter, 16px));
        width: calc(100% + 2 * var(--page-gutter, 16px));
      }

      @media screen and (min-width: 1024px) {
        width: 50%;
      }

      .tp-picture {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
      }

      img {
        width: 100%;
        height: auto;
        object-fit: contain;
      }

      .tp-picture--fallback {
        display: flex;
      }

      .tp-picture--fallback.tp-picture--hidden {
        display: none;
      }

      .tp-video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        z-index: 1;
      }

      .tp-video.tp-video--error {
        display: none !important;
      }

      .tp-video--error ~ .tp-picture--fallback {
        display: flex;
      }

      .tp-video--desktop {
        display: none;

        @media screen and (min-width: 750px) {
          display: block;
        }
      }

      .tp-video--mobile {
        display: block;

        @media screen and (min-width: 750px) {
          display: none;
        }
      }
    }

    .tp-text-wrapper {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: var(--tp-text-gap, 18px);
      width: 100%;
      justify-content: center;

      @media screen and (min-width: 1024px) {
        align-items: flex-start;
      }

      .tp-heading-group {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: var(--tp-heading-gap, 8px);

        @media screen and (min-width: 1024px) {
          align-items: flex-start;
        }

        .tp-title-section,
        .tp-title-section *,
        .tp-content-section,
        .tp-content-section * {
          text-align: center;

          @media screen and (min-width: 1024px) {
            text-align: left;
          }
        }
      }

      .tp-actions-group {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: var(--tp-text-gap, 18px);
        align-self: stretch;

        @media screen and (min-width: 1024px) {
          align-items: flex-start;
        }
      }

      @media screen and (min-width: 1024px) {
        width: 50%;
      }

      h2 {
        font-style: normal;
        line-height: 1.2;
      }

      p {
        line-height: 1.3;
        font-weight: 100;
        margin: 0;
      }


      .tp-items-list {
        display: flex;
        flex-direction: column;
        gap: var(--tp-items-gap, 8px);
        width: fit-content;
        align-items: flex-start;
      }

      .tp-item {
        display: flex;
        align-items: center;
        gap: 8px;
      }

      .tp-item__icon {
        width: 28px;
        height: 28px;
        flex-shrink: 0;
      }

      .tp-item__text {
        line-height: 1.4;
      }

      .tp-button-wrapper {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        margin-top: 2rem;
        align-self: stretch;

        @media screen and (min-width: 1024px) {
          justify-content: flex-start;
        }
      }

      .tp-button-icon {
        width: 48px;
        height: 48px;
        flex-shrink: 0;
        border-radius: 50%;
        transition: box-shadow 0.25s ease;

        &:hover {
          box-shadow: 0px 1px 3px #999;
        }
      }

      .tp-button {
        width: 100%;
        font-size: 1.6rem;
        font-weight: 800;
        line-height: normal;
        text-transform: uppercase;
        height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        max-width: 100%;
        text-decoration: none;
      }
    }
  }

  .tp-wrapper--image-right {
    @media screen and (min-width: 1024px) {
      flex-direction: row-reverse;
    }
  }

  .tp-wrapper--image-left {
    @media screen and (min-width: 1024px) {
      flex-direction: row;
    }
  }

  .tp-wrapper--image-up {
    @media screen and (max-width: 1023px) {
      flex-direction: column;
    }
  }

  .tp-wrapper--image-down {
    @media screen and (max-width: 1023px) {
      flex-direction: column-reverse;
    }
  }

  .tp-wrapper--no-padding-mobile {
    @media screen and (max-width: 1023px) {
      padding-inline: 0;
    }

    .tp-text-wrapper {
      @media screen and (max-width: 1023px) {
        padding-inline: 32px;
      }

      @media screen and (max-width: 767px) {
        padding-inline: 16px;
      }
    }
  }

  .tp-wrapper--no-padding-desktop {
    max-width: 100%;

    @media screen and (min-width: 768px) {
      padding-inline: 0px;
    }

    .tp-text-wrapper {
      @media screen and (min-width: 1024px) {
        padding-inline: 64px;
      }
    }
  }
}
