:root {
  color-scheme: dark;
  --bg: #0b0b0c;
  --bg-elev: #141415;
  --text: #ececec;
  --text-dim: #9a9a9a;
  --accent: #ffffff;
  --border: #262626;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

img {
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: none;
}

header {
  padding: 48px 24px 24px;
  text-align: center;
}

header .name {
  height: 44px;
  width: auto;
}

header .tagline {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

nav.tabs {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 11, 12, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 12px;
}
nav.tabs::-webkit-scrollbar { display: none; }

nav.tabs button {
  flex: 0 0 auto;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 16px 14px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

nav.tabs button.active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 12px 60px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

@media (min-width: 640px) {
  .gallery { grid-template-columns: repeat(4, 1fr); gap: 6px; }
}

@media (min-width: 960px) {
  .gallery { grid-template-columns: repeat(5, 1fr); gap: 8px; }
}

.gallery figure {
  margin: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg-elev);
  cursor: pointer;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gallery figure:hover img {
  transform: scale(1.04);
}

/* Lightbox */
#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.96);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  touch-action: pan-y;
}
#lightbox.open { display: flex; }

#lightbox img {
  max-width: 92vw;
  max-height: 86vh;
  object-fit: contain;
  -webkit-user-drag: none;
}

#lightbox .close,
#lightbox .prev,
#lightbox .next {
  position: absolute;
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  padding: 16px;
  opacity: 0.75;
  user-select: none;
}
#lightbox .close:hover,
#lightbox .prev:hover,
#lightbox .next:hover { opacity: 1; }

#lightbox .close { top: 6px; right: 6px; z-index: 2; }
#lightbox .prev { left: 0; top: 0; bottom: 0; z-index: 1; }
#lightbox .next { right: 0; top: 0; bottom: 0; z-index: 1; }

footer {
  text-align: center;
  padding: 24px;
  font-size: 11px;
  color: #555;
  letter-spacing: 0.05em;
}
