.cf-carousel {
  width: 100%;
}
.cf-carousel--container {
  position: relative;
}
.cf-carousel--window {
  width: calc(100% - 100px);
  height: 200px;
  position: relative;
  margin: 0 auto;
  overflow: hidden;
}
.cf-carousel--frames {
  height: 100%;
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
  top: 0;
  /* -100% offset to accomodate previous off-screen frames */
  left: -100%;
  transition-timing-function: ease;
}
.cf-carousel--frames.cf-carousel--scroll-previous {
  left: 0%;
}
.cf-carousel--frames.cf-carousel--scroll-next {
  left: -200%;
}
.cf-carousel--frames.cf-carousel--animate {
  transition-property: left;
  transition-timing-function: ease;
  /* Override the transiton-duration with javascript */
  transition-duration: 0s;
}
.cf-carousel--frame {
  height: 100%;
  flex-shrink: 0;
  flex-grow: 0;
  box-sizing: border-box;
  width:100%;
  padding: 0;
  box-sizing: border-box;
}

a.cf-carousel--thumbnail {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

a.cf-carousel--thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.cf-carousel--post-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.5), rgba(0,0,0,0.7), rgba(0,0,0,0.9), rgba(0,0,0,1));
  color: white;
  display: block;
  padding: 0.5em;
}
[data-direction="previous"], [data-direction="next"] {
  cursor: pointer;
  position: absolute;
  display: block;
  width: 30px;
  height: 30px;
  background: transparent;
  border: 0;
  top: 50%;
  left: 0;
}
[data-direction="next"] {
  left: calc(100% - 50px);
}
[data-direction="next"]::before,
[data-direction="previous"]::before {
  content: '\25C0';
  color: white;
  font-size: 2rem;
  top: 0;
  left: 0;
  position: absolute;
}
[data-direction="next"]::before {
  content: '\25BA';
}
:is([data-direction="previous"], [data-direction="next"]) span {
  display: none;
}
@media (min-width: 1080px) {
  [data-frame-count-lg="5"] .cf-carousel--frame {
    width: 20%;
  }
  [data-frame-count-lg="4"] .cf-carousel--frame {
    width: 25%;
  }
  [data-frame-count-lg="3"] .cf-carousel--frame {
    width: 33.333333%;
  }
  [data-frame-count-lg="2"] .cf-carousel--frame {
    width: 50%;
  }
}

@media (min-width: 600px) and (max-width: 1079px) {
  [data-frame-count-md="5"] .cf-carousel--frame {
    width: 20%;
  }
  [data-frame-count-md="4"] .cf-carousel--frame {
    width: 25%;
  }
  [data-frame-count-md="3"] .cf-carousel--frame {
    width: 33.333333%;
  }
  [data-frame-count-md="2"] .cf-carousel--frame {
    width: 50%;
  }
}
.cf-carousel--frame.f1 { background: green; }
.cf-carousel--frame.f2 { background: blue; }
.cf-carousel--frame.f3 { background: yellow; }
.cf-carousel--frame.f4 { background: orange; }
.cf-carousel--frame.f5 { background: white; }
.cf-carousel--frame.f6 { background: aqua; }
.cf-carousel--frame.f7 { background: red; }
.cf-carousel--frame.f8 { background: brown; }
.cf-carousel--frame.f9 { background: purple; }
.cf-carousel--frame.f10 { background: #339284; }
.cf-carousel--frame.f11 { background: #99D9BB; }
.cf-carousel--frame.f12 { background: #A200CC; }
