.text-image {
  padding: 90px 24px;
}

.text-image--bg-light {
  background: #ffffff;
}

.text-image--bg-gray {
  background: #f5f6f7;
}

.text-image--bg-dark {
  background: #123f5c;
  color: #ffffff;
}

.text-image--bg-gold {
  background: #b98a3c;
  color: #ffffff;
}

.text-image__container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 72px;
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
}

.text-image__media {
  min-width: 0;
}

.text-image__media img {
  display: block;
  width: 100%;
  height: 560px;
  object-fit: cover;
  border-radius: 4px;
}

.text-image__content {
  max-width: 580px;
}

.text-image__title {
  margin: 0 0 28px;
  color: #123f5c;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(38px, 4vw, 56px);
  font-weight: 600;
  line-height: 1.05;
}

.text-image--bg-dark .text-image__title,
.text-image--bg-gold .text-image__title {
  color: #ffffff;
}

.text-image__text {
  color: #4d5860;
  font-family: "DM Sans", sans-serif;
  font-size: 17px;
  line-height: 1.8;
}

.text-image--bg-dark .text-image__text,
.text-image--bg-gold .text-image__text {
  color: rgba(255, 255, 255, 0.9);
}

.text-image__text p {
  margin: 0 0 20px;
}

.text-image__text p:last-child {
  margin-bottom: 0;
}

.text-image__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin-top: 30px;
  padding: 12px 30px;
  border-radius: 999px;
  background: #b98a3c;
  color: #ffffff;
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease;
}

.text-image__button:hover {
  background: #a6782f;
  color: #ffffff;
  transform: translateY(-2px);
}

.text-image--image-right .text-image__media {
  order: 2;
}

.text-image--image-right .text-image__content {
  order: 1;
}

@media (max-width: 900px) {
  .text-image {
    padding: 64px 20px;
  }

  .text-image__container {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .text-image__media,
  .text-image__content,
  .text-image--image-right .text-image__media,
  .text-image--image-right .text-image__content {
    order: initial;
  }

  .text-image__content {
    max-width: none;
  }

  .text-image__media img {
    height: min(480px, 70vw);
  }
}

@media (max-width: 600px) {
  .text-image {
    padding: 48px 16px;
  }

  .text-image__title {
    margin-bottom: 20px;
    font-size: 38px;
  }

  .text-image__text {
    font-size: 16px;
    line-height: 1.7;
  }

  .text-image__media img {
    height: 320px;
  }
}
.text-image__button-wrapper {
  margin-top: 32px;
}

.text-image__button-wrapper a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 30px;
  border-radius: 999px;
  background: #b98a3c;
  color: #fff;
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease;
}

.text-image__button-wrapper a:hover,
.text-image__button-wrapper a:focus {
  background: #a6782f;
  color: #fff;
  transform: translateY(-2px);
}