.caption {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  flex-direction: column;
  padding-left: 0;
  z-index: 9;
  /* transform: translateY(-50%); */
  opacity: 0;
  transition: 500ms ease opacity, 500ms ease transform;
  /* transform: translateY(60px); */
}

.caption.current-caption {
  transition-delay: 1000ms;
  opacity: 1;
  transform: translateY(0);
}

.caption.previous-caption {
  /* transform: translateY(-60px); */
}

.caption .caption-heading {
  transition: 500ms ease-in all;
}

.caption .caption-heading h1 {
  font-size: 6vw;
  text-transform: uppercase;
  /* text-indent: -0.2rem; */
  letter-spacing: .2rem;
  font-weight: 600;
  margin: 0;
  text-align: center;
  margin-bottom: 0;
  color: var(--white-color);
  /* display: none; */
  text-transform: uppercase;
  text-shadow: 0 0 20px rgb(0, 0, 0);
}

.caption .caption-subhead {
  font-size: 20px;
  font-weight: 400;
  text-transform: inherit;
  color: white;
  letter-spacing: 1px;
  word-spacing: .1rem;
  margin-bottom: 0;
  display: block;
  line-height: normal;
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.63);
}

.caption a.btn {
  color: #333;
  font-size: 0.8rem;
  text-decoration: none;
  background-color: white;
  padding: .5rem 1rem;
  text-transform: uppercase;
  letter-spacing: .2rem;
  position: relative;
  z-index: 9;
  transition: 250ms ease-in background-color, 500ms ease-in color;
}

.caption a.btn:hover {
  background-color: black;
  color: white;
}

.container {
  width: 100%;
  height: 100vh;
  background-color: #2C302E;
  display: flex;
  position: relative;
  justify-content: center;
  align-items: center;
  max-width: none !important;
}

.left-col, .right-col {
  width: 100%;
  box-sizing: border-box;
  height: 100%;
  overflow: hidden;
}

.left-col {
  background-size: cover;
  background-postion: center top;
  overflow: hidden;
  /* margin: 2rem; */
  position: relative;
}

.left-col .slide {
  filter: grayscale(0%);
  position: absolute;
  width: 100%;
  height: 100%;
  background-position: center !important;
  background-size: cover !important;
  background-repeat: no-repeat;
  opacity: 0;
  transition: 1000ms cubic-bezier(1, 0.04, 0.355, 1) transform, 1000ms cubic-bezier(0.68, -0.55, 0.265, 1.55) clip-path;
  transform: translateY(-100%);
  scale: 1;
  z-index: -1;
}

.left-col .slide.previous {
  z-index: 1;
  opacity: 1;
  transform: translateY(0);
  animation-delay: 1s;
  clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
  transition: 3s ease transform;
  will-change: transform;
}

.left-col .slide.previous.change {
  /* transform: translateY(50%); */
}

.left-col .slide.next {
  transform: translateY(-100%);
  z-index: 3;
  opacity: 1;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
}

.left-col .slide.current {
  opacity: 1;
  transform: translateY(0) scale(1);
  z-index: 2;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
}

.right-col {
  display: flex;
  align-items: center;
  justify-content: center;
}

.right-col .preview {
  max-width: 400px;
}

.nav {
  display: block;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100px;
  height: 67px;
  z-index: 99;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  display: none;
}

.nav a {
  color: #fafafa;
  font-size: 3rem;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
}

.nav:hover .slide-up, .nav:hover .slide-down {
  opacity: .5;
  transform: translateX(0);
}

.nav .slide-up, .nav .slide-down {
  display: none;
  /* position: absolute; */
  text-align: center;
  width: 40px;
  padding: 0;
  opacity: 1;
  transition: .25s ease opacity, .25s ease transform;
  z-index: 999;
}

.nav .slide-up:hover, .nav .slide-down:hover {
  opacity: 1;
}

.nav .slide-up a, .nav .slide-down a {
  text-decoration: none;
  font-weight: 300 !important;
  font-size: 25px;
}

.nav .slide-up {
  top: 0;
  left: 0;
  transform: none;
}

.nav .slide-down {
  top: 0%;
  right: 0;
  transform: none;
}

@media all and (max-width:768px) {
  #container {
    height: 50vh;
  }

  .caption {
    padding: 10px;
    padding-left: 20px;
    justify-content: flex-end;
  }

  .caption .caption-heading h1 {
    font-size: 29px;
  }
}

@media all and (max-width:600px) {
  .caption .caption-heading h1 {
    font-size: 23px;
    font-weight: 700;
    letter-spacing: 0.4px;
  }

  .caption .caption-subhead {
    font-size: 18px;
  }
}
