.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;
  &.bg-container {
    background-color: #faf6f1;
    border-radius: 60px;
    padding: 48px;
    margin: 48px auto;
  }
  &.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__window {
  position: absolute;
  background-color: #ffffff;
  border-radius: 15px;
  padding: 12px 12px;
  width: calc(100% - 48px);
  bottom: 24px;
  left: 24px;
  p {
    color: #8d6959;
    font-size: 13px;
    font-weight: 500;
    font-style: italic;
    margin-bottom: 0;
  }
}
.text-image__image {
  width: 41%;
  display: flex;
  position: relative;
  align-items: center;
  min-height: 465px;

  @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: 30px;
    @media (max-width: 768px) {
      position: relative;
      object-position: top;
      max-height: 400px;
    }
  }
}
.text-image__content {
  width: 53.2%;

  padding: 32px 0;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
&.nobg {
  width: 70.2%;
}
  @media (max-width: 768px) {
    width: 100%;
    padding: 24px 0px;
    padding-bottom: 0;
  }

  a.button {
    margin-top: 32px;
  }
  p {
    margin-bottom: 24px;
  }
}

.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(0.96);
}
.text-image.is-prep.right .text-image__image {
  transform: translateX(40px) scale(0.96);
}

.text-image.animate-in .text-image__image {
  animation: tiImageIn 0.8s cubic-bezier(0.22, 0.65, 0.25, 1) both;
}
.text-image.animate-in .text-image__content {
  animation: tiFadeUp 0.7s cubic-bezier(0.22, 0.65, 0.25, 1) 0.2s both;
}
.text-image.animate-in .text-image__cats .cat {
  animation: tiFadeUp 0.6s cubic-bezier(0.22, 0.65, 0.25, 1) both;
  animation-delay: calc(var(--i, 0) * 90ms + 0.35s);
}
.text-image.animate-in .text-image__content .button {
  animation: tiFadeUp 0.6s cubic-bezier(0.22, 0.65, 0.25, 1) 0.6s both;
}

@keyframes tiImageIn {
  0% {
    opacity: 0;
    transform: translateX(-40px) scale(0.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;
  }
}
