.directive-slideshow {
  margin-bottom: 8px;
  position: relative;
}

.directive-slideshow .slideshow {
  position: relative;
  margin: auto;
  overflow: hidden;
  margin-bottom: 8px;
  border-radius: 8px;
}

.directive-slideshow .slideshow .image-container {
  height: inherit;
  display: none;
}

.directive-slideshow .slideshow .image-container.active {
  display: block;
}

.directive-slideshow .slideshow figure.normal img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

.directive-slideshow .slideshow figure.normal {
  margin: 0;
  overflow: hidden;
  position: relative;
  height: inherit;
}

.directive-slideshow .slideshow figure.normal figcaption {
  position: absolute;
  padding: 8px;
  background-color: rgba(120, 120, 120, 0.2);
  color: white;
  bottom: 0px;
  left: 0px;
  right: 0px;
  text-align: center;
  max-width: 100%;
}

.directive-slideshow .dots-container {
  text-align: center;
}

.directive-slideshow .dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.directive-slideshow .dot:hover,
.directive-slideshow .active {
  background-color: #717171;
}

.directive-slideshow .dot.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

.directive-slideshow .fade figure.normal img {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {
    opacity: 0.4;
  }

  to {
    opacity: 1;
  }
}

/* Next & previous buttons */
.directive-slideshow .prev,
.directive-slideshow .next {
  cursor: pointer;
  position: absolute;
  background-color: rgba(120, 120, 120, 0.2);
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

/* Position the "next button" to the right */
.directive-slideshow .next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.directive-slideshow .prev:hover,
.directive-slideshow .next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}
