

/* Page header */
.page-header {
  text-align: center;
   margin-top: 100px;
  padding: 80px 20px 40px;
  background: linear-gradient(135deg, var(--primary), #333);
  color: #fff;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.page-header p {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* Sticky filter nav */
.gallery-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 15px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.filter-btn {
  padding: 10px 20px;
  border: none;
  background: #f1f1f1;
  border-radius: 25px;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  color: #fff;
}

/* Gallery Grid Layout */
.gallery-container {
  columns: 3 300px;
  column-gap: 20px;
  max-width: 1200px;
  margin: 50px auto;
  padding: 0 20px;
}

.photo {
  break-inside: avoid;
  margin-bottom: 20px;
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.photo.hide {
  opacity: 0;
  transform: scale(0.9);
  display: none;
}

.photo img {
  width: 350px;
  height: 300px;
  border-radius: 10px;
  display: block;
  transition: transform 0.3s ease;
}

.photo img:hover {
  transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 768px) {
  .gallery-container {
    columns: 2 200px;
  }
  .page-header {
    margin-top: 0px;
  }
  .photo img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  transition: transform 0.3s ease;
}
}

@media (max-width: 480px) {
  .gallery-container {
    columns: 1 100%;
  }
}
