.project-gallery-showcase {
  text-align: center;
}

.project-gallery-showcase .filters {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.project-gallery-showcase .filter-group {
  display: block;
  margin: 0;
}

.project-gallery-showcase .filter-desc {
  margin: 0 0 20px;
}

.project-gallery-showcase .taxonomy-filter {
  display: flex;
  gap: 20px;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

.project-gallery-showcase .taxonomy-filter-select-wrap {
  display: none;
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.project-gallery-showcase .taxonomy-filter-select-wrap::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 18px;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

.project-gallery-showcase .taxonomy-filter-select {
  display: none;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 10px 42px 10px 14px;
  border: 1px solid #ddd;
  border-radius: 999px;
  background: #fff;
  color: inherit;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.project-gallery-showcase .taxonomy-filter li {
  cursor: pointer;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
}

.project-gallery-showcase .taxonomy-filter li .img-wrapper,
.project-gallery-showcase .taxonomy-filter li .img-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 8px;
  border: 1px solid #ddd;
  border-radius: 50%;
  overflow: hidden;
}

.project-gallery-showcase .taxonomy-filter li .img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-gallery-showcase .taxonomy-filter li.all-lnk .img-empty::before {
  content: "";
  width: 12px;
  height: 7px;
  border-left: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg) translateY(-1px);
  opacity: 0;
}

.project-gallery-showcase .taxonomy-filter li.active .img-wrapper,
.project-gallery-showcase .taxonomy-filter li.active .img-empty {
  border-color: #a0917c;
  color: #a0917c;
}

.project-gallery-showcase .taxonomy-filter li.active.all-lnk .img-empty::before {
  opacity: 1;
}

.project-gallery-showcase .term-label {
  display: block;
  font-size: 14px;
}

.project-gallery-wrap {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.project-gallery-item {
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
  transition-delay: var(--gallery-delay, 0ms);
}

.project-gallery-item.gallery-visible {
  opacity: 1;
  transform: translateY(0);
}

.project-gallery-item a {
  display: block;
}

.project-gallery-item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.project-gallery-item a:hover img {
  transform: scale(1.04);
}

.project-gallery-grid.loading {
  opacity: 0.55;
  pointer-events: none;
}

.project-gallery-no-record {
  padding: 20px 0;
}

.project-gallery-load-more {
  margin-top: 30px;
}

@media (max-width: 767px) {
  .project-gallery-showcase .filters {
    flex-direction: column;
    gap: 20px;
  }

  .project-gallery-showcase .filter-group {
    width: 100% !important;
  }

  .project-gallery-showcase .taxonomy-filter {
    display: none !important;
  }

  .project-gallery-showcase .taxonomy-filter-select-wrap,
  .project-gallery-showcase .taxonomy-filter-select {
    display: block;
  }

  .project-gallery-wrap {
    grid-template-columns: 1fr;
  }
}
