/* Container holds the images exactly on top of each other */
.slider-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  z-index: 1;
  transition: opacity 0.1s ease-in-out;
}

.hero1 {
  z-index: 2;
}

.inter {
  z-index: 5;
}

/* The incoming active slide gets a fancy horizontal shutter slice */
.slide.active {
  opacity: 1;
  z-index: 10;
  animation: fancySlice 1.5s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

/* Fancy Shutter Split Animation */
@keyframes fancySlice {
  0% {
    transform: translateY(-100%);
    clip-path: polygon(
      0% 0%, 0% 0%, 100% 0%, 100% 0
    );
  }
  50% {
    transform: translateY(0);
  }
  100% {
    clip-path: polygon(
      0% 0%, 0% 100%, 100% 100%, 100% 0%
    );
  }
}
