body {
  font-family: sans-serif;
  background: #f5f5f5;
  margin: 0;
  padding: 20px;
}

h1 {
  text-align: center;
  margin-bottom: 30px;
}

#gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.card:hover {
  transform: scale(1.03);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card .info {
  padding: 10px;
}

.card .info h3 {
  margin: 0 0 5px;
  font-size: 18px;
}

.card .info p {
  margin: 0;
  color: #555;
  font-size: 14px;
}

/* Lightbox */
#lightbox {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 1000;
}

#lightbox.hidden {
  display: none;
}

#lightbox img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 8px;
}

#caption {
  color: white;
  text-align: center;
  margin-top: 10px;
}

#close {
  position: absolute;
  top: 15px; right: 25px;
  color: white;
  font-size: 40px;
  cursor: pointer;
}

.controls {
  margin-top: 10px;
}

.controls button {
  background: white;
  border: none;
  padding: 10px 20px;
  margin: 0 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 18px;
}

.controls button:hover {
  background: #ddd;
}

