
body {
  background: #1e1e1e;
  color: #fff;
  font-family: sans-serif;
  text-align: center;
  margin: 0;
  padding: 0;
}
h1 { margin-top: 1em; }
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  padding: 20px;
}
.gallery img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s;
}
.gallery img:hover {
  transform: scale(1.05);
}
/* Modal (lightbox) */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
.modal-content {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  position: relative;
}
.modal img {
  max-width: 90%;
  max-height: 80vh;
  border-radius: 10px;
  object-fit: contain;
}
.nav-btn {
  position: absolute;
  top: 50%;
  font-size: 2rem;
  color: white;
  background: rgba(0,0,0,0.5);
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  z-index: 1001;
  transform: translateY(-50%);
  border-radius: 6px;
}
.nav-btn:hover {
  background: rgba(255,255,255,0.3);
}
#prevBtn { left: 5%; }
#nextBtn { right: 5%; }
.download-btn {
  margin-top: 20px;
  padding: 12px 24px;
  background: #4CAF50;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-size: 1rem;
  transition: background 0.3s;
}
.download-btn:hover {
  background: #45a049;
}
.close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1002;
}
.close-btn:hover {
  color: #bbb;
}
