:root {
  --paper: #EDEAE2;
  --paper-dark: #E2DDD0;
  --ink: #1C1B19;
  --ink-soft: #4A473F;
  --teal: #2E6F6E;
  --orange: #D96B2B;
  --line: #C9C3B5;
  --white: #FAF8F3;

  --font-display: 'Archivo Black', sans-serif;
  --font-body: 'Work Sans', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  border-bottom: 3px solid var(--ink);
  padding: 18px 28px 0 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.brand-mark {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--white);
  background: var(--ink);
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transform: rotate(-3deg);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.3px;
}

.brand-tag {
  font-size: 13px;
  color: var(--ink-soft);
}

.social-links {
  display: flex;
  gap: 10px;
  align-items: center;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--ink);
  border: 1px solid var(--line);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.social-icon svg {
  width: 19px;
  height: 19px;
}

.social-icon:hover,
.social-icon:focus-visible {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
  outline: none;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.header-top .brand {
  margin-bottom: 0;
}

.footer-social {
  justify-content: center;
  margin-top: 16px;
}

.cat-nav {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.cat-nav::-webkit-scrollbar { display: none; }

.cat-nav a {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink-soft);
  text-decoration: none;
  white-space: nowrap;
  padding: 10px 16px;
  border-bottom: 3px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.cat-nav a:hover,
.cat-nav a:focus-visible {
  color: var(--ink);
}

.cat-nav a.active {
  color: var(--ink);
  border-color: var(--orange);
}

/* ---------- Gallery sections ---------- */

main { padding: 0 28px; }

.cat-section {
  padding: 56px 0 24px 0;
  border-bottom: 1px dashed var(--line);
}

.cat-section:last-child { border-bottom: none; }

.cat-heading {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 6px;
}

.cat-heading h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  margin: 0;
}

.cat-count {
  font-size: 14px;
  color: var(--ink-soft);
}

.cat-desc {
  max-width: 60ch;
  color: var(--ink-soft);
  margin: 0 0 28px 0;
  font-size: 15px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 22px;
}

/* ---------- Item card ---------- */

.item-card {
  cursor: pointer;
  background: var(--white);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.item-card:hover,
.item-card:focus-visible {
  border-color: var(--ink);
  transform: translateY(-3px);
  box-shadow: 4px 4px 0 var(--ink);
  outline: none;
}

.item-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-dark);
}

.item-photo img,
.item-photo video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.play-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 46px;
  height: 46px;
  background: rgba(28, 27, 25, 0.72);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  pointer-events: none;
}

.photo-count {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: var(--ink);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 8px;
  letter-spacing: 0.3px;
}

.item-info {
  padding: 12px 14px 16px 14px;
}

.item-info h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  margin: 0 0 4px 0;
}

.item-info p {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-soft);
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 40px 28px 60px 28px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 14px;
}

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(28, 27, 25, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 24px;
}

.lightbox.open { display: flex; }

.lb-stage {
  max-width: 900px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lb-stage img,
.lb-stage .lb-video {
  max-width: 100%;
  max-height: 62vh;
  object-fit: contain;
  background: var(--paper-dark);
}

.lb-caption {
  color: var(--white);
  text-align: center;
  margin-top: 16px;
}

.lb-caption h3 {
  font-family: var(--font-display);
  font-size: 20px;
  margin: 0 0 4px 0;
}

.lb-caption p {
  margin: 0;
  font-size: 14px;
  color: #C9C3B5;
}

.lb-dots {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.lb-dots span {
  width: 8px;
  height: 8px;
  background: #57534A;
  cursor: pointer;
}

.lb-dots span.active {
  background: var(--orange);
}

.lb-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 22px;
  cursor: pointer;
}

.lb-arrow {
  background: none;
  border: none;
  color: var(--white);
  font-size: 42px;
  cursor: pointer;
  line-height: 1;
  padding: 8px 14px;
}

.lb-arrow:hover { color: var(--orange); }

@media (max-width: 640px) {
  .lb-arrow { font-size: 30px; padding: 6px 8px; }
  .site-header { padding: 14px 16px 0 16px; }
  main { padding: 0 16px; }
}
