/* SWFT Work Gallery — filter & sort controls */
.work-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--glass_edge, rgba(255, 255, 255, 0.12));
}

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

.work-filter-btn {
  appearance: none;
  border: 1px solid var(--glass_edge, rgba(255, 255, 255, 0.15));
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.8125rem;
  line-height: 1;
  padding: 0.625rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.work-filter-btn:hover,
.work-filter-btn:focus-visible {
  border-color: var(--white, #fff);
  outline: none;
}

.work-filter-btn.is-active,
.work-filter-btn.swft-btn.is-active {
  background: var(--green, #9fe870);
  border-color: var(--green, #9fe870);
  color: #000;
}

.work-sort {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
}

.work-sort label {
  opacity: 0.75;
  white-space: nowrap;
}

.work-sort select {
  appearance: none;
  border: 1px solid var(--glass_edge, rgba(255, 255, 255, 0.15));
  background: var(--charcoal, #141416);
  color: inherit;
  font: inherit;
  font-size: 0.8125rem;
  padding: 0.5rem 2rem 0.5rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23fff' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
}

.work-sort select:focus-visible {
  outline: 2px solid var(--green, #9fe870);
  outline-offset: 2px;
}

.gallery_list.is-filtered .gallery_item.is-hidden {
  display: none !important;
}

@media screen and (max-width: 767px) {
  .work-filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .work-filter-buttons {
    justify-content: flex-start;
  }

  .work-sort {
    justify-content: space-between;
  }
}
