:root {
  --bg: #0f0f11;
  --card: #141417;
  --ink: #e6e8eb;
  --muted: #9aa1a9;
  --brand: #f0b34b;
  --ring: rgba(255,255,255,.12);
  --shadow: 0 10px 30px rgba(0,0,0,.35), 0 2px 10px rgba(0,0,0,.25);
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.5 ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  height: 100%;
}

a {
  color: inherit;
}

.wrap {
  max-width: 1600px;
  margin: 0 auto;
  padding: 16px;
}

.pagehead {
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(
    180deg,
    rgba(15,15,17,.95),
    rgba(15,15,17,.65) 70%,
    rgba(15,15,17,0)
  );
  backdrop-filter: saturate(140%) blur(6px);
}

.pagehead .inner {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.title {
  font-weight: 800;
  letter-spacing: .2px;
}

section {
  margin: 18px 0 28px;
}

h3 {
  color: #e2e5e9;
  font: 800 13px/1 ui-sans-serif;
  margin: 10px 2px 12px;
  letter-spacing: .4px;
  text-transform: uppercase;
}

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

.thumb {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background: #111;
  box-shadow: var(--shadow);
  transform: translateZ(0);
}

.thumb img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform .18s ease;
}

.thumb:hover img {
  transform: scale(1.06);
}

.thumb .lab {
  position: absolute;
  left: 8px;
  bottom: 8px;
  background: rgba(0,0,0,.55);
  color: #fff;
  padding: 4px 8px;
  border-radius: 7px;
  font: 800 12px/1.1 ui-sans-serif;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  overflow: hidden;
}

.lightbox.open {
  display: flex;
}

.lb-inner {
  position: relative;
  max-width: 92vw;
  max-height: 90vh;
  overflow: hidden;
}

.lb-img {
  display: block;
  border-radius: 12px;
  box-shadow: var(--shadow);
  cursor: zoom-in;
  transition: transform .15s ease;
  transform-origin: 0 0;
  user-select: none;
  -webkit-user-drag: none;
}

.lb-img.dragging {
  cursor: grabbing;
}

.lb-img.zoomed {
  cursor: grab;
}

.lb-ui {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.lb-btn {
  pointer-events: auto;
  cursor: pointer;
  border: 1px solid var(--ring);
  background: rgba(255,255,255,.08);
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  transition: .2s ease;
}

.lb-btn:hover {
  transform: scale(1.05);
  background: #fff;
  color: #000;
}

.lb-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -44px;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  color: #cfd5dd;
  font-weight: 700;
}

.lb-chip {
  background: rgba(255,255,255,.08);
  border: 1px solid var(--ring);
  padding: 6px 10px;
  border-radius: 999px;
}

.lb-close {
  position: absolute;
  top: -52px;
  right: 0;
}

.progress {
  position: fixed;
  left: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, #ffb35c, #fff);
  width: 0;
  z-index: 60;
}

