@charset "UTF-8";

*,
*:before,
*:after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #fff;
  color: #000;
}

body {
  font-family: "Jost", Futura, "Avenir Next", "Century Gothic", Arial, sans-serif;
  font-size: 10px;
  line-height: 1.12;
  font-weight: 400;
  letter-spacing: 0.10em;
}

a {
  color: inherit;
  text-decoration: none;
}

.project-page {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  overflow: hidden;
  background: #fff;
}

/* Header / UI */
.go-back {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 50;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.project-title {
  position: fixed;
  top: 16px;
  left: 160px;
  z-index: 50;
  max-width: 420px;
}

.project-title h1 {
  margin: 0;
  font-size: 10px;
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.project-title p {
  margin: 0;
}

.counter {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 50;
}

/* Horizontal infinite scroll base */
.slideshow {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pinch-zoom;
  background: #fff;
}

.slideshow.is-jumping {
  scroll-snap-type: none;
  scroll-behavior: auto;
}

.slideshow::-webkit-scrollbar {
  display: none;
}

.slides-track {
  display: flex;
  height: 100%;
}

.slide {
  flex: 0 0 100vw;
  width: 100vw;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: #fff;
  overflow: hidden;
  scroll-snap-align: center;
  scroll-snap-stop: always;
}

.slide img {
  display: block;
  width: 100%;
  height: 90%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

/* Click zones for desktop */
.nav-zone {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 50vw;
  z-index: 20;
  cursor: pointer;
}

.nav-prev {
  left: 0;
}

.nav-next {
  right: 0;
}

/* Caption */
.caption {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 50;
  max-width: 520px;
}

.caption p {
  margin: 0;
}

/* Touch devices */
@media (hover: none), (pointer: coarse) {
  .nav-zone {
    display: none;
  }
}

/* Smartphone */
@media (max-width: 767px) {
  .go-back {
    top: 16px;
    left: 14px;
  }

  .project-title {
    position: fixed;
    top: 16px;
    left: 72px;
    right: 56px;
    z-index: 50;
    max-width: none;
  }

  .counter {
    top: 16px;
    right: 14px;
  }

  .slideshow {
    width: 100vw;
    height: 100dvh;
    touch-action: pan-x pinch-zoom;
  }

  .slide {
    flex: 0 0 100vw;
    width: 100vw;
    height: 100dvh;
    padding: 0;
  }

  .slide img {
    width: 100%;
    height: 95%;
    max-width: none;
    max-height: none;
    object-fit: contain;
  }

  .caption {
    left: 14px;
    bottom: 14px;
    max-width: calc(100vw - 28px);
  }
}