:root {
  --bg: #050611;
  --card: #111423;
  --text: #f5f5f5;
  --muted: #a0a3b1;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 24px;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

h1 {
  margin: 0 0 24px;
  font-size: 32px;
}

/* PC: 5 columns */
.grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.card {
  background: var(--card);
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Tablet: 4 columns */
@media (max-width: 900px) {
  .grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Phone: 3 columns */
@media (max-width: 600px) {
  body {
    padding: 14px;
  }

  h1 {
    font-size: 24px;
  }

  .grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
}

.empty {
  margin-top: 24px;
  font-size: 14px;
  color: var(--muted);
}

/* Pop-out image */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 999;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 95vw;
  max-height: 90vh;
  border-radius: 16px;
  object-fit: contain;
}

.close {
  position: fixed;
  top: 18px;
  right: 26px;
  font-size: 42px;
  color: white;
  cursor: pointer;
}
