/* Homepage -> Slider */
.slider {
  position: relative;
  background-image: linear-gradient(to bottom, var(--border), rgba(255,255,255,1), rgba(255,255,255,1));
  width: 100%;
  height: 80vh;
  z-index: 20;
  overflow: hidden;
}

.slider-container {
  background-color: var(--light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 1rem;
  z-index: 20;
  overflow: hidden;
  -webkit-clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%);
  clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%);
}

.slider-container ul {
  padding: 0;
}

.morphist > * {
  display: none;
}

.morphist > .animated {
  display: inline-block;
  width: 100%;
  height: 80vh;
}

.slider-text {
  flex: 30%;
  z-index: 20;
  padding: 0 2rem;

}

.js-rotating-text > .animated {
  padding-top: 7rem;
}

.slider-image {
  flex: 70%;
  z-index: 20;
  -webkit-clip-path: polygon(0 0,100% 0,100% 100%,5% 100%);
  clip-path: polygon(0 0,100% 0,100% 100%,5% 100%);
}

.js-rotating-image > .animated {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.slider-text h1,
.slider-text h2,
.slider-text h3 {
  line-height: 1.2;
  text-align: left;
  margin-bottom: 1rem;
}

@media (max-width: 1300px) {
  .slider {
    height: unset;
  }
  .slider-container {
    height: 80vh;
    flex-direction: column;
    gap: unset;
    -webkit-clip-path: polygon(0 1%, 100% 0, 100% 99%, 0 100%);
    clip-path: polygon(0 1%, 100% 0, 100% 99%, 0 100%);
  }
  .slider-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    margin-top: 1rem;
  }
  .slider-text h1 {
    font-size: 1.8rem;
    text-align: center;
  }
  .slider-text h2 {
    font-size: 1.6rem;
    text-align: center;
  }
  .slider-text h3 {
    font-size: 1.4rem;
    text-align: center;
  }
  .slider-text .button-dark {
    padding: 0.6rem 1rem;
    border-radius: 6px;
  }
  .slider-image {
    height: unset !important;
    max-height: unset !important;
    width: 100%;
    -webkit-clip-path: polygon(0 4%, 100% 0, 100% 96%, 0 100%);
    clip-path: polygon(0 4%, 100% 0, 100% 100%, 0 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .morphist > .animated {
    height: 40vh;
  }
}

@media (min-width: 1171px) {
  h1 {
    font-size: 3rem;
  }
  h2 {
    font-size: 2.4rem;
  }
}
