.text-image__container {
  display: flex;
  justify-content: space-between;
  padding: 48px 100px;
  z-index: 1;
  max-width: 1192px;
  margin: 0 auto;
  position: relative;
  z-index: 3;
  gap:64px;
  &.left {
    flex-direction: row-reverse;
    @media (max-width: 768px) {
      flex-direction: column;
    }
  }
  @media (max-width: 1400px) {
    padding: 48px 50px;
  }
  @media (max-width: 1000px) {
    padding: 32px 16px;
  }
  @media (max-width: 768px) {
    flex-direction: column;
    gap:0;
  }
}

.text-image__items {
  display: flex;
  flex-direction: column;
  margin-top: 24px;
}
.text-image__item {
  display: flex;
  align-items: center;
  margin-bottom: 32px;
  .text-image__item-icon {
    border: 1px dashed #e4dbd5;
    width: 96px;
    height: 96px;
    min-width: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 16px;
    @media (max-width: 1000px) {
      width: 60px;
      height: 60px;
      min-width: 60px;
    }
    img {
      width: 64px;
      object-fit: contain;
      @media (max-width: 1000px) {
        width: 48px;
      }
    }
  }
  .descript {
    p {
      margin-bottom: 0;
    }
  }
}
.text-image__cats {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 8px;
  gap:8px;
  .cat {
    border-radius: 4px;
    color:#ffffffbf;
    padding: 4px 6px;
    font-weight: 500;
    font-size: 11px;
    background-color: #3B3645;
    text-decoration: none;
  }
}
.text-image__image {
  width: 53%;
  display: flex;
  position: relative;
  align-items: center;
  min-height: 600px;

  @media (max-width: 768px) {
    width: 100%;
    height: auto;
    min-height: 0;
    
  }
  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    left: 0;
    border-radius: 8px;
    @media (max-width: 768px) {
      position: relative;
      object-position: top;
      max-height: 600px;
    }
  }
}
.text-image__content {
  width: 47%;
  padding: 32px 0;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  @media (max-width: 768px) {
    width: 100%;
    padding: 24px 0px;
    padding-bottom: 0;
  }

  .text-image__buttons {
    display: flex;
    gap: 16px;
    margin-top: 24px;
    @media (max-width: 768px) {
      flex-direction: column;
    }
    a.button {
      margin-top: 0;
    }
  }
  &.light {
    h1,h2,h3,h4,h5,h6 {
      color: white;
      margin-bottom: 8px;
    }
    p, ul li {
      color:#ffffffbf;
    }
    span.subheader {
      color: rgba(255, 255, 255, 0.5);
      svg {
        path {
          fill: rgba(255, 255, 255, 0.5);
        }
      }
    }
  }
}

.text-image.is-prep .text-image__image,
.text-image.is-prep .text-image__content,
.text-image.is-prep .text-image__cats .cat,
.text-image.is-prep .text-image__content .button {
  opacity: 0;
  transform: translateY(30px);
}

.text-image.is-prep.left .text-image__image { transform: translateX(-40px) scale(.96); }
.text-image.is-prep.right .text-image__image { transform: translateX(40px) scale(.96); }

.text-image.animate-in .text-image__image {
  animation: tiImageIn .8s cubic-bezier(.22,.65,.25,1) both;
}
.text-image.animate-in .text-image__content {
  animation: tiFadeUp .7s cubic-bezier(.22,.65,.25,1) .2s both;
}
.text-image.animate-in .text-image__cats .cat {
  animation: tiFadeUp .6s cubic-bezier(.22,.65,.25,1) both;
  animation-delay: calc(var(--i,0) * 90ms + .35s);
}
.text-image.animate-in .text-image__content .button {
  animation: tiFadeUp .6s cubic-bezier(.22,.65,.25,1) .6s both;
}

@keyframes tiImageIn {
  0% { opacity:0; transform:translateX(-40px) scale(.96); filter:blur(4px); }
  100%{ opacity:1; transform:translateX(0) scale(1); filter:blur(0); }
}
@keyframes tiFadeUp {
  from { opacity:0; transform:translateY(30px); filter:blur(4px); }
  to   { opacity:1; transform:translateY(0);   filter:blur(0); }
}

@media (prefers-reduced-motion: reduce) {
  .text-image.animate-in .text-image__image,
  .text-image.animate-in .text-image__content,
  .text-image.animate-in .text-image__cats .cat,
  .text-image.animate-in .text-image__content .button {
    animation:none !important; opacity:1 !important; transform:none !important; filter:none !important;
  }
}
