.two-col-parallax {
  display: flex;
  width: 100%;
  overflow: hidden;
  padding-inline: var(--inline-spacing);
  position: relative;

  & img {
    position: relative;
    z-index: 1;
  }

  &::after {
    content: "";
    width: 100%;
    height: 100px;
    position: absolute;
    bottom: 0;
    left: 0;
    background-color: var(--section-background);
    z-index: 0;
  }
}

.two-col-parallax .col {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.col-left img {
  width: 100%;
  display: block;
}

.col-right .parallax img {
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  will-change: transform;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .two-col-parallax {
    flex-direction: column;
    gap: 30px;
  }

  .col-right .parallax {
    height: 500px;
  }
}

@media (max-width: 576px) {
  .col-right .parallax {
    height: 300px;
  }
}
