@font-face {
  font-family: colfax;
  src: url("../../font/ColfaxWebLight.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: colfax;
  src: url("../../font/ColfaxWebRegular.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
}

* {
  box-sizing: border-box;
}

html,
body,
main,
section,
figure,
figcaption,
div,
h1,
p,
a,
button,
img {
  padding: 0;
  margin: 0;
  border: 0;
  outline: 0;
  background: transparent;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  -webkit-text-size-adjust: none;
}

body {
  color: #111;
  background: #fff;
  font: 13px/1.45 colfax, sans-serif;
  letter-spacing: 0;
}

body::before,
body::after {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
}

body::before {
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.022) 1px, transparent 1px),
    radial-gradient(circle at 1px 1px, rgba(0, 0, 0, 0.075) 0 0.45px, transparent 0.7px);
  background-size: 10px 10px, 10px 10px, 5px 5px;
  mix-blend-mode: multiply;
}

body::after {
  opacity: 0.05;
  background:
    repeating-linear-gradient(
      96deg,
      rgba(48, 48, 48, 0.018) 0,
      rgba(48, 48, 48, 0.018) 1px,
      transparent 1px,
      transparent 16px
    );
}

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

button {
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.portfolioPage {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: hidden;
  cursor: none;
}

.siteName {
  position: fixed;
  top: 58px;
  left: 72px;
  z-index: 30;
  display: block;
  color: #111;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.32em;
  white-space: nowrap;
  -webkit-text-stroke: 0.18px currentColor;
  cursor: pointer;
}

.categoryNav {
  position: fixed;
  z-index: 36;
  display: none;
  color: #777;
  font-size: 11px;
  line-height: 1.35;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: auto;
}

.categoryNav button,
.categoryNav a {
  position: relative;
  display: inline-block;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  white-space: nowrap;
}

.categoryNav button::after,
.categoryNav a::after {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 1px;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 180ms ease;
}

.categoryNav button:hover::after,
.categoryNav button:focus-visible::after,
.categoryNav button.isActive::after,
.categoryNav a:hover::after,
.categoryNav a:focus-visible::after {
  transform: scaleX(1);
}

.navHorizontal {
  top: 56px;
  right: 62px;
  max-width: min(940px, calc(100vw - 360px));
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px 18px;
  text-align: right;
}

.navCompact {
  top: 56px;
  right: 62px;
  min-width: 150px;
  text-align: right;
}

.compactLine {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
}

.compactMenu {
  position: absolute;
  top: 44px;
  left: 0;
  display: none;
  width: max-content;
  min-width: 156px;
  padding: 17px 11px 16px;
  text-align: left;
  color: #111;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.045);
}

.compactMenu::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.035) 1px, transparent 1px);
  background-size: 7px 7px, 11px 11px;
  mix-blend-mode: multiply;
}

.navCompact.isOpen .compactMenu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.navVertical {
  top: 132px;
  right: 62px;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  text-align: right;
}

.navBottom {
  right: 62px;
  bottom: 49px;
  left: 62px;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px 18px;
  text-align: right;
}

.nav-a .navHorizontal,
.nav-b .navCompact,
.nav-c .navVertical,
.nav-d .navBottom {
  display: flex;
}

.photoStage {
  position: fixed;
  inset: 0;
  z-index: 5;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  padding: 106px 78px 84px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(112%, 0, 0);
  transition:
    transform 1500ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 220ms ease;
  backface-visibility: hidden;
  will-change: transform;
  -webkit-backface-visibility: hidden;
}

.slide.isActive {
  z-index: 3;
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
}

.slide.isLeaving {
  z-index: 2;
  opacity: 1;
}

.transition-fade .slide {
  transform: none !important;
  transition:
    opacity 760ms ease-in-out,
    filter 760ms ease-in-out;
  will-change: opacity, filter;
}

.transition-fade .slide.isActive {
  opacity: 1;
  filter: blur(0);
  transform: none !important;
}

.transition-fade .slide.isLeaving {
  opacity: 0;
  filter: blur(0.8px);
}

.transition-fade .cursorLabel::before,
.transition-fade .cursorLabel::after {
  background: rgba(168, 168, 168, 0.86);
  mix-blend-mode: normal;
}

.slideImage {
  display: block;
  max-width: min(100%, 1120px);
  max-height: calc(100vh - 214px);
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.08);
  user-select: none;
  -webkit-user-drag: none;
}

.nav-c .slide {
  padding-right: 168px;
}

.nav-d .slide {
  padding-bottom: 126px;
}

.nav-d .slideImage {
  max-height: calc(100vh - 256px);
}

.caption {
  position: fixed;
  left: 50%;
  bottom: 55px;
  z-index: 24;
  display: block;
  width: min(calc(100vw - 156px), 1120px);
  min-height: 16px;
  color: #696969;
  font-size: 11px;
  line-height: 1.45;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  pointer-events: none;
  transform: translateX(-50%);
}

.captionTitle {
  position: absolute;
  top: 0;
  left: 0;
  color: #111;
  white-space: nowrap;
}

.captionText {
  width: 100%;
  padding: 0 250px;
  text-align: center;
  text-transform: none;
  letter-spacing: 0;
}

.captionCount {
  position: absolute;
  top: 0;
  right: 0;
  color: #777;
  text-align: right;
  white-space: nowrap;
}

.hitArea {
  position: fixed;
  top: 0;
  bottom: 0;
  z-index: 18;
  width: 50vw;
  cursor: none;
}

.hitPrev {
  left: 0;
}

.hitNext {
  right: 0;
}

.cursorLabel {
  position: fixed;
  z-index: 50;
  display: none;
  width: 63px;
  height: 74px;
  margin-top: -37px;
  margin-left: -31px;
  pointer-events: none;
}

.cursorLabel::before,
.cursorLabel::after {
  position: absolute;
  top: 36px;
  width: 64px;
  height: 1px;
  content: "";
  background: rgba(255, 255, 255, 0.78);
  mix-blend-mode: difference;
  transform-origin: right center;
}

.cursorLabel::before {
  transform: rotate(30deg);
}

.cursorLabel::after {
  transform: rotate(-30deg);
}

.cursorLabel.isPrev {
  transform: scaleX(-1);
}

@media (max-width: 900px) {
  .siteName {
    top: 30px;
    left: 24px;
  }

  .navHorizontal,
  .navCompact,
  .navVertical {
    top: 82px;
    right: 24px;
    left: 24px;
    max-width: none;
    justify-content: flex-end;
  }

  .navVertical {
    align-items: flex-end;
  }

  .navBottom {
    right: 24px;
    bottom: 25px;
    left: 24px;
  }

  .slide {
    padding: 142px 24px 86px;
  }

  .slideImage {
    max-height: calc(100vh - 278px);
  }

  .caption {
    right: 24px;
    bottom: 27px;
    left: 24px;
    width: auto;
    text-align: center;
    transform: none;
  }

  .captionTitle,
  .captionCount {
    position: static;
  }

  .captionText {
    padding: 4px 0;
  }

  .captionCount {
    text-align: center;
  }
}
