/*
 * Public gallery filters. Gallery Manager is the single source of truth.
 * The theme's old category controls are suppressed immediately and then
 * replaced by frontend.js with the live AZMOON Gallery Manager categories.
 */
.azmoon-filter-row > .azmoon-filters,
.azmoon-filter-row > .azmoon-show-all {
  display: none !important;
}

.azmoon-filter-row.azgm-filter-row-ready,
.azgm-generated-filter-host {
  display: flex;
  justify-content: center;
  width: 100%;
}

.azgm-front-filters {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 26px;
  flex-wrap: wrap;
  width: 100%;
}

.azgm-front-filters-loading {
  min-height: 29px;
}

.azgm-front-filter {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 0 0 7px;
  margin: 0;
  cursor: pointer;
  opacity: .72;
  white-space: nowrap;
}

.azgm-front-filter:hover { opacity: 1; }
.azgm-front-filter.is-active,
.azgm-front-filter.active {
  opacity: 1;
  border-bottom-color: currentColor;
}

.azgm-front-filter-count {
  position: relative;
  top: -.35em;
  margin-inline-start: 7px;
  font-size: .48em;
  line-height: 1;
  letter-spacing: 0;
  opacity: .7;
}

.azgm-filtered-out { display: none !important; }

@media (max-width: 700px) {
  .azmoon-filter-row.azgm-filter-row-ready,
  .azgm-generated-filter-host {
    justify-content: flex-start;
  }
  .azgm-front-filters {
    justify-content: flex-start;
    gap: 16px;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }
  .azgm-front-filter { flex: 0 0 auto; }
}
