:root {
  --red: #c8102e;
  --ink: #1c2333;
  --muted: #6b7280;
  --paper: #faf9f6;
  --line: #e5e2da;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ---------- header ---------- */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 18px;
  padding: 28px 48px 24px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  position: sticky; top: 0; z-index: 50;
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; }
.brand .cross {
  width: 22px; height: 22px; background: var(--red);
  clip-path: polygon(35% 0,65% 0,65% 35%,100% 35%,100% 65%,65% 65%,65% 100%,35% 100%,35% 65%,0 65%,0 35%,35% 35%);
}
.brand .name { font-size: 15px; font-weight: 700; letter-spacing: 3px; }
.brand .name small { display: block; font-size: 10px; letter-spacing: 2px; color: var(--muted); font-weight: 500; margin-top: 3px; }
.nav { display: flex; gap: 6px; }
.nav a {
  text-decoration: none; color: var(--muted);
  font-size: 12.5px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 9px 16px; border-radius: 20px; transition: color .15s, background .15s;
}
.nav a:hover { color: var(--ink); background: #f0ede6; }
.nav a.active { color: #fff; background: var(--red); }

/* ---------- page intro ---------- */
.intro { padding: 56px 48px 8px; max-width: 900px; }
.intro h1 { font-size: 40px; font-weight: 800; letter-spacing: -1px; }
.intro h1 em { color: var(--red); font-style: normal; }
.intro p { margin-top: 12px; font-size: 16px; color: var(--muted); line-height: 1.6; }
.count { color: var(--red); font-weight: 700; }

/* ---------- gallery grid ---------- */
.gallery {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px; padding: 36px 48px 80px;
}
.gallery.wide { grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  overflow: hidden; cursor: zoom-in;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 38px rgba(28,35,51,.13); border-color: #d4cfc2; }
.thumb {
  height: 190px; display: flex; align-items: center; justify-content: center;
  background:
    linear-gradient(45deg, #f4f2ec 25%, transparent 25%, transparent 75%, #f4f2ec 75%),
    linear-gradient(45deg, #f4f2ec 25%, #fbfaf7 25%, #fbfaf7 75%, #f4f2ec 75%);
  background-size: 20px 20px; background-position: 0 0, 10px 10px;
  padding: 22px;
}
.gallery.wide .thumb { height: 230px; padding: 0; background: #111; }
.thumb img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.gallery.wide .thumb img { width: 100%; height: 100%; object-fit: cover; }
.meta { padding: 13px 16px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.meta .title { font-size: 13.5px; font-weight: 600; letter-spacing: .2px; }
.meta .num { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(12,13,16,.94);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lb-img { max-width: 82vw; max-height: 78vh; object-fit: contain; box-shadow: 0 30px 90px rgba(0,0,0,.6); border-radius: 6px; background:#fff; }
.lb-caption {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
  color: #e8e6e0; font-size: 14.5px; letter-spacing: .4px; text-align: center;
}
.lb-caption .lb-count { display: block; margin-top: 5px; font-size: 11.5px; color: #9a978e; letter-spacing: 2px; }
.lb-btn {
  position: absolute; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  color: #fff; cursor: pointer; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.lb-btn:hover { background: rgba(255,255,255,.2); }
.lb-close { top: 26px; right: 30px; width: 44px; height: 44px; font-size: 20px; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 24px; }
.lb-prev { left: 26px; } .lb-next { right: 26px; }
.lb-download {
  position: absolute; top: 30px; right: 92px;
  color: #ddd; font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
  text-decoration: none; padding: 12px 18px; border: 1px solid rgba(255,255,255,.16);
  border-radius: 20px; background: rgba(255,255,255,.08); transition: background .15s;
}
.lb-download:hover { background: rgba(255,255,255,.2); }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line); padding: 26px 48px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 12px; letter-spacing: 1.5px; color: var(--muted); text-transform: uppercase;
}
.site-footer b { color: var(--red); }

@media (max-width: 720px) {
  .site-header, .intro, .gallery, .site-footer { padding-left: 22px; padding-right: 22px; }
  .intro h1 { font-size: 30px; }
  .gallery, .gallery.wide { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
  .gallery.wide .thumb { height: 150px; }
  .lb-prev { left: 8px; } .lb-next { right: 8px; }
}
