.text-box-image-widget-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
}

.text-box-image-widget-holder {
  padding-bottom: 200px;
  padding-top: 200px;
}

.text-box-image-widget-holder.bg-left {
  background-image: url('right-bg.png');
  background-position: right;
  background-repeat: no-repeat;
  background-size: auto 100%;
}

.text-box-image-widget-holder.bg-right {
  background-image: url('left-bg.png');
  background-position: left;
  background-repeat: no-repeat;
  background-size: auto 100%;
}

.text-box-image-widget {
  display: flex;
  align-items: start;
  max-width: 1400px;
  width: 1310px;
  margin: 0 auto;
  gap: 20px;
}

.text-box-image-widget.align-left {
  flex-direction: row-reverse;
}

.text-box-image-widget .img-bg {
  width: 50%;
  max-width: 50%;
  height: 600px;
  position: absolute;
  z-index: 1;
  bottom: 0;
  left: 0;
  right: auto;
  top: 0;
  object-fit: cover;
  background-position: center;
  background-size: cover;
}

.text-box-image-widget.align-right .img-bg {
  right: 0;
  left: auto;
}

.text-box-image-widget .text-content {
  border-radius: 10px;
  background: #FFF;
  box-shadow: 0 0 7.5px 3px rgba(0, 0, 0, 0.10);
  padding: 95px 80px 95px 45px;
  flex: 1;
  max-width: 800px;
  position: relative;
  z-index: 6;
  margin-top: 75px;
  margin-bottom: 75px;
}

.text-box-image-widget .text-content p:last-child {
  margin-bottom: 0;
}

@media only screen and (max-width: 1400px) {
  .text-box-image-widget .text-content {
    width: 700px;
    padding: 70px 30px 70px 30px;
    margin-left: 25px;
    margin-right: 25px;
  }
}

@media only screen and (max-width: 960px) {
  .text-box-image-widget-wrapper {
    padding-left: 15px;
    padding-right: 15px;
  }

  .text-box-image-widget {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    background: #FFF;
    box-shadow: 0 0 7.5px 3px rgba(0, 0, 0, 0.10);
  }

  .text-box-image-widget-holder {
    padding-top: 70px;
    padding-bottom: 70px;
  }

  .text-box-image-widget .img-bg {
    position: relative;
    width: 100%;
    height: 410px;
    right: 0;
    left: 0;
    max-width: 100%;
    background-position: center;
  }

  .text-content p:last-child {
    margin-bottom: 0;
  }

  .text-box-image-widget-wrapper {
    margin-top: 0;
    margin-bottom: 0;
  }

  .text-box-image-widget {
    gap: 0;
    flex-direction: column;
  }

  .text-box-image-widget.align-left {
    flex-direction: column;
  }

  .text-box-image-widget-wrapper::before {
    display: none;
  }

  .text-box-image-widget-wrapper .text-content {
    width: 100%;
    max-width: 100%;
    padding: 35px 30px;
    margin: 0;
  }

  .text-box-image-widget-holder.bg-right,
  .text-box-image-widget-holder.bg-left {
    background-image: none;
  }
}

@media only screen and (max-width: 760px) {
  .text-box-image-widget .img-bg {
    height: 320px
  }
}

@media only screen and (max-width: 640px) {
  .text-box-image-widget .img-bg {
    height: 260px
  }
}
