/* Layout and controls match the site's original banner gallery. */
.karsai-carousel {
  width: 100%;
  /* Focus on a control must not scroll the clipping container itself. */
  overflow: clip;
  -webkit-tap-highlight-color: transparent;
}

.karsai-carousel .swiper-slide img {
  display: block;
  width: 100%;
  height: auto;
}

.karsai-carousel-controls {
  margin-top: 10px;
  text-align: center;
}

.karsai-carousel-nav,
.karsai-carousel-dots {
  display: none;
}

.karsai-carousel.is-ready .karsai-carousel-nav,
.karsai-carousel.is-ready .karsai-carousel-dots {
  display: block;
}

.karsai-carousel-nav {
  position: absolute;
  z-index: 2;
  top: 43%;
  width: 100%;
  height: 52px;
}

.karsai-carousel-nav button {
  position: absolute;
  width: 64px;
  height: 52px;
  margin: 5px;
  padding: 0;
  border: 0;
  border-radius: 3px;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.5s;
}

.karsai-carousel-nav button:hover {
  background: rgba(0, 0, 0, 0.7);
}

.karsai-carousel-prev { left: 20px; }
.karsai-carousel-next { right: 20px; }

.karsai-carousel-dots {
  position: absolute;
  z-index: 2;
  bottom: 20px;
  width: 100%;
  text-align: center;
}

.karsai-carousel-dot {
  display: inline-block;
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.karsai-carousel-dot span {
  display: block;
  width: 10px;
  height: 10px;
  margin: 5px 7px;
  border-radius: 30px;
  background: #fff;
  transition: opacity 200ms ease;
}

.karsai-carousel-dot.active span,
.karsai-carousel-dot:hover span {
  border: 2px solid #fff;
  background: transparent;
}

.swiper .swiper-notification {
  position: absolute;
  z-index: -1000;
  top: 0;
  left: 0;
  opacity: 0;
  pointer-events: none;
}

@media screen and (max-width: 768px) {
  .karsai-carousel.is-ready .karsai-carousel-nav { display: none; }
}
