.translate-left {
  transform: translateX(-500px);
}
.translate-right {
  transform: translateX(500px);
}

section.testimonials {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
section.testimonials .slider {
  display: flex;
  align-items: center;
  justify-content: center;
}

section.testimonials #quotes {
  min-height: 40vh;
  display: flex;
  justify-content: center;
  align-items: center;
  -webkit-align-items: center;
  -webkit-justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}
section.testimonials #quotes::before {
  content: "“";
  position: absolute;
  top: -1rem;
  left: 1rem;
  font-size: 10rem;
  color: hsla(174, 11%, 42%, 0.2);
}

section.testimonials figure {
  margin: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  transition: transform 0.25s ease-in-out;
}
section.testimonials figure.active {
  display: flex;
}
section.testimonials blockquote {
  position: relative;
  width: fit-content;
  max-width: 700px;
  font-style: italic;
  font-size: 1.2rem;
  margin: 0.4rem;
  color: var(--colour-grey-darker);
}

@media (min-width: 768px) {
  section.testimonials #quotes {
    min-height: 50vh;
  }
  section.testimonials blockquote {
    font-size: 1.6rem;
  }
}

section.testimonials figcaption {
  font-size: 1rem;
}

section.testimonials button {
  background-color: transparent;
  border: none;
  padding: 0;
  margin: 0;
  font-size: 3.2rem;
  color: var(--colour-grey-dark);
  transition: all 0.2s ease-in-out;
}

section.testimonials button:hover,
section.testimonials button:focus {
  color: var(--colour-grey-darker);
}

section.testimonials button:focus {
  outline: 2px solid var(--colour-info);
}

section.testimonials #markers {
  width: 50%;
  font-size: 1rem;
  display: flex;
  justify-content: space-evenly;
  -webkit-justify-content: space-evenly;
}

section.testimonials #markers button {
  font-size: 1rem;
  padding: 0.4rem;
  border-radius: 60px;
  line-height: 0;
  vertical-align: middle;
}

section.testimonials #markers button.active {
  color: var(--colour-info);
}

@media only screen and (max-device-width: 768px) {
  section.testimonials .direction-button {
    display: none;
  }
}
