.carousel-item {
  min-height: 400px;
}

.carousel-indicators {
  width: auto;
}

@media screen and (min-width: 769px) {
  .carousel .bg-video video {
    width: 100%;
    height: auto;
    position: absolute;
    left: 50%; /* % of surrounding element */
    top: 50%;
    transform: translate(-50%, -50%); /* % of current element */
    z-index: -1;
  }
}

@media screen and (max-width: 768px) {
  .bg-video video {
    height: auto;
    position: absolute;
    margin-left: -50% !important;
    margin-right: -50% !important;
    width: 200%;
    z-index: -1;
  }
}

.carousel-inner {
  position: relative;
  padding: 2em 0 1.5em;
  background: #000;
}

.carousel-item.active {
  display: block;
}

.slide-content {
  padding: 0 1em;
}

.carousel .carousel-image img {
  max-width: 350px;
  height: auto;
}

.carousel-text {
  text-align: center;
  color: #fff;
  font-family: "Open Sans";
}

.carousel-text h3 {
  font-size: 45px;
  font-weight: 300;
  margin: 1em 0;
}

.carousel-link a {
  font-size: 20px;
  padding: 10px 20px;
  color: #fff;
  border: 1px solid #fff;
  -moz-border-radius: 6px;
  -webkit-border-radius: 6px;
  border-radius: 6px;
  font-weight: 200;
  text-decoration: none;
}

@media screen and (max-width: 768px) {
  .slide-content {
    display: block !important;
  }
  .carousel-text h3 {
    font-size: 26px;
  }
  .carousel-link a {
    font-size: 16px;
    padding: 6px 14px;
    color: #fff;
    border: 1px solid #fff;
    -moz-border-radius: 6px;
    -webkit-border-radius: 6px;
    border-radius: 6px;
    font-weight: 200;
    text-decoration: none;
  }
  #slide2 .carousel-item-right {
    display: none;
  }
  .quickfade {
    display: block;
    margin: 0 auto;
    min-height: 400px;
  }
  .carousel-item-left,
  .carousel-item-top {
    padding-bottom: 2em;
  }
  .carousel .carousel-image {
    display: block;
    margin: 0 auto;
  }
  .carousel .carousel-image img {
    margin: 0 auto;
  }
}

@media screen and (min-width: 769px) {
  .carousel-item-top {
    display: none;
  }
}

.carousel-link a:hover {
  text-decoration: underline;
}

.carousel-item-left,
.carousel-item-right {
  opacity: 0;
}

.quickfade {
  width: 100%;
  max-width: 350px;
}

.quickfade .rangeImage {
  position: relative;
}

.rangeImage img {
  position: absolute;
  top: 0;
  left: 0;
}

.fade-out-image {
  opacity: 1;
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
  from {
    transform: translate3d(-50px, 0, 0);
  }
  to {
    transform: translate3d(0, 0, 0);
  }
}

@-webkit-keyframes fadeInLeft {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
  from {
    transform: translate3d(-50px, 0, 0);
  }
  to {
    transform: translate3d(0, 0, 0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
  from {
    transform: translate3d(50px, 0, 0);
  }
  to {
    transform: translate3d(0, 0, 0);
  }
}

@-webkit-keyframes fadeInRight {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
  from {
    transform: translate3d(50px, 0, 0);
  }
  to {
    transform: translate3d(0, 0, 0);
  }
}

@keyframes imageFade {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@-webkit-keyframes imageFade {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.carousel-inner .active .carousel-item-left {
  -webkit-animation: fadeInLeft 1s;
  animation: fadeInLeft 1s;
  opacity: 1;
}

.carousel-inner .active .carousel-item-right {
  -webkit-animation: fadeInRight 1s;
  animation: fadeInRight 1s;
  opacity: 1;
}

#quickfade3.fade-out-image {
  -webkit-animation: imageFade 3s;
  animation-name: imageFade;
  animation-duration: 3s;
  animation-delay: 0s;
  animation-iteration-count: infinite;
}

#quickfade2.fade-out-image {
  -webkit-animation: imageFade 3s;
  animation-name: imageFade;
  animation-duration: 3s;
  animation-delay: 1s;
  animation-iteration-count: infinite;
}

#quickfade1.fade-out-image {
  -webkit-animation: imageFade 3s;
  animation-name: imageFade;
  animation-duration: 3s;
  animation-delay: 2s;
  animation-iteration-count: infinite;
}
