#galleryFilters {
  margin: 10px 0;
}

#galleryControls {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  margin: 15px 0;
}

#galleryControls label {
  margin-right: 6px;
}

#galleryYearFrom,
#galleryYearTo {
  width: 90px;
}

#projectsGalleryCount {
  color: #777;
  margin: 10px 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 15px;
}

.gallery-card {
  display: block;
  color: inherit;
  text-decoration: none;
  border: 1px solid #eee;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.gallery-card:hover {
  box-shadow: 0px 2px 9px 0px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
  color: inherit;
}

.gallery-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumb.no-thumb {
  font-family: "Playfair Display", serif;
  font-size: 2.5rem;
  color: #ff9800;
  background: #fef3e0;
}

.gallery-title {
  font-weight: 600;
  padding: 8px 10px 2px 10px;
  font-size: 0.95rem;
}

.gallery-meta {
  padding: 0 10px 10px 10px;
  font-size: 0.8rem;
  color: #777;
}

.gallery-meta .badge-category,
.gallery-meta .badge-type {
  display: inline-block;
  border: 1px solid #ff9800;
  border-radius: 10px;
  padding: 0px 8px;
  margin-right: 4px;
}

.gallery-rating {
  color: #ff9800;
}
