.overlap {
    margin: 3rem 0 0 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.overlap p[class^="text"] {
    width: 40%;
    background-color: white;
    padding: .5rem;
    border: 1px solid var(--neutral);
    border-left: 1rem solid var(--neutral);
    color: var(--neutral);
    box-shadow: 1px 1px 4px 3px rgba(0, 0, 0, .2);
}
.textLeft,
.textRight {
  margin-left: -80rem;  
}
p:has(img) {
    margin-left: 10rem;
}
.overlap img {
    display: block;
    width: 40%;
    height: auto;
    border: 1px solid var(--neutral);
}
@media only screen and (max-width: 1700px) {
  .overlap p[class^="text"] {
      width: 50%;
  }
}
@media only screen and (max-width: 1500px) {
  p:has(img) {
      margin-left: 5rem;
  }
  .overlap p[class^="text"] {
      width: 75%;
      margin-left: -30rem;
  }
}
@media only screen and (max-width: 1400px) {
  .overlap p[class^="text"] {
    width: 50%;
  }
}
@media only screen and (max-width: 1200px) {
  .overlap  p[class^="text"] {
    width: 56%;
  }
}
@media only screen and (max-width:1100px) {
    .overlap {
      display: table-row;
  }
  .overlap p {
    display: table-cell;
    vertical-align: middle;
    margin-bottom: 2rem;
    width: 50%;
  }
  .overlap img {
    width: 85%;
    margin: 0 auto 2rem auto;
  }
  .overlap p[class^="text"] {
    border: none;
    box-shadow: none;
  }
}
@media only screen and (max-width:890px) {
  .overlap {
    display: block;
  }
  .overlap img {
    margin-bottom: 0;
  }
  .overlap p,
  .overlap p[class^="text"] {
    display: block;
    margin-left: 0;
    width: 100%;
  }
}