/* Gallery Page Styles */
.gallery-page {
  padding: 2rem 1rem;
  max-width: 1400px;
  margin: 0 auto;
}

.gallery-intro {
  text-align: center;
  margin-bottom: 2.5rem;
}

.gallery-intro h1 {
  font-size: 2.5rem;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.gallery-intro .subheading {
  font-size: 1.1rem;
  color: #7f8c8d;
  max-width: 700px;
  margin: 0 auto;
}

/* Filter Buttons */
.filter-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.filter-btn {
  padding: 0.75rem 1.5rem;
  background: #ecf0f1;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  color: #34495e;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  background: #bdc3c7;
}

.filter-btn.active {
  background: #3498db;
  color: white;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  aspect-ratio: 4/3;
}

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

.gallery-item:hover img {
  transform: scale(1.05);
}

.overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.7);
  color: white;
  padding: 1.5rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.gallery-item:hover .overlay {
  transform: translateY(0);
}

.overlay h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.overlay p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .filter-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-intro h1 {
    font-size: 2rem;
  }
  
  .gallery-item {
    aspect-ratio: 3/2;
  }
}