/*! Flickity v2.3.0
https://flickity.metafizzy.co
---------------------------------------------- */

.flickity-enabled {
  position: relative;
}

.flickity-enabled:focus {
  outline: none;
}

.flickity-viewport {
  overflow: hidden;
  position: relative;
  height: 100%;
}

.flickity-slider {
  position: absolute;
  width: 100%;
  height: 100%;
}

/* draggable */

.flickity-enabled.is-draggable {
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.flickity-enabled.is-draggable .flickity-viewport {
  cursor: move;
  cursor: -webkit-grab;
  cursor: grab;
}

.flickity-enabled.is-draggable .flickity-viewport.is-pointer-down {
  cursor: -webkit-grabbing;
  cursor: grabbing;
}

/* ---- flickity-button ---- */

.flickity-button {
  position: absolute;
  border: none;
  color: var(--primary);
}

.flickity-button:hover {
  cursor: pointer;
}

.flickity-button:focus {
  outline: none;
  /* box-shadow: 0 0 0 5px #19f; */
}

.flickity-button:active {
  opacity: 0.6;
}

.flickity-button:disabled {
  /* opacity: 0.2; */
  color: #8cb37b;
  cursor: auto;
  /* prevent disabled button from capturing pointer up event. #716 */
  pointer-events: none;
}

.flickity-button-icon {
  fill: currentColor;
}

/* ---- previous/next buttons ---- */

.flickity-prev-next-button {
  bottom: -80px;
  width: 44px;
  height: 44px;
  /* vertically center */
  transform: translateY(-50%);
}

.flickity-prev-next-button.previous {
  right: 54px;
  bottom: -81px;
}
.flickity-prev-next-button.next {
  right: 10px;
}
/* right to left */
.flickity-rtl .flickity-prev-next-button.previous {
  left: auto;
  right: 10px;
}
.flickity-rtl .flickity-prev-next-button.next {
  right: auto;
  left: 10px;
}

.flickity-prev-next-button .flickity-button-icon {
  /* width: 60%;
  height: 60%; */
}

/* ---- page dots ---- */

.flickity-page-dots {
  position: absolute;
  width: 100%;
  bottom: -32px;
  padding: 0;
  margin: 0;
  list-style: none;
  text-align: center;
  line-height: 1;
}

.flickity-rtl .flickity-page-dots {
  direction: rtl;
}

.flickity-page-dots .dot {
  display: inline-block;
  background: #8cb37b;
  /* opacity: 0.25; */
  cursor: pointer;
  height: 4px;
  width: 23%;
  /* margin: 0;
  border-radius: 0; */
}

.flickity-page-dots .dot.is-selected {
  opacity: 1;
  background-color: #198d00;
}

.index-banner-carousel:after {
  content: 'flickity';
  display: none; /* hide :after */
}

.carousel-cell {
  width: 75%;
  padding-left: 15px !important;
}

.index-recently-added-carousel .flickity-prev-next-button,
#archive-slider-wrapper .flickity-prev-next-button {
  display: none;
}

.index-recently-added-carousel .flickity-page-dots,
#archive-slider-wrapper .flickity-page-dots {
  width: 100%;
  bottom: -43px;
  left: 0;
}
#archive-slider-wrapper .flickity-page-dots {
  bottom: 1.5rem;
}

.index-recently-added-carousel .flickity-page-dots .dot {
  width: 11.4%;
}

@media (min-width: 992px) {
  /* disable Flickity for large devices */
  .index-banner-carousel:after {
    content: '';
  }
  .carousel-cell {
    margin-right: 0;
    padding-left: 8px !important;
  }
  .index-recently-added-carousel .flickity-prev-next-button,
  #archive-slider-wrapper .flickity-prev-next-button {
    display: block;
  }

  .index-recently-added-carousel .flickity-page-dots,
  #archive-slider-wrapper .flickity-page-dots {
    width: 20%;
    bottom: 32px;
    left: 28px;
  }
  #archive-slider-wrapper .flickity-page-dots {
    bottom: 38px;
  }

  .index-recently-added-carousel .flickity-page-dots .dot {
    width: 48%;
  }
}
