/* Corporate Style for Gallery Section */
/* Gallery Page Background */
body {
  background: #3b3838;
}

/* Gallery Banner */
.gallery-banner {
  background: linear-gradient(90deg, #000000 60%, #070707c7 100%);
  border-radius: 18px;
  margin: 2rem auto 1rem auto;
  max-width: 1200px;
  overflow: hidden;
  box-shadow: 0 4px 24px 0 rgba(184,134,11,0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.gallery-banner img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  opacity: 0.40;
  filter: blur(1px) brightness(0.95);
}
.gallery-title-main {
  position: absolute;
  left: 0; right: 0; top: 50%;
  transform: translateY(-50%);
  text-align: center;
  color: #f1b100d7;
  font-size: 2.5rem;
  font-weight: bold;
  text-shadow: 0 4px 24px #fffbe6, 0 2px 8px #b8860b33;
  letter-spacing: 2px;
  z-index: 2;
}

/* Gallery Section Card Effect */
.gallery-section {
  background: linear-gradient(90deg, #272703ab 60%, #0c0c0cc7 100%);
  border-radius: 18px;
  box-shadow: 0 6px 32px 0 rgba(184,134,11,0.08);
  margin: 2rem auto;
  padding: 2rem 1rem;
  max-width: 1200px;
}

/* Gallery Title */
.gallery-title {
  text-align: center;
  font-size: 1.5rem;
  color: #b8860b;
  font-weight: 700;
  margin-bottom: 1.2rem;
  letter-spacing: 1px;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  margin: 2rem auto;
  max-width: 1200px;
  padding: 0 1rem;
}

/* Gallery Item - Transparent Card with Shadow */
.gallery-item {
  background: rgba(10, 10, 0, 0.85);
  border-radius: 16px;
  box-shadow: 0 4px 24px 0 rgba(184,134,11,0.13), 0 1.5px 8px 0 rgba(184,134,11,0.08);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.gallery-item:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 8px 32px 0 rgba(184,134,11,0.18), 0 2px 12px 0 rgba(184,134,11,0.10);
}
.gallery-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 2px 8px #b8860b22;
  cursor: pointer;
  transition: transform 0.2s;
}
.gallery-img:hover {
  transform: scale(1.03);
}

/* Lightbox Styles */
.gallery-lightbox {
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(30, 30, 30, 0.65);
  backdrop-filter: blur(4px);
}
.gallery-lightbox-bg {
  position: absolute;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: transparent;
}
.gallery-lightbox-content {
  position: relative;
  background: #1111115e;
  border-radius: 18px;
  box-shadow: 0 8px 32px 0 rgba(184,134,11,0.18);
  padding: 1.5rem;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
}
.gallery-lightbox-content img {
  max-width: 80vw;
  max-height: 60vh;
  border-radius: 12px;
  object-fit: contain;
  background: #fff;
}
.gallery-lightbox-close {
  position: absolute;
  top: 10px; right: 18px;
  background: #b8860b;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 36px; height: 36px;
  font-size: 2rem;
  cursor: pointer;
  box-shadow: 0 2px 8px #b8860b33;
  z-index: 2;
}
#lightboxCaption {
  color: #f1efe9;
  font-size: 1.1rem;
  font-weight: 500;
  text-align: center;
  margin-top: 1.5rem;
  word-break: break-word;
}

/* Lightbox Pagination Buttons */
.lightbox-pagination {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
}
.lightbox-pagination button {
  background: #fffbe6;
  border: 1px solid #b8860b;
  color: #b8860b;
  border-radius: 8px;
  padding: 0.3rem 1.2rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.lightbox-pagination button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.lightbox-pagination button:hover:not(:disabled) {
  background: #b8860b;
  color: #fffbe6;
}

/* Pagination Styles */
.gallery-pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.gallery-pagination button {
  background: #fffbe6;
  border: 1px solid #b8860b;
  color: #b8860b;
  border-radius: 8px;
  padding: 0.3rem 1rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.gallery-pagination button.active,
.gallery-pagination button:hover {
  background: #b8860b;
  color: #fffbe6;
}

/* Responsive tweaks */
@media (max-width: 700px) {
  .gallery-section {
    padding: 1rem 0.5rem;
    margin: 1rem 0.5rem;
  }
  .gallery-banner {
    margin: 1rem 0.5rem;
  }
  .gallery-banner img {
    height: 120px;
  }
  .gallery-title-main {
    font-size: 1.3rem;
  }
  .gallery-img {
    height: 120px;
    border-radius: 8px;
  }
  .gallery-lightbox-content {
    padding: 0.5rem;
    max-width: 98vw;
    max-height: 98vh;
  }
  .gallery-lightbox-content img {
    max-width: 96vw;
    max-height: 50vh;
  }
  #lightboxCaption {
    font-size: 1rem;
    margin-top: 1rem;
  }
}