html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body > nav,
.container > header {
  background: transparent !important;
  transition: transform 0.28s ease;
  will-change: transform;
}

.site-nav-hidden {
  transform: translate3d(0, -110%, 0) !important;
}

body.cursor-ready,
body.cursor-ready a,
body.cursor-ready button,
body.cursor-ready [role="button"],
body.cursor-ready .project-row,
body.cursor-ready .project-preview,
body.cursor-ready .photo,
body.cursor-ready .photo-block,
body.cursor-ready .intro-photo,
body.cursor-ready .lightbox-close,
body.cursor-ready .lightbox-prev,
body.cursor-ready .lightbox-next {
  cursor: none;
}

body.cursor-ready.cursor-over-frame,
body.cursor-ready.cursor-over-frame iframe {
  cursor: auto;
}

.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 14px;
  height: 14px;
  border: 1px solid var(--cursor-color, #ffffff);
  background: var(--cursor-color, #ffffff);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10001;
  mix-blend-mode: difference;
  opacity: 0;
  transform: translate(-50%, -50%) scale(1);
  transition: width 0.16s, height 0.16s, background 0.16s, opacity 0.16s;
  will-change: transform;
}

.custom-cursor.is-visible {
  opacity: 1;
}

body.cursor-over-frame .custom-cursor {
  opacity: 0;
}

.custom-cursor.is-hovering {
  width: 22px;
  height: 22px;
  background: var(--cursor-color, #ffffff);
}

.custom-cursor.is-pressed {
  width: 18px;
  height: 18px;
  background: var(--cursor-color, #ffffff);
}

.site-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 4rem;
  background: rgba(0, 0, 0, 0.94);
}

.site-lightbox.is-open {
  display: flex;
}

.site-lightbox img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 8rem);
  object-fit: contain;
}

.site-lightbox button {
  position: absolute;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #e0e0e0;
  font: inherit;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.site-lightbox-close {
  top: 1rem;
  right: 1rem;
}

.site-lightbox-prev {
  left: 1rem;
}

.site-lightbox-next {
  right: 1rem;
}

.photo-block[role="button"],
.photo[role="button"] {
  cursor: pointer;
}

@media (max-width: 700px) {
  .site-lightbox {
    padding: 3.5rem 1rem;
  }

  .site-lightbox img {
    max-height: calc(100vh - 7rem);
  }

  .site-lightbox-prev {
    left: 0;
  }

  .site-lightbox-next {
    right: 0;
  }
}
