body {
  overflow-y: hidden;
}
.gallery-hero {
  background-size: cover;
  background-position: center;
  padding: 100px 0;
  text-align: center;
  padding-top: 160px;
}

.gallery-hero h1 {
  font-size: 3rem;
  margin-bottom: 10px;
  color: #fff;
}

.gallery-hero p {
  font-size: 1.2rem;
  opacity: 0.9;
  color: #fff;
}

.gallery-section {
  background-color: #f9fbfd;
  padding: 60px 0;
}

.gallery-filters {
  margin-bottom: 30px;
}

.filter-btn {
  background: #fff;
  border: 1px solid #014AB9;
  color: #014AB9;
  padding: 8px 20px;
  margin: 0 5px 10px;
  border-radius: 25px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  background: #014AB9;
  color: #fff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  justify-content: start;
}

.gallery-item {
  position: relative;
  aspect-ratio: 4 / 3; /* Keeps all items same height/width proportion */
  overflow: hidden;
  border-radius: 8px;
}

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

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

.gallery-item .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .overlay {
  opacity: 1;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.pagination a,
.pagination span {
  padding: 8px 14px;
  border: 1px solid #014AB9;
  border-radius: 4px;
  color: #014AB9;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.pagination a:hover,
.pagination .current {
  background-color: #014AB9;
  color: white;
}

.sub-categories {
  margin-top: 30px;
}