@font-face {
  font-family: 'VolumeFour';
  src: url('VolumeFour-Regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

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

:root {
  --bg: #ffffff;
  --ink: #000000;
  --muted: #888888;
  --accent: #aaaaaa;
  --border: #e8e8e8;
  --col-nav: 320px;
  --gap: 16px;
}

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Jost', sans-serif;
  font-weight: 400;
}

/* ── LAYOUT ── */
.site {
  display: grid;
  grid-template-columns: var(--col-nav) 1fr 1fr 1fr;
  grid-template-rows: auto;
  gap: var(--gap);
  min-height: 100vh;
  padding-right: 32px;
  padding-left: 0;
  align-items: start;
}

/* ── LEFT NAV ── */
nav {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 64px 40px 56px;
  border-right: none;
  background: var(--bg);
  z-index: 10;
}

.nav-top {}

.site-name {
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
  font-size: 2.4rem;
  letter-spacing: 0.02em;
  line-height: 1.3;
  margin-bottom: 52px;
}

.site-role {
  font-size: 0.82rem;
}

nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

nav ul li {
  margin-bottom: -6px;
}

nav ul li a {
  text-decoration: none;
  font-size: 3rem;
  letter-spacing: 0;
  text-transform: none;
  font-family: 'VolumeFour', 'Jost', sans-serif;
  line-height: 0.82;
  color: var(--muted);
  transition: color 0.2s ease;
  display: block;
  padding: 4px 0;
  position: relative;
}

nav ul li a:hover,
nav ul li a.active {
  color: var(--ink);
}

.nav-divider {
  display: none;
}

.nav-filter-label {
  font-size: 0.78rem;
  margin-top: 96px;
}

.filter-tags {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.filter-tag {
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  cursor: pointer;
  padding: 3px 0;
  transition: color 0.2s;
  user-select: none;
}

.filter-tag:hover,
.filter-tag.active {
  color: var(--ink);
}

.nav-bottom {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-bottom span {
  font-size: 0.55rem;
}

.nav-instagram {
  text-decoration: none;
  color: var(--muted);
  font-family: 'Jost', sans-serif;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.nav-instagram:hover {
  color: var(--ink);
}

/* ── GRID COLUMNS ── */
.col {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  padding-top: 64px;
  padding-bottom: 64px;
}

.col::-webkit-scrollbar { display: none; }

/* ── IMAGE ITEMS ── */
a.item {
  text-decoration: none;
  display: block;
}

.item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--border);
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp 0.55s ease forwards;
}

.item img {
  width: 100%;
  display: block;
  transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  filter: saturate(0.88);
}

.item:hover img {
  transform: scale(1.04);
  filter: saturate(1);
}

.item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.62);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.item:hover .item-overlay { opacity: 1; }

.item-meta {
  color: var(--ink);
  text-align: center;
}

.item-title {
  font-family: 'Jost', sans-serif;
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.2;
  display: block;
}

.item-tag {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
  display: block;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.item:nth-child(1)  { animation-delay: 0.05s; }
.item:nth-child(2)  { animation-delay: 0.12s; }
.item:nth-child(3)  { animation-delay: 0.19s; }
.item:nth-child(4)  { animation-delay: 0.26s; }
.item:nth-child(5)  { animation-delay: 0.33s; }
.item:nth-child(6)  { animation-delay: 0.40s; }
.item:nth-child(7)  { animation-delay: 0.47s; }

/* ── LIGHTBOX ── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.94);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(8px);
}

.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox img {
  max-width: min(820px, 90vw);
  max-height: 82vh;
  object-fit: contain;
  box-shadow: 0 24px 80px rgba(26,26,24,0.14);
  display: block;
}

.lightbox-close {
  position: fixed;
  top: 32px;
  right: 40px;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  border: none;
  background: none;
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  transition: color 0.2s;
}
.lightbox-close:hover { color: var(--ink); }

.lightbox-caption {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.lightbox-caption .item-title {
  color: var(--ink);
  font-size: 1.3rem;
}
.lightbox-caption .item-tag {
  color: var(--muted);
}

/* ── desktop: hide mobile-only elements ── */
.mobile-footer,
.nav-instagram-mobile {
  display: none;
}

/* ── drawer always visible on desktop ── */
@media (min-width: 641px) {
  .nav-drawer { display: flex !important; flex-direction: column; flex: 1; }
  .hamburger  { display: none; }
  .nav-top    { display: block; }
}

.nav-bottom-desktop { display: flex; }

/* ── FLUID TYPE ── */
html { font-size: clamp(14px, 1.2vw, 17px); }

.site-name   { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.site-role   { font-size: clamp(0.65rem, 0.9vw, 0.82rem); }
.filter-tag  { font-size: 17px; font-weight: 400; }
.item-title  { font-size: clamp(1.1rem, 1.8vw, 1.6rem); }

@media (min-width: 641px) {
  nav ul li a { font-size: 57.6px; font-weight: 500; font-family: 'VolumeFour', 'Jost', sans-serif; line-height: 0.82; letter-spacing: 0; }
}

/* ── DESKTOP: cols-wrapper transparent — children slot into parent grid ── */
.cols-wrapper {
  display: contents;
}

/* ── TABLET (641px–900px) ── */
@media (max-width: 900px) {
  .site {
    grid-template-columns: 220px 1fr;
    padding-right: 20px;
  }

  nav { padding: 48px 28px 40px; }

  /* cols-wrapper becomes a 2-column grid in the content track */
  .cols-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap);
    row-gap: var(--gap);
    align-items: start;
    padding-top: 64px;
  }

  .col {
    display: flex;
    flex-direction: column;
    gap: var(--gap);
    padding-top: 0;
  }

  .item {
    display: block;
  }
}

/* ── MOBILE (≤640px) ── */
@media (max-width: 640px) {
  .site {
    display: block;
    padding: 0 10px 10px;
    /* padding-top injected by JS to match live nav height */
  }

  nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: auto;
    z-index: 50;
    padding: 0;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
  }

  .nav-top {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 6px 16px 0;
  }

  .site-name { margin-bottom: 2px; flex: none; }
  .site-name img { width: 100%; height: auto; display: block; }

  .hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    background: none;
    border: none;
    flex-shrink: 0;
  }
  .hamburger span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--ink);
    transition: all 0.25s ease;
  }
  .hamburger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .hamburger span:nth-child(2) { opacity: 0; }
  .hamburger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  .hamburger.open span:nth-child(1) { transform: none; }
  .hamburger.open span:nth-child(2) { opacity: 1; }
  .hamburger.open span:nth-child(3) { transform: none; }

  .nav-drawer { display: flex; flex-direction: column; padding: 0 0 6px; }

  .nav-links-row {
    display: flex;
    justify-content: center;
    padding: 0;
  }

  nav ul {
    list-style: none;
    margin: 0 !important;
    padding: 0;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 6vw;
    width: 100%;
  }

  nav ul li {
    margin: 0 !important;
    padding: 0;
    flex: none;
  }

  nav ul li a {
    font-size: 11vw;
    line-height: 1;
    padding: 2px 0;
    text-align: center;
    display: block !important;
    white-space: nowrap;
  }

  .hamburger { display: none; }
  .nav-divider { display: none; }
  .nav-bottom { display: none; }
  #filter-section { display: none; }

  a.nav-instagram.nav-instagram-mobile {
    display: block;
    padding: 0px 0 5px;
    margin-top: -4px;
    font-size: 1.2rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    text-decoration: none;
    font-family: 'Jost', sans-serif;
    font-weight: 400;
    text-align: center;
  }
  .nav-instagram-mobile:hover { color: var(--ink); }

  .cols-wrapper {
    display: flex;
    flex-direction: column;
    gap: var(--gap);
  }

  .col {
    display: contents;
  }

  .item {
    display: block;
  }

  .mobile-footer {
    display: block;
    text-align: center;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    padding: 32px 16px 24px;
  }
}
