.f3dp-gallery .gallery-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 0 24px;
  padding: 0;
}
.f3dp-gallery .gallery-filter {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #d4dce3;
  border-radius: 6px;
  background: #fff;
  color: #142638;
  font: inherit;
  font-size: 14px;
  line-height: 1.35;
  cursor: pointer;
  transition: background-color .15s, border-color .15s;
}
.f3dp-gallery .gallery-filter:hover { border-color: #b29113; }
.f3dp-gallery .gallery-filter[aria-pressed="true"] {
  border-color: #ffd726;
  background: #ffd726;
  color: #132535;
}
.f3dp-gallery .gallery-filter:focus-visible,
.f3dp-gallery .gallery-card:focus-visible {
  outline: 3px solid #0872b4;
  outline-offset: 4px;
}
.f3dp-gallery .gallery-filter__count {
  flex-shrink: 0;
  min-width: 23px;
  padding: 2px 5px;
  border-radius: 3px;
  background: #edf1f4;
  color: #435568;
  font-size: 12px;
  line-height: 1.35;
}
.f3dp-gallery .gallery-filter[aria-pressed="true"] .gallery-filter__count {
  background: #ffffff8c;
  color: #132535;
}
.f3dp-gallery .gallery-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}
.f3dp-gallery .gallery-card {
  display: block;
  width: 200px;
  height: 200px;
  overflow: hidden;
  border-radius: 8px;
  cursor: zoom-in;
}
.f3dp-gallery .gallery-card[hidden] { display: none !important; }
.f3dp-gallery .gallery-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 575px) {
  .f3dp-gallery .gallery-filter {
    flex: 0 0 calc(50% - 5px);
    min-width: 0;
    min-height: 48px;
    gap: 4px;
    padding: 8px;
    border-radius: 6px;
    font-size: 13px;
  }
  .f3dp-gallery .gallery-filter__count {
    min-width: 20px;
    padding: 2px 4px;
    font-size: 11px;
  }
  .f3dp-gallery .gallery-grid { gap: 12px; }
  .f3dp-gallery .gallery-card {
    width: calc(50% - 6px);
    height: auto;
    aspect-ratio: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .f3dp-gallery .gallery-filter { transition: none; }
}
