/* ═══════════════════════════════════════════════════════════
   GALLERY SYSTEM - Searchable/Filterable Image Galleries
   ═══════════════════════════════════════════════════════════ */

.gallery-container {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 1rem;
}

.gallery-header {
  margin-bottom: 2rem;
}

.gallery-title {
  font-family: var(--ff-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--clr-text);
  margin-bottom: 0.5rem;
}

.gallery-subtitle {
  font-size: 1.1rem;
  color: var(--clr-text-light);
  margin-bottom: 1.5rem;
}

/* Search & Filter Bar */
.gallery-controls {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  align-items: center;
}

.search-box {
  flex: 1;
  min-width: 250px;
  padding: 0.75rem 1rem;
  border: 1px solid var(--clr-border);
  border-radius: 0.5rem;
  background: var(--clr-surface);
  color: var(--clr-text);
  font-family: var(--ff-ui);
  font-size: 1rem;
  transition: all 0.2s ease;
}

.search-box:focus {
  outline: none;
  border-color: var(--clr-accent);
  box-shadow: 0 0 0 2px rgba(200, 146, 42, 0.1);
}

.filter-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.5rem 1rem;
  border: 1px solid var(--clr-border);
  background: transparent;
  color: var(--clr-text);
  font-family: var(--ff-ui);
  font-size: 0.9rem;
  border-radius: 0.4rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  border-color: var(--clr-accent);
  color: var(--clr-accent);
}

.filter-btn.active {
  background: var(--clr-accent);
  color: var(--clr-bg);
  border-color: var(--clr-accent);
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  background: var(--clr-surface);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.gallery-item-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.gallery-item-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(14, 13, 11, 0.8);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.gallery-item-caption {
  color: var(--clr-text);
  font-size: 0.95rem;
  line-height: 1.4;
}

.gallery-item-date {
  display: block;
  font-size: 0.85rem;
  color: var(--clr-accent);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

/* Team Grid (Avatar-focused) */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.team-member {
  text-align: center;
}

.team-avatar {
  width: 150px;
  height: 150px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--clr-surface);
  border: 2px solid var(--clr-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.team-avatar svg {
  width: 100%;
  height: 100%;
}

.team-name {
  font-family: var(--ff-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--clr-text);
  margin-bottom: 0.25rem;
}

.team-role {
  font-size: 0.95rem;
  color: var(--clr-text-light);
  margin-bottom: 0.5rem;
}

.team-bio {
  font-size: 0.85rem;
  color: var(--clr-text-muted);
  line-height: 1.4;
}

/* No Results Message */
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem;
  color: var(--clr-text-muted);
  font-size: 1.1rem;
}

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

  .gallery-title {
    font-size: 1.8rem;
  }

  .gallery-controls {
    flex-direction: column;
  }

  .search-box {
    width: 100%;
    min-width: unset;
  }

  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
  }

  .team-avatar {
    width: 120px;
    height: 120px;
  }
}
