.subpage-header {
  position: sticky;
  z-index: 400;
  inset: auto;
  top: 28px;
  min-height: 84px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 35px;
  width: 100%;
  padding: 0 max(24px, calc((100% - 1320px) / 2));
  background: rgba(5, 9, 13, 0.94);
  backdrop-filter: blur(18px);
}

.probe {
  z-index: 410;
}

/* The shared site stylesheet also owns a generic .hero grid. Game Control's
   animated hero must remain a full-width scroll scene. */
#main-content > .hero {
  display: block;
  grid-template-columns: none;
  align-items: initial;
  gap: 0;
  min-height: 0;
  padding: 0;
}

.subpage-header .wordmark {
  opacity: 1;
}

.subpage-header > nav {
  display: flex !important;
}

.subpage-header > .mobile-nav {
  display: none !important;
}

.site-nav {
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
}

.site-nav::-webkit-scrollbar {
  display: none;
}

.gallery-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 12px;
}

.gallery-item:nth-child(3n) {
  grid-column: auto;
}

.lockup > span {
  max-width: 92vw;
  font-size: clamp(2.5rem, 7.2vw, 7rem);
  line-height: 0.82;
  letter-spacing: -0.075em;
}

.gallery-item img {
  width: 100%;
  height: clamp(190px, 21vw, 300px);
  padding: 12px;
  object-fit: contain;
  background: #0b1216;
}

.lightbox img {
  width: min(88vw, 1500px);
  height: min(82vh, 950px);
  max-width: none;
  max-height: none;
  object-fit: contain;
}

@media (max-width: 1180px) {
  .subpage-header > nav {
    display: none !important;
  }

  .subpage-header > .mobile-nav {
    display: block !important;
  }
}

@media (max-width: 760px) {
  header {
    align-items: flex-start;
    gap: 10px;
  }

  .site-nav {
    display: flex;
    width: calc(100vw - 92px);
    gap: 18px;
    padding: 14px 2px 10px;
  }

  .site-nav a {
    flex: 0 0 auto;
  }

  .lockup {
    left: 5vw;
    right: 5vw;
  }

  .lockup > span {
    max-width: 90vw;
    font-size: clamp(2rem, 10.5vw, 4rem);
    line-height: 0.88;
  }

  .lockup strong {
    font-size: clamp(3.4rem, 18vw, 6rem);
  }

  .gallery-item img {
    height: 180px;
    padding: 8px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 8px;
  }

  .gallery-item span {
    padding: 10px 6px;
  }

  .gallery-item i {
    display: none;
  }

  .lightbox {
    padding: 72px 12px 64px;
  }

  .lightbox img {
    width: 94vw;
    height: 74vh;
  }
}
