/* Content Slider */
.content-slider {
  padding: 70px 0;
}

.content-slider__header {
  text-align: center;
  margin-bottom: 40px;
}

.content-slider__header * {
  color: inherit;
}

/* The header is a wysiwyg, so every heading level has to style the same. */
.content-slider__header > * {
  max-width: 690px;
  margin-left: auto;
  margin-right: auto;
}

.content-slider__header > *:last-child {
  margin-bottom: 0;
}

.content-slider__track .slick-list {
  padding-bottom: 30px;
}

/* slick measures this element to size the slides, so it has to keep block
   layout until init. Clipping the stack hides the flash without changing the
   width slick reads. */
.content-slider__track:not(.slick-initialized) {
  max-height: 560px;
  overflow: hidden;
}

/* slick sets a height on the track, not on the slides, so the cards need to
   stretch themselves to match. */
.content-slider__track .slick-track {
  display: flex;
}

.content-slider__track .slick-slide {
  height: auto;
}

.content-slider__slide {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0 15px;
  background-color: #ffffff;
  box-shadow: 3px 5px 10px 0 rgba(35, 32, 32, 0.35);
}

/* object-fit needs a box with a real height, and the padding holds one open at
   a fixed ratio (height / width, so 80% is 5:4). Without it the image falls
   back to its natural size and swallows the rest of the card. */
.content-slider__img {
  position: relative;
  flex: 0 0 auto;
  padding-top: 80%;
  overflow: hidden;
}

.content-slider__img img {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.content-slider__body {
  flex: 1 1 auto;
  padding: 25px 25px 0;
}

.content-slider__title {
  margin-bottom: 10px;
}

.content-slider__text p:last-of-type {
  margin-bottom: 0;
}

.content-slider__link {
  padding: 20px 25px 25px;
}

/* Arrows match the testimonials slider in ydop.css. They sit 40px outside the
   track, in the padding the container below gives them. */
.content-slider__track {
  position: relative;
}

.content-slider .container {
  padding: 0 40px;
}

.content-slider .slick-arrow {
  height: 40px;
  width: 40px;
  background-color: #484d61;
  border-radius: 0;
}

.content-slider .slick-arrow:hover,
.content-slider .slick-arrow:focus {
  background-color: #484d61;
}

.content-slider .slick-next {
  right: -40px;
}

.content-slider .slick-prev {
  left: -40px;
}

.content-slider .slick-next:before,
.content-slider .slick-prev:before {
  font-family: "icomoon" !important;
  speak: never;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 14px;
}

.content-slider .slick-next:before {
  content: "\e922";
}

.content-slider .slick-prev:before {
  content: "\e921";
}

.content-slider .slick-dots {
  bottom: -35px;
}

/* Editor preview, where slick isn't available. */
.content-slider--preview .content-slider__track {
  display: flex;
  max-height: none;
  overflow-x: auto;
}

.content-slider--preview .content-slider__slide {
  flex: 0 0 30%;
  min-width: 0;
}

.content-slider__placeholder {
  text-align: center;
  color: #767676;
}

@media (max-width: 1200px) {
  .content-slider {
    padding: 50px 0;
  }
}

@media (max-width: 550px) {
  .content-slider .container {
    padding: 0 10px;
  }
}
