/* gallery.css */

:root {
  --purple: #5c2d91;
  --bg: #0f0f0f;
  --text: #f5f5f5;
  --accent: var(--purple);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Space Grotesk', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  padding: 2rem 1rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  margin-bottom: 2rem;
  text-align: center;
}

.back-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: inline-block;
}

.back-link:hover {
  color: #7c47b8;
}

h1 {
  font-weight: 600;
  font-size: 2rem;
  color: var(--accent);
}

main {
  flex: 1;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto;
}

.gallery-grid img {
  width: 100%;
  border-radius: 0.75rem;
  object-fit: cover;
  cursor: pointer;
  filter: grayscale(20%);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
}

.gallery-grid img:hover {
  filter: grayscale(0);
  transform: scale(1.05);
  box-shadow: 0 8px 20px var(--purple);
}

footer {
  text-align: center;
  font-size: 0.8rem;
  color: #999;
  margin-top: 3rem;
}

/* Responsive */
@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
