:root {
  --gallery-bg: #0e0f0e;
  --gallery-panel: #151515;
  --gallery-text: #f7f3ea;
  --gallery-muted: rgba(247, 243, 234, 0.68);
  --gallery-gold: #c59a44;
}

html {
  background: var(--gallery-bg);
}

body {
  background: var(--gallery-bg);
  color: var(--gallery-text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body > header {
  position: sticky;
  z-index: 20;
  top: 0;
  min-height: 76px;
  margin: 0;
  padding: 16px clamp(18px, 4vw, 48px);
  background: rgba(14, 15, 14, 0.82);
  backdrop-filter: blur(16px);
}

body > header::after {
  content: "AT Media Lab";
  color: var(--gallery-text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  letter-spacing: 0;
}

body > header .btn {
  border: 1px solid rgba(247, 243, 234, 0.16);
  border-radius: 999px;
  color: var(--gallery-text);
  background: rgba(247, 243, 234, 0.04);
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

body > header .btn:hover,
body > header .btn:focus-visible {
  color: var(--gallery-gold);
  border-color: rgba(197, 154, 68, 0.64);
  background: rgba(197, 154, 68, 0.09);
}

hgroup {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(72px, 10vw, 128px) clamp(18px, 4vw, 48px) clamp(32px, 5vw, 64px);
  align-items: flex-start;
  text-align: left;
}

hgroup::before {
  content: "Gallery";
  color: var(--gallery-gold);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

hgroup h1 {
  max-width: 780px;
  color: var(--gallery-text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 500;
  line-height: 0.96;
}

main > section.gallery {
  width: min(100%, 1640px);
  margin: 0 auto clamp(64px, 8vw, 112px);
  padding: 0 clamp(12px, 2vw, 28px);
}

#gallery {
  gap: clamp(10px, 1.5vw, 18px) !important;
}

.gallery-item {
  display: block;
  overflow: hidden;
  border-radius: 6px;
  background: var(--gallery-panel);
  cursor: zoom-in;
}

.gallery-item figure {
  overflow: hidden;
  border-radius: 6px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    opacity 300ms ease,
    transform 520ms ease,
    filter 520ms ease;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.035);
  filter: contrast(1.04) brightness(1.04);
}

.prose {
  display: none;
}

body > footer {
  display: none;
}

@media (max-width: 700px) {
  body > header {
    min-height: 64px;
  }

  hgroup {
    padding-top: 52px;
  }

  hgroup h1 {
    font-size: clamp(2.6rem, 16vw, 4.8rem);
  }

  main > section.gallery {
    padding-right: 8px;
    padding-left: 8px;
  }
}
