:root {
  --fg: #eaeaea;
  --muted: #9e9e9e;
  --grid-gap: clamp(12px, 2vw, 20px);
  --maxw: 1400px;
  --brand-serif: "Didot", "Bodoni MT", Georgia, "Times New Roman", Times, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }

body {
  color: var(--fg);
  background: #0a0a0a;
  min-height: 100vh;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

.gallery {
  padding: clamp(24px, 4vw, 48px) clamp(12px, 4vw, 48px) 80px;
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--grid-gap);
  align-content: start;
}

.card {
  display: grid;
  grid-template-rows: auto auto;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-decoration: none;
  color: inherit;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
}

.card .thumb {
  width: 100%;
  aspect-ratio: 16/10;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

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

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

.card .meta {
  padding: 12px 14px;
}

.card .title {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-weight: 600;
  font-size: 1.1rem;
}

@media (prefers-reduced-motion: reduce) {
  .card, .card .thumb img { transition: none; }
}
