.mono-label {
  font-family: var(--font-mono);
  font-size: .8rem;
  line-height: 1.25;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* Overview */
#overview {
  display: none;
  position: relative;
  min-height: 100vh;
  padding: 140px 25px 50px;
  box-sizing: border-box;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 42px 20px;
}

.overview-item {
  display: block;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.overview-image {
  display: block;
  width: 100%;
  aspect-ratio: .815 / 1;
  overflow: hidden;
  background: #ececec;
}

.overview-image img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
}

.overview-title {
  display: block;
  margin-top: 9px;
}

/* Open gallery */
.gallery-slideshow {
  position: fixed;
  inset: 0;
  z-index: 150;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  background: #fff;
  transition: opacity .3s ease, visibility 0s linear .3s;
}

.gallery-slideshow.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition-delay: 0s;
}

.slideshow-open,
.slideshow-open body {
  overflow: hidden;
}

.gallery-swiper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.gallery-swiper .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 50px 25px;
}

.gallery-swiper .swiper-slide img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain;
}

.gallery-swiper img.swiper-lazy {
  visibility: hidden;
}

.gallery-swiper img.swiper-lazy.swiper-lazy-loaded {
  visibility: visible;
}

.gallery-swiper .swiper-lazy-preloader {
  width: auto;
  height: auto;
  margin: 0;
  color: #7f7f7f;
  font-family: var(--font-mono);
  font-size: .8rem;
  line-height: 1.25;
  letter-spacing: .04em;
  text-transform: uppercase;
  mix-blend-mode: normal;
  transform: translate(-50%, -50%);
}

.gallery-swiper .swiper-lazy-preloader::after {
  content: 'LOADING';
  width: auto;
  height: auto;
  background: none;
}

.gallery-swiper .swiper-button-next,
.gallery-swiper .swiper-button-prev {
  top: 0 !important;
  height: 100% !important;
}

.gallery-swiper .swiper-button-next::after {
  display: none;
}

.gallery-caption,
.gallery-counter {
  position: absolute;
  z-index: 2;
  bottom: 19px;
  margin: 0;
  max-width: 66%;
}

.gallery-caption {
  left: 25px;
}

.gallery-counter {
  right: 25px;
  letter-spacing: -1px;
}

#gallery-slideshow .gallery-caption,
#gallery-slideshow .gallery-counter {
  color: #fff;
  font-size: 11pt;
  mix-blend-mode: difference;
}

.slideshow-open header nav a {
  font-size: 11pt;
}

#gallery-slideshow .gallery-current-number {
  font-family: var(--font-hand);
  font-size: 1.5em;
  color: #a3a3a3;
}

/* Initial cover state */
body.home-intro {
  overflow: hidden;
}

body.overview-mode #overview {
  display: block;
}

body.overview-mode #home-cover {
  display: none;
}

body.home-intro header {
  transform: none;
  transition: none;
}

body.home-intro header #logo-title {
  position: fixed;
  top: 50%;
  left: 50%;
  margin: 0;
  transform: translate(-50%, -50%);
}

body.home-intro header nav {
  display: none;
}

.cover-swiper {
  cursor: pointer;
}

.cover-swiper .swiper-button-prev,
.cover-swiper .swiper-button-next,
.cover-swiper .swiper-pagination {
  display: none !important;
}

.cover-swiper .swiper-lazy-preloader {
  display: none !important;
}

/* Difference cursor */
@media (hover: hover) and (pointer: fine) {
  .overview-item:hover {
    opacity: .6;
  }

  .gallery-swiper .swiper-button-next,
  .gallery-swiper .swiper-button-prev {
    cursor: none !important;
  }

  .slider-mix-cursor {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2000;
    display: none;
    width: 32px;
    height: 32px;
    pointer-events: none;
    background: #fff;
    mix-blend-mode: difference;
    transform: translate(-50%, -50%);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: 32px 32px;
    mask-size: 32px 32px;
  }

  .slider-mix-cursor.is-visible {
    display: block;
  }

  .slider-mix-cursor.is-prev {
    -webkit-mask-image: url('../img/cursor_left.svg');
    mask-image: url('../img/cursor_left.svg');
  }

  .slider-mix-cursor.is-next {
    -webkit-mask-image: url('../img/cursor_right.svg');
    mask-image: url('../img/cursor_right.svg');
  }
}

@media only screen and (max-width: 1400px) {
  .overview-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media only screen and (max-width: 1050px) {
  .overview-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media only screen and (max-width: 630px) {
  .slideshow-open header nav a,
  #gallery-slideshow .gallery-caption,
  #gallery-slideshow .gallery-counter {
    font-size: 10pt;
  }

  #overview {
    padding: 110px 12px 30px;
  }

  .overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 10px;
  }

  .mono-label {
    font-size: .68rem;
  }

  .gallery-swiper .swiper-lazy-preloader {
    font-size: .68rem;
  }

  .overview-title {
    margin-top: 7px;
  }

  .gallery-swiper .swiper-slide {
    padding: 50px 13px;
  }

  .gallery-caption {
    left: 12px;
    bottom: 16px;
  }

  .gallery-counter {
    right: 12px;
    bottom: 14px;
  }
}
