.gallery-page-section {
  padding: 90px 0;
  background-color: #f8f9fc;
}

.gallery-grid-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 24px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  display: block;
  cursor: pointer;
  background: #fff;
  height: 300px;
}
.gallery-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 37, 64, 0.85); /* Navy Blue transparent */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.4s ease;
}
.gallery-overlay i {
  color: #d4af37;
  font-size: 2.5rem;
  transform: translateY(20px);
  transition: all 0.4s ease;
}
.gallery-title {
  color: #fff;
  margin-top: 15px;
  font-weight: 500;
  font-size: 1.1rem;
  transform: translateY(20px);
  transition: all 0.4s ease;
  text-align: center;
  padding: 0 15px;
}

.gallery-grid-item:hover img {
  transform: scale(1.1);
}
.gallery-grid-item:hover .gallery-overlay {
  opacity: 1;
}
.gallery-grid-item:hover .gallery-overlay i,
.gallery-grid-item:hover .gallery-title {
  transform: translateY(0);
}

/* Premium Pagination */
.premium-pagination {
  margin-top: 50px;
  display: flex;
  justify-content: center;
  gap: 8px;
  list-style: none;
  padding: 0;
}
.premium-pagination li a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #ffffff;
  color: #0a2540;
  font-weight: 600;
  border-radius: 50%;
  text-decoration: none;
  border: 1px solid #eaeaea;
  transition: all 0.3s ease;
}
.premium-pagination li a:hover,
.premium-pagination li.active a {
  background: #d4af37;
  color: #ffffff;
  border-color: #d4af37;
  box-shadow: 0 4px 10px rgba(212, 175, 55, 0.3);
}

/* ================= CUSTOM LIGHTBOX (POPUP) CSS ================= */
.lightbox-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 50px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.lightbox-modal.show {
  display: block;
  opacity: 1;
}

.lightbox-content {
  position: relative;
  margin: auto;
  padding: 0;
  width: 90%;
  max-width: 900px;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-content img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 4px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}

/* Controls */
.close-lightbox {
  color: #fff;
  position: absolute;
  top: 20px;
  right: 35px;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  z-index: 10000;
}
.close-lightbox:hover {
  color: #d4af37;
}

.lightbox-prev,
.lightbox-next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -50px;
  color: white;
  font-weight: bold;
  font-size: 24px;
  transition: 0.3s ease;
  border-radius: 4px;
  background: rgba(10, 37, 64, 0.5);
  user-select: none;
  z-index: 10000;
}
.lightbox-prev {
  left: 5%;
}
.lightbox-next {
  right: 5%;
}
.lightbox-prev:hover,
.lightbox-next:hover {
  background-color: #d4af37;
  color: #0a2540;
}
.lightbox-caption {
  text-align: center;
  color: #d4af37;
  font-size: 1.2rem;
  font-weight: 600;
  padding: 15px 0;
  position: absolute;
  bottom: -50px;
  width: 100%;
}
