@font-face {
  font-family: "Hanken Grotesk Custom";
  src: url("fonts/HankenGrotesk-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --page-bg: #000;
  --mobile-stage-offset-x: 0px;
  --mobile-stage-offset-y: -80px;
  --card-shadow: 0 20px 45px rgba(0, 0, 0, 0.18);
  --card-radius: 0px;
  --gallery-scale: 0.65;
  --image-pad-top: 20px;
  --image-pad-side: 20px;
  --image-pad-bottom: 80px;
  --image-stage-width: calc(100vw - (var(--image-pad-side) * 2));
  --image-stage-height: calc(100vh - var(--image-pad-top) - var(--image-pad-bottom));
  --image-fit-width: min(var(--image-stage-width), calc(var(--image-stage-height) * 0.75));
  --image-width: calc(var(--image-fit-width) * var(--gallery-scale));
  --image-height: calc(var(--image-width) * 4 / 3);
  --card-width: calc(var(--image-width) + (var(--image-pad-side) * 2));
  --card-height: calc(var(--image-height) + var(--image-pad-top) + var(--image-pad-bottom));
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: var(--page-bg);
  color: #fff;
}

body.lightbox-open {
  overflow: hidden;
}

.site-logo-bg {
  position: fixed;
  left: 50%;
  bottom: -5px;
  z-index: 0;
  width: min(92vw, 980px);
  height: min(30vh, 300px);
  transform-origin: center bottom;
  transform: translateX(-50%) scale(1.8);
  background-image: url("logos/Logo-Big.svg");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: contain;
  filter: brightness(0) invert(1);
  pointer-events: none;
}

.page {
  position: relative;
  min-height: 100vh;
}

.top-nav {
  position: fixed;
  top: 0;
  right: 0;
  margin: 50px 65px 0 0;
  z-index: 10;
}

.instagram-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-family: "Hanken Grotesk Custom", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 18px;
  line-height: 1;
  color: #fff;
  text-decoration: none;
  text-transform: lowercase;
}

.instagram-link-icon {
  display: block;
  width: auto;
  height: 14px;
  padding-left: 3px;
  padding-top: 2px;
  filter: brightness(0) invert(1);
  transition: transform 180ms ease;
}

.instagram-link:hover,
.instagram-link:focus-visible {
  text-decoration: underline;
}

.instagram-link:hover .instagram-link-icon,
.instagram-link:focus-visible .instagram-link-icon {
  transform: translateX(10px);
}

.image-lineup-shell {
  position: fixed;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 8;
  pointer-events: none;
}

.image-lineup {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  padding: 6px 8px;
  pointer-events: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  --lineup-fade-top: 0px;
  --lineup-fade-bottom: 0px;
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0,
    rgba(0, 0, 0, 1) var(--lineup-fade-top),
    rgba(0, 0, 0, 1) calc(100% - var(--lineup-fade-bottom)),
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0,
    rgba(0, 0, 0, 1) var(--lineup-fade-top),
    rgba(0, 0, 0, 1) calc(100% - var(--lineup-fade-bottom)),
    transparent 100%
  );
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.image-lineup-shell.has-top-fade .image-lineup {
  --lineup-fade-top: 22px;
}

.image-lineup-shell.has-bottom-fade .image-lineup {
  --lineup-fade-bottom: 22px;
}

.image-lineup::-webkit-scrollbar {
  display: none;
}

.image-lineup-dot {
  position: relative;
  z-index: 1;
  pointer-events: auto;
  cursor: pointer;
  width: 21px;
  height: 21px;
  min-width: 21px;
  min-height: 21px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.55);
  opacity: 1;
  transform: scale(1);
  transition: opacity 180ms ease, transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.image-lineup-dot.is-active {
  opacity: 1;
  transform: scale(1.24);
  border-color: #fff;
  box-shadow: 0 0 0 1.2px rgba(255, 255, 255, 0.95);
}

.stack-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
  z-index: 2;
}

.photo-card {
  position: absolute;
  width: var(--card-width);
  height: var(--card-height);
  padding: var(--image-pad-top) var(--image-pad-side) var(--image-pad-bottom);
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  background: #fff;
  transition: none;
  will-change: transform, opacity;
}

.photo-card img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 0;
  background: transparent;
}

.photo-card--back-two {
  z-index: 1;
  transform: rotate(1deg) scale(0.95) translateY(12px);
  pointer-events: none;
}

.photo-card--back-one {
  z-index: 2;
  transform: rotate(-2deg) scale(0.97) translateY(6px);
  pointer-events: none;
}

.photo-card--current {
  z-index: 3;
  transform: rotate(0deg) scale(1) translateY(0);
  cursor: zoom-in;
  pointer-events: auto;
}

.photo-card.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.scroll-track {
  position: relative;
  z-index: 1;
  pointer-events: none;
}

.scroll-step {
  height: 100vh;
  scroll-snap-align: none;
  scroll-snap-stop: normal;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: 24px;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 220ms ease, visibility 0s linear 0s;
}

.lightbox.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms ease, visibility 0s linear 220ms;
}

.lightbox-image {
  max-width: min(79.9vw, 1190px);
  max-height: calc((100vh - 48px) * 0.85);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0;
}

.lightbox-close {
  position: absolute;
  top: 25px;
  right: 25px;
  border: 0;
  padding: 0;
  background: transparent;
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox-close-icon {
  display: block;
  width: 16px;
  height: 16px;
  filter: none;
}

html {
  scroll-snap-type: none;
}

@media (max-width: 640px) {
  html,
  body {
    height: 100%;
    overflow: hidden;
    overscroll-behavior: none;
  }

  :root {
    --image-pad-top: 17px;
    --image-pad-side: 17px;
    --image-pad-bottom: 70px;
  }

  .site-logo-bg {
    background-image: url("logos/Mobile-BG.svg");
    transform: translateX(-50%) scale(1.188);
  }

  .stack-stage {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    transform: translate3d(calc(var(--mobile-stage-offset-x) + 3px), var(--mobile-stage-offset-y), 0);
  }

  .scroll-track {
    padding-top: 100vh;
  }

  .image-lineup-shell {
    right: 10px;
  }

  .image-lineup {
    max-height: calc(100vh - 110px);
  }

  .lightbox {
    padding-left: 24px;
    padding-right: 24px;
  }

  .lightbox-image {
    max-width: min(85.493vw, 1273px);
    max-height: calc((100vh - 48px) * 0.9095);
    transform: translateY(-20px);
  }

  .photo-card {
    border-radius: 0;
  }
}
