body {
  font-family: Arial, sans-serif;
  background: #f0f0f5;
  margin: 0;
  padding: 20px;
}
h1 {
  text-align: center;
  margin-top: 30px;
  font-size: 36px;
}
.gallery-grid {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 50px;
}
.gallery-card {
  width: 350px;
  height: 250px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  font-size: 24px;
  color: white;
  border-radius: 15px;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}
.gallery-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent 60%);
  border-radius: 15px;
}
.card-title {
  position: relative;
  padding: 15px;
  font-weight: bold;
  z-index: 1;
  text-align: center;
  font-size: 22px;
}
.gallery-card:hover {
  transform: scale(1.05);
  box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.4);
}
/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 1200;
}
.lightbox img {
  max-width: 90%;
  max-height: 75%;
  border-radius: 10px;
  transition: opacity 0.5s;
}
.controls {
  margin-top: 20px;
}
.controls button {
  padding: 10px 20px;
  margin: 0 10px;
  font-size: 16px;
  cursor: pointer;
}
.close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 30px;
  color: white;
  cursor: pointer;
}
.gallery-title {
  color: white;
  font-size: 28px;
  margin-bottom: 20px;
}

/* Responsive for smaller screens */
@media (max-width: 768px) {
  .gallery-card {
    width: 90%;
    height: 200px;
  }
}
