/* Basic page layout */
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #050608;
  color: #f5f5f5;
}

header {
  background: #111;
  padding: 1rem;
}

header h1 {
  margin: 0;
}

nav {
  margin-top: 0.5rem;
}

nav a {
  margin-right: 1rem;
  color: #f5f5f5;
  text-decoration: none;
}

nav a:hover {
  text-decoration: underline;
}

main {
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem;
}

/* Gallery grid */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 1rem;
}

.gallery a {
  display: block;
}

.gallery img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  cursor: pointer;
}

@media (max-width: 600px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Lightbox overlay */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;           /* hidden by default */
  align-items: center;
  justify-content: center;
  z-index: 999;
}

/* Show only the :target overlay */
.lightbox:target {
  display: flex;
}

/* Full-size image */
.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 4px;
}

/* Close button (X) */
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 32px;
  color: #ffffff;
  text-decoration: none;
  background: rgba(0, 0, 0, 0.6);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  cursor: pointer;
}
