/* Portfolio gallery */
.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}
.pf-btn {
  padding: 8px 18px;
  border: 1.5px solid #d4b896;
  background: transparent;
  color: #5a3e2b;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
  transition: background .18s, color .18s;
}
.pf-btn:hover,
.pf-btn.active {
  background: #c8a96e;
  border-color: #c8a96e;
  color: #fff;
}
.portfolio-count {
  font-size: 14px;
  color: #888;
  margin-bottom: 24px;
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 900px) {
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .portfolio-grid { grid-template-columns: 1fr; }
}
.pg-item {
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
  background: #fff;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform .18s, box-shadow .18s;
}
.pg-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,.13);
}
.pg-item[hidden] { display: none; }
.pg-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}
.pg-body {
  padding: 12px 14px 14px;
  flex: 1;
}
.pg-title {
  font-size: 15px;
  font-weight: 600;
  color: #2c1a0e;
  margin: 0 0 5px;
  line-height: 1.3;
}
.pg-desc {
  font-size: 13px;
  color: #666;
  margin: 0;
  line-height: 1.5;
}

/* Lightbox */
.lb-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.88);
  z-index: 9000;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.lb-overlay.open { display: flex; }
.lb-img-wrap {
  position: relative;
  max-width: 90vw;
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 4px;
  display: block;
}
.lb-caption {
  color: #fff;
  text-align: center;
  margin-top: 14px;
  font-size: 15px;
  max-width: 600px;
  padding: 0 16px;
}
.lb-caption strong { display: block; font-size: 17px; margin-bottom: 4px; }
.lb-close {
  position: fixed;
  top: 18px; right: 22px;
  background: none;
  border: none;
  color: #fff;
  font-size: 34px;
  cursor: pointer;
  line-height: 1;
  z-index: 9001;
}
.lb-prev, .lb-next {
  position: fixed;
  top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.15);
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  padding: 12px 16px;
  border-radius: 4px;
  z-index: 9001;
  transition: background .15s;
}
.lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,.28); }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }
@media (max-width: 600px) {
  .lb-prev { left: 4px; }
  .lb-next { right: 4px; }
}
