.fabula-image-with-text {
  background-color: #fbe1dd;

  .fabula-image-with-text__wrapper {
    margin: 0 auto;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 28px;
  }

  .fabula-image-with-text__media {
    width: 100%;
    height: 454px;
    max-width: calc(53% - 30px);
  }

  .fabula-image-with-text__media-image {
    display: block;
  }

  .fabula-image-with-text__media-image,
  .fabula-image-with-text__media > source {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
  }

  .fabula-image-with-text__container {
    padding: 32px;
    width: 100%;
    max-width: calc(47% - 30px);
  }

  .fabula-image-with-text__content {
    max-width: 540px;
    color: var(--color--title-color);
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;

    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    p {
      margin: 0;
      padding: 0;
    }

    h2 {
      font-family: var(--new-spirit-font);
      font-size: 34px;
      font-weight: 500;
    }

    p {
      font-family: var(--inter-font);
      font-size: 16px;
      font-weight: 500;
    }
  }

  .fabula-image-with-text__button {
    display: inline-block;
    width: 300px;
    padding: 14px 0;
    text-decoration: none;
    background-color: var(--color--accent-primary);
    border: 1px solid var(--color--accent-primary);
    font-size: 17px;
    font-weight: 700;
    font-family: var(--main-font--bold);
    text-align: center;
    text-transform: uppercase;
    border-radius: 8px;
    color: var(--color--simple-white);
    transition: background-color ease 0.3s, color ease 0.3s;
  }

  .fabula-image-with-text__button:hover {
    background-color: var(--color--simple-white);
    color: var(--color--accent-primary);
  }
}

@media screen and (max-width: 768px) {
  .fabula-image-with-text {
    .fabula-image-with-text__wrapper {
      flex-direction: column;
      gap: 40px;
      padding-bottom: 0;

      &.fabula-image-with-text--mobile-reversed {
        flex-direction: column-reverse;
      }
    }

    .fabula-image-with-text__media {
      width: 100%;
      height: 100%;
      max-width: initial;
    }

    .fabula-image-with-text__media-image {
      max-height: 450px;
    }

    .fabula-image-with-text__container {
      text-align: center;
      padding: 0 20px;
      padding-top: 30px;
      max-width: initial;
    }

    .fabula-image-with-text__content {
      margin-left: auto;
      margin-right: auto;

      h2 {
        font-size: 25px;
      }
    }

    .fabula-image-with-text__button {
      width: 260px;
      padding: 10px 0;
      font-size: 16px;
    }
  }
}
