.gallery-container {
  padding: 120px 2rem 4rem;
  max-width: 1400px;
  margin: 0 auto;
}

.gallery-container h1 {
  text-align: center;
  color: var(--primary);
  margin-bottom: 3rem;
  font-size: 2.5rem;
  position: relative;
}

.gallery-container h1::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 1rem;
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-caption {
  position: absolute;
  text-align: left;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: var(--white);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-caption {
  transform: translateY(0);
}

.gallery-caption h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.gallery-caption p {
  font-size: 0.9rem;
  opacity: 0.9;
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
  }

  .gallery-item img {
    height: 250px;
  }

  .gallery-caption {
    transform: translateY(0);
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
  }
}

/* Navbar Style for Gallery */
nav {
  background: #0a2463; /* Primary Blue */
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  top: 0;
}

nav .logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

nav .logo-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

nav .logo-text h1 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--white);
}

nav .logo-text span {
  font-size: 0.8rem;
  color: var(--white);
  opacity: 0.8;
}

nav .btn.primary {
  background: #1c77c3;
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 20px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

nav .btn.primary:hover {
  background: #0a2463;
}
