/* ── Project Page Styles ── */

.project-hero {
  position: relative;
  width: 100%;
  height: 60vh;
  min-height: 400px;
  overflow: hidden;
  background: #0a0a0a;
}

.project-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.6);
}

.project-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 60px 80px;
}

.project-eyebrow {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #c9a84c;
  margin-bottom: 12px;
}

.project-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(32px, 6vw, 72px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #ffffff;
  line-height: 1;
  margin: 0 0 12px;
}

.project-year {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

.project-body {
  max-width: 800px;
  margin: 0 auto;
  padding: 80px 40px 120px;
}

.project-description {
  font-family: 'Barlow', sans-serif;
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.8;
  color: rgba(255,255,255,0.85);
  margin-bottom: 60px;
}

.project-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #c9a84c;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
  padding-bottom: 2px;
}

.project-back:hover { border-color: #c9a84c; }
.project-back::before { content: '←'; font-size: 18px; }

.project-divider {
  width: 60px;
  height: 2px;
  background: #c9a84c;
  margin: 40px 0;
}

.project-cta {
  margin-top: 60px;
  padding-top: 60px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.project-cta p {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 20px;
}

.project-cta a {
  display: inline-block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 16px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #ffffff;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.5);
  padding: 14px 32px;
  transition: all 0.3s ease;
}

.project-cta a:hover { border-color: #c9a84c; color: #c9a84c; }

/* ── Image Gallery ── */
.project-gallery {
  margin-top: 60px;
  padding-top: 60px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.project-gallery-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 20px;
}

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

.project-gallery-grid img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  cursor: pointer;
  transition: opacity 0.3s ease, transform 0.4s ease;
  filter: brightness(0.85);
}

.project-gallery-grid img:hover {
  opacity: 1;
  filter: brightness(1);
  transform: scale(1.02);
}

/* ── Lightbox ── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.95);
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  display: block;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  background: none;
  border: none;
  transition: color 0.2s ease;
}

.lightbox-close:hover { color: #c9a84c; }

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255,255,255,0.4);
  font-size: 32px;
  cursor: pointer;
  padding: 20px;
  transition: color 0.2s ease;
  font-family: 'Barlow Condensed', sans-serif;
}

.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-prev:hover,
.lightbox-next:hover { color: #c9a84c; }

.lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.3);
}

@media (max-width: 768px) {
  .project-hero-overlay { padding: 40px 24px; }
  .project-body { padding: 50px 24px 80px; }
  .project-gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .lightbox-prev { left: 4px; }
  .lightbox-next { right: 4px; }
}

/* ── Image Gallery ── */
.project-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 60px;
}

.project-gallery.gallery-2 { grid-template-columns: repeat(2, 1fr); }
.project-gallery.gallery-1 { grid-template-columns: 1fr; max-width: 600px; }

.gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  background: #111;
}

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

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

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.gallery-item:hover .gallery-item-overlay { background: rgba(0,0,0,0.35); }

.gallery-item-overlay::after {
  content: '+';
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 36px;
  font-weight: 300;
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

/* ── Lightbox ── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.95);
  align-items: center;
  justify-content: center;
}

.lightbox.active { display: flex; }

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

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 32px;
  font-weight: 300;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  transition: color 0.2s ease;
}

.lightbox-close:hover { color: #c9a84c; }

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 28px;
  color: rgba(255,255,255,0.5);
  background: none;
  border: none;
  cursor: pointer;
  padding: 20px;
  transition: color 0.2s ease;
}

.lightbox-prev:hover,
.lightbox-next:hover { color: #c9a84c; }

.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

.lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.4);
}

@media (max-width: 768px) {
  .project-gallery { grid-template-columns: repeat(2, 1fr); }
  .project-gallery.gallery-1 { grid-template-columns: 1fr; }
}

.project-description a {
  color: var(--gold);
  font-weight: 700;
  text-decoration: none;
}

.project-description a:hover {
  color: var(--gold-light);
}
