/* ==========================================================================
   Lumin Consultancy - Gallery Specific Styles
   ========================================================================== */

.gallery-hero {
  position: relative;
  background: #040d17;
  color: #fff;
  padding: 72px 0 60px;
  text-align: center;
  overflow: hidden;
}

.gallery-hero h1 {
  color: #ffffff;
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.15;
}

.gallery-hero p {
  color: #cbd5e1;
  font-size: 1.1rem;
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: 24px;
  padding: 48px 0 80px;
}

.gallery-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  cursor: pointer;
  position: relative;
  height: 280px;
}

.gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(15, 42, 58, 0.16);
}

.gallery-img-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  background: #f1f5f9;
  overflow: hidden;
}

.gallery-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.gallery-card:hover .gallery-img-wrap img {
  transform: scale(1.08);
}

.gallery-zoom-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 42, 58, 0.3);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.gallery-card:hover .gallery-zoom-overlay {
  opacity: 1;
}

.gallery-zoom-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ffffff;
  color: #0f2a3a;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  transform: scale(0.85);
  transition: transform 0.3s ease;
}

.gallery-card:hover .gallery-zoom-icon {
  transform: scale(1);
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(4, 13, 23, 0.94);
  backdrop-filter: blur(10px);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.is-open {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  background: transparent;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  position: relative;
  animation: modalFadeIn 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.lightbox-img-wrap {
  width: 100%;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.lightbox-img-wrap img {
  max-width: 90vw;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  display: block;
}

.lightbox-close {
  position: fixed;
  top: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 100000;
}

.lightbox-close:hover {
  background: #dc2626;
  border-color: #dc2626;
  transform: scale(1.05);
}

nav ul li a.active-link {
  color: var(--accent) !important;
  font-weight: 700;
}

@media (max-width: 768px) {
  .gallery-hero {
    padding: 54px 0 44px;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr));
    gap: 18px;
    padding: 32px 0 60px;
  }

  .gallery-card {
    height: 240px;
    border-radius: 14px;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px 0 60px;
  }

  .gallery-card {
    height: 220px;
  }

  .lightbox-close {
    top: max(16px, env(safe-area-inset-top));
    right: max(16px, env(safe-area-inset-right));
    width: 40px;
    height: 40px;
  }
}
