#photo-gallery {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
  padding-top: 50px;
}
/* Center header text */
.gallery-header {
  text-align: center;
}

.gallery-header h2 {
  font-family: "MS Sans Serif", Tahoma, sans-serif;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: #000;
}
.filter-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 1.5rem 0;
}

.filter-buttons button {
  background-color: #c0c0c0; /* Classic Win95 gray */
  border: 2px solid #fff;
  border-right-color: #808080;
  border-bottom-color: #808080;
  padding: 6px 14px;
  font-family: "MS Sans Serif", Tahoma, sans-serif;
  font-size: 0.9rem;
  color: #000;
  cursor: pointer;
  box-shadow: inset -1px -1px 0 #fff, inset 1px 1px 0 #808080;
  transition: all 0.1s ease;
}

.filter-buttons button:hover {
  background-color: #d8d8d8;
}

.filter-buttons button:active,
.filter-buttons button.active {
  border: 2px solid #808080;
  border-right-color: #fff;
  border-bottom-color: #fff;
  background-color: #a0a0a0;
  box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #808080;
}

.filter-buttons button:focus {
  outline: 1px dotted #000;
  outline-offset: 2px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.gallery-item {
  position: relative;
  overflow: hidden;
}
.gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s ease;
}
.gallery-item:hover img {
  transform: scale(1.05);
}
.gallery-item .caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.4);
  color: white;
  padding: 0.5rem;
  font-size: 0.9rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery-item:hover .caption {
  opacity: 1;
}
