/* ---------- HERO SECTION ---------- */
.gallery-hero-v2 {
  height: 60vh;
  background: linear-gradient(to right, #002b5b, #0056b3);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  padding: 20px;
}

.gallery-hero-v2 h1 {
  font-size: 3rem;
  margin-bottom: 15px;
  font-weight: 700;
}

.gallery-hero-v2 p {
  font-size: 1.2rem;
  color: #d0e6ff;
}

/* ---------- GALLERY SHOWCASE ---------- */
.gallery-showcase {
  padding: 80px 6%;
  background: #f8faff;
}

.gallery-header {
  text-align: center;
  margin-bottom: 50px;
}

.gallery-header h2 {
  font-size: 2.4rem;
  color: #03254c;
  font-weight: 700;
}

.gallery-header p {
  color: #666;
  font-size: 1rem;
}

/* ---------- GALLERY GRID ---------- */
.gallery-grid-v2 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  justify-content: center;
  align-items: stretch;
}

.gallery-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  transform: translateY(40px);
  opacity: 0;
  transition: all 0.8s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  background: #fff;
}

.gallery-card.show {
  transform: translateY(0);
  opacity: 1;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.6s ease;
}

.gallery-card:hover img {
  transform: scale(1.15);
  filter: brightness(0.75);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0));
  color: #fff;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay h3 {
  font-size: 1.2rem;
  letter-spacing: 0.5px;
  font-weight: 600;
}

/* ---------- LIGHTBOX ---------- */
.lightbox-v2 {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.lightbox-v2 img {
  max-width: 90%;
  max-height: 85vh;
  border-radius: 10px;
  animation: zoomIn 0.4s ease;
}

.lightbox-v2 .close {
  position: absolute;
  top: 25px;
  right: 40px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  transition: 0.3s;
}

.lightbox-v2 .close:hover {
  color: #00aaff;
}

/* ---------- ANIMATIONS ---------- */
@keyframes zoomIn {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .gallery-grid-v2 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .gallery-hero-v2 h1 {
    font-size: 2.2rem;
  }

  .gallery-hero-v2 p {
    font-size: 1rem;
  }

  .gallery-showcase {
    padding: 60px 5%;
  }

  .gallery-header h2 {
    font-size: 2rem;
  }

  .gallery-grid-v2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .gallery-grid-v2 {
    grid-template-columns: 1fr;
  }
}
