.text-image-widget-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  margin-bottom: 0;
  margin-top: 0;
}

.text-image-widget {
  display: flex;
  align-items: start;
  max-width: 1400px;
  margin: 0 auto;
  gap: 20px;
}

.text-image-widget.align-left {
  flex-direction: row-reverse;
  /* Swap text and image for "right" alignment */
}

.text-image-widget .img-bg {
  width: 42%;
  max-width: 42%;
  height: 100%;
  position: absolute;
  z-index: 1;
  bottom: 0;
  /* max-height: 125%; */
  left: 0;
  right: auto;
  /* box-shadow: 0px 8px 12.3px 0px rgba(3, 46, 21, 0.19); */
  top: 0;
  object-fit: cover;
  background-position: center;
  background-size: cover;
}

.text-image-widget.align-right .img-bg {
  right: 0;
  left: auto;
}

.text-image-widget .text-content {
  flex: 1;
  max-width: 58%;
  position: relative;
  z-index: 6;
  padding-top: 180px;
  padding-bottom: 180px;
  padding-left: 0;
  padding-right: 0;
}

@media only screen and (max-width: 1560px) {
  .text-image-widget .text-content {
    flex: 1;
    max-width: 58%;
    position: relative;
    z-index: 6;
    padding-top: 150px;
    padding-bottom: 150px;
  }

  .text-image-widget .img-bg {
    max-width: 39%;
  }
}

@media only screen and (max-width: 960px) {
  .text-image-widget .img-bg {
    width: 100%;
    height: 410px;
    right: 0;
    left: 0;
    max-width: 100%;
    background-position: center;
  }

  .text-image-widget .text-content {
    padding-top: 460px;
    padding-bottom: 50px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .text-content p:last-child {
    margin-bottom: 0;
  }

  .text-image-widget-wrapper {
    margin-top: 0;
    margin-bottom: 0;
  }

  .text-image-widget {
    flex-direction: column;
  }

  .text-image-widget-wrapper::before {
    display: none;
  }

  .text-image-widget-wrapper .text-content {
    width: 100%;
    max-width: 100%;
  }
}

@media only screen and (max-width: 560px) {
  .text-image-widget .text-content {
    padding-top: 410px;
    padding-bottom: 60px;
  }

  .text-image-widget .img-bg {
    width: 100%;
    height: 350px;
    right: 0;
    left: 0;
    max-width: 100%;
    background-position: center;
  }
}
