.element-carousel__header {
  text-align: center;
  padding-top: 4rem;
  padding-bottom: 2rem;
}

.element-carousel__title {
  font-size: 2.25rem;
  line-height: 1.25;
  margin: 0 0 2rem;
}

.element-carousel__container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  position: relative;
  margin: 2rem auto;
}

.element-carousel__frame {
  position: relative;
  font-size: 0;
  line-height: 0;
  overflow: hidden;
  white-space: nowrap;
  margin: 0 auto;
  width: 800px;
}

.element-carousel__slides {
  display: inline-block;
  margin: 0;
  padding: 0;
}

.element-carousel__slide {
  position: relative;
  display: inline-block;
  margin: 0;
  padding: 0;
  width: 800px;
  max-width: 100%;
}

.element-carousel__slide-container {
  position: relative;
  height: 100%;
}

/* Title & captions */

.element-carousel__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem 2rem;
  background-color: rgba(0,0,0,0.35);
  white-space: normal;
}

.element-carousel__title {
  font-weight: bold;
}

.element-carousel__caption {
  max-width: 30em;
}

/* Media */

.element-carousel__image-container,
.youtube-embed__container {
  position: relative;
  width: 100%;
  height: 100%;
}

.element-carousel__image-container > img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: block;
}

/* Dots */

.element-carousel__dots {}

.element-carousel__dots li {
  display: inline-block;
  cursor: pointer;
  margin: 0 5px;
  border: 1px solid black;
  border-radius: 5px;
  height: 10px;
  width: 10px;
  margin: 0 5px;
  cursor: pointer;
}

.element-carousel__dots li.active {
  background-color: black;
}

/* Arrows */

.element-carousel__prev,
.element-carousel__next {
  position: absolute;
  display: block;
  cursor: pointer;
}

.element-carousel__next {
  right: 0;
}

.element-carousel__prev {
  left: 0;
}

.element-carousel__next svg,
.element-carousel__prev svg {
  width: 25px;
}
