/*#region Comparison*/

.gallery {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  justify-content: space-between;
  width: 100%;
  padding: 0;
}
.gallery li {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
  cursor: pointer;
  margin-bottom: 30px;
}
.gallery li .img {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  transition: width 400ms, left 400ms, right 400ms;
}
.gallery li .img__bg {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  background-size: cover;
  background-position: center;
  transition: left 400ms, right 400ms, transform 400ms;
}
.gallery li .img--before, .gallery li .img--after {
  width: 60%;
  transform: skewX(-15deg);
}
.gallery li .img--before > *, .gallery li .img--after > * {
  transform: skewX(15deg);
}
.gallery li .img--before {
  right: 48%;
}
.gallery li .img--before .img__bg {
  left: 15%;
}
.gallery li .img--after {
  left: 48%;
}
.gallery li .img--after .img__bg {
  right: 15%;
}
.gallery li .img.focus {
  width: 80%;
}
.gallery li .img.focus .img__bg {
  transform: skewX(15deg) scale(1.1);
}
.gallery li .img.focus.img--single {
  width: 100%;
}
.gallery li .img.focus.img--single .img__bg {
  transform: scale(1.3);
}
.gallery li .img.focus.img--before {
  right: 30%;
}
.gallery li .img.focus.img--before .img__bg {
  left: 12%;
}
.gallery li .img.focus.img--after {
  left: 30%;
}
.gallery li .img.focus.img--after .img__bg {
  right: 12%;
}
.gallery li .img.unfocus {
  width: 50%;
}
.gallery li .img.unfocus.img--before {
  right: 70%;
}
.gallery li .img.unfocus.img--before .img__bg {
  left: 20%;
}
.gallery li .img.unfocus.img--after {
  left: 70%;
}
.gallery li .img.unfocus.img--after .img__bg {
  right: 20%;
}
.gallery li .content {
  position: absolute;
  color: #f2771a ;
  z-index: 10;
  text-transform: uppercase;
  font-family: "Open Sans";
  text-shadow: 1px 1px 1px #000;
  font-size: 28px;
  font-weight: bold;
  pointer-events: none;
}
.gallery li .content--before {
  top: 15px;
  left: 18px;
}
.gallery li .content--after {
  bottom: 15px;
  right: 18px;
}

@media screen and (max-width: 1010px) {
  .gallery {
    width: auto;
  }
  .gallery li .img--before .img__bg {
    left: 4vw;
  }
  .gallery li .img--after .img__bg {
    right: 4vw;
  }
  .gallery li .img.focus .img__bg {
    transform: skewX(7deg) scale(1);
  }

  .gallery li .img.focus.img--before {
    right: 15%;
  }
  .gallery li .img.focus.img--after {
    left: 15%;
  }
  .gallery li .img.unfocus.img--before {
    right: 84%;
  }
  .gallery li .img.unfocus.img--after {
    left: 84%;
  }
  .gallery li .img.focus {
    width: 100%;
  }

  .gallery li .content{
    font-size: 20px;
  }

  .gallery li .img--before, .gallery li .img--after {
    width: 64%;
  }
}
@media screen and (max-width: 950px) {
  .gallery li .img--before, .gallery li .img--after {
    transform: skewX(-7deg);
  }
  .gallery li .img--before > *, .gallery li .img--after > * {
    transform: skewX(7deg);
  }
  .gallery li .img--before .img__bg {
    left: 15%;
  }
  .gallery li .img--after .img__bg {
    right: 15%;
  }
}
@media screen and (max-width: 650px) {
  .gallery li {
    width: 100%;
  }
}

@media screen and (max-height: 600px) {
  .gallery li {
    position: relative;
    width: 100%;
    height: 90vh;
    overflow: hidden;
    cursor: pointer;
    margin-bottom: 30px;
  }
}

/*#endregion */

/* Original code/inspiration: Copyright (c) 2022 by Travis Taylor (https://codepen.io/tjt/pen/NzZxGo) */