/* ==================================================
       RESET
    ================================================== */

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #fff;
  font-family: Helvetica, Arial, sans-serif;
}

/* ==================================================
       SWIPER
    ================================================== */

.swiper {
  width: 100%;
  height: 100dvh;
  background: #fff;
}

.swiper-wrapper {
  align-items: center;
}

.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: #fff;
}

/* ==================================================
       IMAGE
    ================================================== */

.swiper-slide img {
  display: block;

  width: auto;
  height: auto;

  max-width: 92vw;
  max-height: 82dvh;

  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

/* ==================================================
       CAPTION
    ================================================== */

.caption {
  position: absolute;
  bottom: 18px;
  left: 0;

  width: 100%;

  text-align: center;
  font-size: 0.9rem;
  color: #555;

  z-index: 20;

  padding-inline: 20px;
}

/* ==================================================
       PAGINATION
    ================================================== */

.swiper-pagination {
  top: 20px !important;
  bottom: auto !important;

  font-size: 0.9rem;
  color: #666;
}

/* ==================================================
   NAVIGATION
================================================== */

.swiper-button-next,
.swiper-button-prev {

  position: absolute;

  width: 52px;
  height: 52px;

  top: 50%;

  transform: translateY(-50%);

  background: transparent !important;

  z-index: 100;

  color: transparent !important;
}

/* --------------------------------------------------
ORIGINAL SWIPER ICONS KOMPLETT ENTFERNEN
-------------------------------------------------- */

.swiper-button-next::after,
.swiper-button-prev::after {

  display: none !important;

  opacity: 0 !important;

  visibility: hidden !important;

  content: none !important;

  font-size: 0 !important;

  width: 0 !important;
  height: 0 !important;
}

/* --------------------------------------------------
EIGENE PFEILE
-------------------------------------------------- */

.swiper-button-next::before,
.swiper-button-prev::before {

  content: "";

  position: absolute;

  top: 50%;
  left: 50%;

  width: 22px;
  height: 22px;

  border-top: 2px solid #555;
  border-right: 2px solid #555;
}

/* NEXT */

.swiper-button-next::before {

  transform:
    translate(-65%, -50%) rotate(45deg);
}

/* PREV */

.swiper-button-prev::before {

  transform:
    translate(-35%, -50%) rotate(-135deg);
}

/* ==================================================
       CLOSE BUTTON
    ================================================== */

.close-button {
  position: absolute;

  top: 18px;
  right: 18px;

  z-index: 200;

  width: 44px;
  height: 44px;

  border: none;
  background: transparent;

  cursor: pointer;
}

.close-button::before,
.close-button::after {
  content: "";

  position: absolute;

  top: 50%;
  left: 50%;

  width: 24px;
  height: 2px;

  background: #555;
}

.close-button::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.close-button::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* ==================================================
       MOBILE
    ================================================== */

@media (max-width: 768px) {

  .swiper-slide img {
    max-width: 94vw;
    max-height: 74dvh;
  }

  .swiper-button-next,
  .swiper-button-prev {
    width: 44px;
    height: 44px;
  }

  .caption {
    font-size: 0.82rem;
    bottom: 14px;
  }

}

/* ==================================================
       LANDSCAPE PHONES
    ================================================== */

@media (max-height: 500px) and (orientation: landscape) {

  .swiper-slide img {
    max-height: 68dvh;
  }

  .caption {
    bottom: 8px;
    font-size: 0.78rem;
  }

}