:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: rgba(0, 0, 0, 0.52);
  --line: rgba(0, 0, 0, 0.08);
  --line-strong: rgba(0, 0, 0, 0.12);

  --accent: #FAFFD4;
  --accent-soft: rgba(250, 255, 212, 0.28);
  --accent-text: #FAFFD4;
  --accent-line: #FAFFD4;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  padding-top: 78px;
  background: var(--bg);
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 300;
  line-height: 18.2px;
  color: var(--text);
}

/* header */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 18px 20px 10px;
  background: #ffffff;
  border-bottom: 1px solid var(--accent-line);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-link {
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  font-weight: 300;
  transition: color 0.15s ease;
}

.header-link:hover {
  color: var(--accent-text);
}

/* grid */

.archive-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding: 32px 32px 32px;
}

/* items */

.archive-item {
  display: flex;
  flex-direction: column;
}

.archive-item img,
.archive-item video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  margin: 0 auto;
}

.archive-item--large img,
.archive-item--large video {
  max-width: 520px;
}

.archive-item--small img,
.archive-item--small video {
  max-width: 350px;
}

.archive-item--shrink img,
.archive-item--shrink video {
  transform: scale(0.85);
}

.archive-item figcaption {
  margin-top: 5px;
  text-align: center;
  font-size: 12px;
  font-weight: 300;
  line-height: 15px;
  color: rgba(0, 0, 0, 0.85);
}

figure {
  margin: 0;
}

.archive-item img,
.archive-item video {
  cursor: pointer;
}

/* lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  background: white;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.lightbox.active {
  display: flex;
}

.lightbox-content img,
.lightbox-content video {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: #000;
  cursor: pointer;
  line-height: 1;
  background: none;
  border: none;
  padding: 0;
  display: flex;
  align-items: center;
  font-size: 18px;
  font-weight: 300;
}

.lightbox-close:hover {
  opacity: 0.6;
}
