/*
 * Portfolio filter bar and pagination.
 *
 * The legacy page filtered with isotope and had no pagination, so these two
 * controls have no styles in the ported stylesheets. Kept in its own file so
 * the vendored CSS stays byte-identical to the originals; loaded last.
 *
 * Palette follows the site: brand blue #0067d3, accent yellow #fddb27.
 */

.portfolio_filter {
  margin: 0 0 34px;
}

.portfolio_filter ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.portfolio_filter button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border: 1px solid #dfe4ec;
  border-radius: 30px;
  background: #fff;
  color: #364046;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.portfolio_filter button:hover {
  border-color: #0067d3;
  color: #0067d3;
}

.portfolio_filter button.active {
  border-color: #0067d3;
  background: #0067d3;
  color: #fff;
}

.portfolio_filter button .count {
  min-width: 22px;
  padding: 1px 6px;
  border-radius: 20px;
  background: #f0f3f9;
  color: #5b6b83;
  font-size: 11px;
}

.portfolio_filter button.active .count {
  background: rgba(255, 255, 255, 0.24);
  color: #fff;
}

.portfolio_sec {
  transition: opacity 0.2s ease;
}

/* Tiles keep a consistent height whatever the screenshot's aspect ratio. */
.portfolio_sec .gallery_list img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: top center;
}

.portfolio_pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 34px;
}

.portfolio_pagination .btn {
  min-width: 110px;
  border: 1px solid #0067d3;
  background: #0067d3;
  color: #fff;
  font-weight: 600;
}

.portfolio_pagination .btn:disabled {
  border-color: #dfe4ec;
  background: #f0f3f9;
  color: #98a4b5;
  cursor: not-allowed;
}

.portfolio_pagination .pages {
  color: #364046;
  font-size: 14px;
  font-weight: 600;
}

.portfolio_pagination .pages .total {
  color: #8695ab;
  font-weight: 400;
}

@media (max-width: 767px) {
  .portfolio_filter {
    margin-bottom: 24px;
  }

  .portfolio_filter ul {
    gap: 8px;
  }

  .portfolio_filter button {
    padding: 7px 14px;
    font-size: 13px;
  }

  .portfolio_sec .gallery_list img {
    height: 200px;
  }

  .portfolio_pagination {
    gap: 12px;
  }

  /* Previous / Next side by side, the counter on its own line beneath. */
  .portfolio_pagination .pages {
    order: 3;
    width: 100%;
    text-align: center;
  }

  .portfolio_pagination .btn {
    min-width: 0;
    flex: 1 1 0;
    max-width: 160px;
  }
}
