/* Gallery Page Styles */
.gallery-page {
  padding: 60px 20px;
  background: rgba(255, 255, 255, 0.8); /* transparent overlay */
  border-radius: 12px;
  margin: 40px auto;
  max-width: 1200px;
}

.gallery-page .container {
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-page h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #333;
}

.gallery-page p.intro {
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 50px;
  color: #555;
}

/* Grid Layout */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

/* Individual Gallery Item */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

/* Hover Effects */
.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item span {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 12px;
  font-size: 1rem;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover span {
  opacity: 1;
}
/* Lightbox Modal */
/* Lightbox Fullscreen View */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.lightbox img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 10px;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}

.nav-btn {
  position: absolute;
  top: 50%;
  font-size: 50px;
  color: white;
  cursor: pointer;
  user-select: none;
  padding: 10px 20px;
}

.nav-btn.prev {
  left: 40px;
}
.nav-btn.next {
  right: 40px;
}

.nav-btn:hover,
.close-btn:hover {
  color: #d17ba3;
}

/* Responsive */
@media (max-width: 768px) {
  .gallery-page {
    padding: 60px 15px;
  }
}
