/* ===== Portfolio Page Styles ===== */

.portfolio-page {
  padding: var(--section-padding);
  background: var(--white);
}

.portfolio-page-filters {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.portfolio-full-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.portfolio-full-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--off-white-2);
  aspect-ratio: 3 / 4;
}

.portfolio-full-item .portfolio-item-inner {
  position: absolute;
  inset: 0;
}

.portfolio-full-item .portfolio-item-inner img,
.portfolio-full-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s ease;
}

.portfolio-full-item:hover img {
  transform: scale(1.05);
}

.portfolio-full-item .portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,26,26,0.88) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.35s ease;
  display: flex;
  align-items: flex-end;
  padding: 28px;
}

.portfolio-full-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-full-item .portfolio-info h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: 4px;
}

.portfolio-full-item .portfolio-info span {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--taupe-light);
}

/* Placeholder colors per category */
.ph-res { background: linear-gradient(135deg, #C8C2BB, #A09890); }
.ph-com { background: linear-gradient(135deg, #B0ABA4, #8C8279); }
.ph-int { background: linear-gradient(135deg, #CFC9C2, #AEA89F); }
.ph-urb { background: linear-gradient(135deg, #A0A89A, #7A8870); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(10, 10, 10, 0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox-inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox-inner img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: -48px;
  right: 0;
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.3s;
}

.lightbox-close:hover {
  color: white;
}

.lightbox-caption {
  margin-top: 16px;
  text-align: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}

/* Hidden items */
.portfolio-full-item.hidden {
  display: none;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .portfolio-full-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .portfolio-full-grid {
    grid-template-columns: 1fr;
  }
}

/* CTA band (matches home.css .cta-band, kept local since this page doesn't load home.css) */
.cta-band {
  padding: 100px 0;
  background: var(--dark);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(140,130,121,0.12) 0%, transparent 70%);
}
.cta-band .section-label {
  color: var(--taupe-light);
}
.cta-band h2 {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  color: var(--white);
  margin-bottom: 20px;
  position: relative;
}
.cta-band p {
  color: rgba(255,255,255,0.45);
  font-size: 1rem;
  font-weight: 300;
  margin-bottom: 44px;
  position: relative;
}
.cta-band .btn {
  position: relative;
}
