/* MHS: tabfilter boven de fotogalerij op /impressie-vloeren/ */

.vg-gallery-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 34px 0 42px;
  font-family: "Poppins", sans-serif;
}

/* Elementors reset.css kleurt elke button roze (#cc3366) op :hover en :focus.
   Alle statussen hieronder zetten daarom expliciet background, border en color. */
.vg-gallery-filter .vg-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 20px;
  border: 1px solid #dce3e9;
  border-radius: 8px;
  background-color: #fff;
  color: #333;
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}

.vg-gallery-filter .vg-filter-btn:hover,
.vg-gallery-filter .vg-filter-btn:focus {
  background-color: #eef7fc;
  border-color: #028fc8;
  color: #028fc8;
  text-decoration: none;
}

.vg-gallery-filter .vg-filter-btn.is-active,
.vg-gallery-filter .vg-filter-btn.is-active:hover,
.vg-gallery-filter .vg-filter-btn.is-active:focus {
  background-color: #028fc8;
  border-color: #028fc8;
  color: #fff;
}

.vg-gallery-filter .vg-filter-btn.is-active:hover {
  background-color: #0277a6;
  border-color: #0277a6;
}

.vg-gallery-filter .vg-filter-btn:focus-visible {
  outline: 2px solid #0277a6;
  outline-offset: 2px;
}

.vg-gallery-filter .vg-filter-count {
  min-width: 20px;
  padding: 2px 7px;
  border-radius: 999px;
  background-color: #eef1f4;
  color: #6b7885;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  transition: background-color .2s, color .2s;
}

.vg-gallery-filter .vg-filter-btn:hover .vg-filter-count,
.vg-gallery-filter .vg-filter-btn:focus .vg-filter-count {
  background-color: #d6ecf8;
  color: #0277a6;
}

.vg-gallery-filter .vg-filter-btn.is-active .vg-filter-count {
  background-color: rgba(255, 255, 255, .22);
  color: #fff;
}

/* Uitgefilterde foto's uit de grid halen zodat de rest terugvloeit. */
.e-gallery-item.vg-hidden {
  display: none !important;
}

/* Elementor zet de containerhoogte vast via een aspect-ratio-variabele; bij een
   wisselend aantal zichtbare foto's moet die hoogte weer meebewegen. */
.elementor-widget-gallery .e-gallery-container.vg-filterable {
  height: auto !important;
  padding-bottom: 0 !important;
}

@media (max-width: 767px) {
  .vg-gallery-filter {
    gap: 8px;
    margin: 26px 0 32px;
  }

  .vg-gallery-filter .vg-filter-btn {
    padding: 9px 15px;
    font-size: 14px;
  }
}
