/* ===== Gallery / Projects section ===== */

.gallery1-section-area {
  overflow: hidden;
  scroll-margin-top: 120px;
}

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

.gallery-filter-btn {
  font-family: var(--ztc-family-font1);
  font-size: var(--ztc-font-size-font-s16);
  font-weight: var(--ztc-weight-bold);
  color: var(--ztc-text-text-3);
  background: transparent;
  border: 1px solid var(--ztc-border-border-2);
  border-radius: 30px;
  padding: 10px 24px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-filter-btn:hover {
  border-color: linear-gradient(126.78deg, #F1D360 0%, #F5F0D3 20%, #C8A24A 50%, #F5EDC4 71%, #F2D665 100%);
  color: linear-gradient(126.78deg, #F1D360 0%, #F5F0D3 20%, #C8A24A 50%, #F5EDC4 71%, #F2D665 100%);
}

.gallery-filter-btn.active {
  background: linear-gradient(126.78deg, #F1D360 0%, #F5F0D3 20%, #C8A24A 50%, #F5EDC4 71%, #F2D665 100%);
  border-color: linear-gradient(126.78deg, #F1D360 0%, #F5F0D3 20%, #C8A24A 50%, #F5EDC4 71%, #F2D665 100%);
  color: #fff;
}

/* Masonry via Muuri (MIT licensed, self-hosted in assets/js/plugins).
   Muuri absolutely positions each .gallery-item and animates position
   changes when filtering, so the container needs position: relative and
   each item needs position: absolute + an explicit width. */
.gallery-grid {
  position: relative;
}

.gallery-item {
  position: absolute;
  display: block;
  width: 25%;
  padding: 10px;
  box-sizing: border-box;
  z-index: 1;
}

.gallery-item.muuri-item-hidden {
  z-index: 0;
  pointer-events: none;
}

.gallery-item a {
  position: relative;
  display: block;
  border-radius: 10px;
  overflow: hidden;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;
}

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.75) 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 16px;
}

.gallery-item a:hover .gallery-overlay {
  opacity: 1;
}

.gallery-zoom {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(126.78deg, #F1D360 0%, #F5F0D3 20%, #C8A24A 50%, #F5EDC4 71%, #F2D665 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transform: translateY(-10px);
  opacity: 0;
  transition: all 0.35s ease;
}

.gallery-item a:hover .gallery-zoom {
  transform: translateY(0);
  opacity: 1;
}

.gallery-cat {
  display: inline-block;
  background: linear-gradient(126.78deg, #F1D360 0%, #F5F0D3 20%, #C8A24A 50%, #F5EDC4 71%, #F2D665 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 6px 12px;
  border-radius: 30px;
  transform: translateY(10px);
  opacity: 0;
  transition: all 0.35s ease 0.05s;
}

.gallery-item a:hover .gallery-cat {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 991px) {
  .gallery-item {
    width: 50%;
  }
}

@media (max-width: 575px) {
  .gallery-item {
    width: 100%;
  }
}
