:root {
  --bg: #050505;
  --fg: #eaeaea;
  --accent: #ff003c;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, sans-serif;
  background: var(--bg);
  color: var(--fg);
}

header {
  border-bottom: 2px solid var(--accent);
  padding: 1rem;
}

nav {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 1rem;
}

nav a {
  color: var(--fg);
  text-decoration: none;
  margin-left: 1rem;
}

.neon-bar::after {
  content: "";
  display: block;
  height: 3px;
  background: var(--accent);
  margin-top: 0.25rem;
  box-shadow: 0 0 10px var(--accent);
}

main {
  padding: 1rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 700px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1000px) {
  .gallery {
    grid-template-columns: repeat(6, 1fr);
  }
}

figure {
  margin: 0;
  cursor: pointer;
}

figure img {
  width: 100%;
  border-radius: 6px;
  display: block;
}

figcaption {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-top: 0.25rem;
}

#overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  display: grid;
  place-items: center;
}

#overlay.hidden {
  display: none;
}

#modal {
  background: #0b0b0b;
  padding: 1rem;
  max-width: 90vw;
  border-radius: 8px;
  animation: fadeIn 0.25s ease;
  display: grid;
  grid-template-rows: auto 1fr auto;
  row-gap: 1rem;
}

#modal img {
  max-width: 100%;
  border-radius: 6px;
  justify-self: center;
}

#close {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 1.5rem;
  cursor: pointer;
  justify-self: end;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* FOOTER */
footer {
  border-top: 2px solid var(--accent);
  padding: 1rem;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.75;
}
