.page-header {
  background-size: cover;
  background-position: center;
  color: white;
  padding: 6rem 2rem;
  text-align: center;
}

.header-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.header-content p {
  font-size: 1.2rem;
  opacity: 0.9;
}

.gallery-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.gallery-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.filter-btn {
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 30px;
  background: #f5f5f5;
  color: #333;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: #007bff;
  color: white;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  padding: 1rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.gallery-item:hover {
  transform: translateY(-5px);
}

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

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

.gallery-date-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.2);
  color: rgb(46, 33, 33);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  z-index: 2;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.gallery-date-badge:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
  transition: all 0.3s ease;
}

.gallery-item-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.272);
  backdrop-filter: blur(8px);
  color: white;
}

.gallery-item-caption h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 10px rgba(0, 123, 255, 0.3);
}

.gallery-item-caption p {
  font-size: 0.9rem;
  opacity: 0.9;
}

.gallery-item.hidden {
  display: none;
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
  }

  .gallery-item img {
    height: 250px;
  }

  .page-header {
    padding: 4rem 1rem;
  }

  .header-content h1 {
    font-size: 2rem;
  }

  .gallery-content {
    padding: 2rem 1rem;
  }

  .back-nav {
    display: block;
  }
}

@media (max-width: 480px) {
  .gallery-filter {
    gap: 0.5rem;
  }

  .filter-btn {
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-date-badge {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
  }
}
