.startAnimation {
  .section-text-media {
    .content-wrapper {
      animation: floatUp 0.5s cubic-bezier(0.54, 0.1, 0, 0.99) forwards;
      animation-delay: 200ms;
    }
  
    .image-wrapper {
      animation: floatRight 0.5s cubic-bezier(0.54, 0.1, 0, 0.99) forwards;
    }
  }
}

.section-text-media {
  .image-wrapper {
    position: relative;
    height: 100%; 
    min-height: 400px;
    background: var(--beige-200);
    border-radius: 20px;
    width: 100%;
    opacity: 0;

    @media (max-width: 991px) {
      min-height: 217px;
    }

    &.contained-image {
      padding: 25px 0;

      img {
        &:first-child {
          height: calc(100% - 50px);
          min-height: unset;
        }
      }
    }

    img {
      &:first-child {
        position: absolute;
        height: 100%;
        min-height: 400px;

        @media (max-width: 991px) {
          min-height: 217px;
        }
      }
    }
  }

  &.template-image-background {
    position: relative;
    padding: 100px 0;

    @media (max-width: 991px) {
      padding: 0;
    }

    .container {
      position: relative;
      margin-top: 0 !important;
      margin-bottom: 0 !important;

      .content-wrapper {        
        p, h2 {
          color: var(--white);

          @media (max-width: 991px) {
            color: var(--grey-950);
          }
        }

        .hexagon-bg {
          position: absolute;
          top: -16vh;
          bottom: -100px;
          left: -20vw;
          height: 800px;
          width: 1500px;
          opacity: .1;
          max-height: unset;
          object-fit: contain;

          @media (max-width: 991px) {
            display: none;
          }
        }
      }
    }
  }

  .image-order {
    position: relative;
    
    @media (max-width: 991px) {
       order: -1;
    }
  }

  .image-background {
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    border-radius: 0;

    @media (max-width: 991px) {
      position: relative;
    }
  }
  
  img {
    width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: cover;
    border-radius: 20px;

    @media (max-width: 991px) {
      height: 300px;
    }
  }

  .cta {
    min-width: 200px;
  }

  .row {
    div {
      &:last-child {
        .image-wrapper {
          .hexagon-bottom {
            position: absolute;
            top: 201%;
            left: 30px;
            z-index: 1;
            width: 80px;
            height: 80px;
            object-fit: contain;

            @media (max-width: 991px) {
              display: none;
            }
          }
        }
        .content-wrapper {
          padding-left: 90px;

          @media (max-width: 991px) {
            padding-left: 0;
          }
        }
      }
      &:first-child {
        .image-wrapper {
          .hexagon-bottom {
            position: absolute;
            top: 201%;
            left: 82%;
            z-index: 1;
            width: 80px;
            height: 80px;
            object-fit: contain;

            @media (max-width: 991px) {
              display: none;
            }
          }
        }
        .content-wrapper {
          padding-right: 90px;

          @media (max-width: 991px) {
            padding-right: 0;
          }
        }
      }
    }

    .content-wrapper {
      opacity: 0; 
      
      @media (max-width: 991px) {
        padding-top: 30px;
      }
      
      h2 {
        font-size: 37px;
        font-weight: 700;
        line-height: 1;
        color: var(--brown-500);

        @media (max-width: 991px) {
          padding-bottom: 20px;
          font-size: 28px !important;
        }
      }

      p {
        font-family: var(--font-text);
        opacity: 0.7;
      }
    }
  }
}