:root { --max: 1100px; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: #fafafa;
  color: #111;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px;
}

h1 { margin: 12px 0 4px; text-align: center; }
.sub { margin: 0 0 16px; text-align: center; color: #555; }

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

.card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 12px rgba(0,0,0,0.06);
  cursor: pointer;
}

.card img { width: 100%; height: 240px; object-fit: cover; display: block; }
.card .cap { padding: 10px 12px; font-size: 14px; color: #444; }

.lightbox {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.85);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: min(1200px, 95vw);
  max-height: 90vh;
  border-radius: 12px;
}

.close {
  position: fixed;
  top: 16px; right: 16px;
  font-size: 18px;
  border: 0;
  background: rgba(255,255,255,0.15);
  color: white;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
}
