/**
 * @file
 * Provided basic navigation for the Splide based on custom settings.
 */

.splide-wrapper {
  width: 100%;
}

/* Over the .splide--main, over .slide.is-active. */
.splide--nav {
  z-index: 5;
}

.splide--nav .slide {
  height: inherit;
}

.splide--main .slide__caption {
  min-height: 32%;
  padding: 20px 0;
}

.splide--nav .slide__caption {
  padding: 5px 6px;
}

/**
 * Complex layout needs custom refinement for mobile, hence it is reasonable
 * to apply for Desktop up. Adjust mobile version accordingly.
 */
@media (min-width: 64em) {
  /* Fixed FireFox draggable issue, avoid asNavFor thumbnails. */
  .splide--main .splide__slide img {
    pointer-events: none;
  }

  .splide--nav .slide__caption {
    padding: 5px 6px;
  }

  /** Thumbnail position */
  /* Fixed for problematic float, requires optionset with Height: auto. */
  .splide--nav.is-vertical {
    position: absolute;
    width: 20%;
    /* Fixed for vertical arrows out of visible navigation. */
    height: 100%;
    max-height: 100%;
  }

  .is-wrapper-nav--left .splide--nav {
    left: 0;
  }

  .is-wrapper-nav--left .splide--main {
    margin-left: 20%;
  }

  .is-wrapper-nav--over-left > .splide--main > .splide__slider {
    padding-left: 20%;
  }

  .is-wrapper-nav--right .splide--nav {
    right: 0;
  }

  .is-wrapper-nav--right .splide--main {
    margin-right: 20%;
  }

  .is-wrapper-nav--over-right > .splide--main > .splide__slider {
    padding-right: 20%;
  }

  .is-wrapper-nav--overlay .splide--main {
    margin-right: auto;
    margin-left: auto;
  }

  .is-wrapper-nav--overlay .splide--nav {
    position: absolute;
    top: 0;
    overflow: hidden;
    min-height: 72px;
    /* max-height: 90%; */
  }

  .is-wrapper-nav--over-top .splide--nav {
    width: 100%;
    height: auto;
    max-height: none;
  }

  div[class*="is-wrapper-nav"] .splide__slider::after {
    clear: none;
  }
}
