/* ── MASONRY GRID ── */
.project-grid {
  columns: 4;
  column-gap: 4px;
  padding: 4px;
}
.project-item {
  break-inside: avoid;
  margin-bottom: 4px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  background: #111;
  display: block;
}
.project-item img {
  width: 100%;
  height: auto;
  display: block;
  filter: grayscale(30%) brightness(0.78);
  transition: filter 0.35s, transform 0.35s;
}
.project-item:hover img {
  filter: grayscale(0%) brightness(1);
  transform: scale(1.04);
}
.project-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(201,168,68,0);
  transition: background 0.3s;
  pointer-events: none;
}
.project-item:hover .project-item-overlay {
  background: rgba(201,168,68,0.10);
}
.project-item-label { display: none; }

/* ── FILTER TABS ── */
.filter-tab {
  font-family: 'Nunito', Arial, sans-serif;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 8px 20px;
  border: 1px solid #d1d5db;
  color: #6b7280;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-tab:hover { border-color: #C9A844; color: #C9A844; }
.filter-tab.active { background: #C9A844; border-color: #C9A844; color: #fff; }
.project-item.hidden { display: none; }

/* ── LIGHTBOX ── */
.lb {
  position: fixed;
  inset: 0;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.lb.open { opacity: 1; pointer-events: all; }
.lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.96);
  backdrop-filter: blur(12px);
}
.lb-img-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 100px;
  z-index: 1;
}
.lb-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}
.lb-close {
  position: absolute;
  top: 24px;
  right: 28px;
  z-index: 10;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.lb-close:hover { border-color: #C9A844; background: rgba(201,168,68,0.15); }
.lb-close svg { width: 18px; height: 18px; color: #fff; }
.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.lb-nav:hover { border-color: #C9A844; background: rgba(201,168,68,0.15); }
.lb-nav:disabled { opacity: 0.2; cursor: default; pointer-events: none; }
.lb-nav svg { width: 22px; height: 22px; color: #fff; }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }
.lb-counter {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  font-family: 'Nunito', Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.4);
  white-space: nowrap;
}
.lb-category {
  position: absolute;
  bottom: 28px;
  right: 28px;
  z-index: 10;
  background: #C9A844;
  color: #fff;
  font-family: 'Nunito', Arial, sans-serif;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 4px 10px;
}

@media (max-width: 1024px) { .project-grid { columns: 3; } }
@media (max-width: 640px)  { .project-grid { columns: 2; } }
