/* ── Reset & Base ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Forum", serif;
  background: #ffffff;
  color: #111111;
  min-height: 100vh;
}

/* ── Pages ────────────────────────────────────── */
.page {
  display: none;
  min-height: 100vh;
  padding: 0 40px 80px;
}
.page.active { display: block; }

/* ── Header ───────────────────────────────────── */
header {
  padding: 28px 0 40px;
}

.site-name {
  font-family: "Ingrid Darling", cursive;
  font-size: 3.0rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  color: #111;
  cursor: pointer;
  transition: color 0.2s ease;
}
.site-name:hover {
  text-decoration: none;
  color: #c7b73e;
}

/* ── Home Grid ────────────────────────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 40px 32px;
}

.card {
  cursor: pointer;
}

.card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s ease;
}
.card:hover img { opacity: 0.82; }

.card-title {
  margin-top: 10px;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
}
.card-year {
  font-size: 0.82rem;
  color: #888;
  margin-top: 3px;
}

/* ── Project Page ─────────────────────────────── */
.project-content {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 60px;
  align-items: start;
}

.project-images {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.project-images img {
  width: 100%;
  display: block;
}

.project-text h2 {
  font-size: 1.1rem;
  font-weight: normal;
  margin-bottom: 6px;
}

.project-text #project-year-display {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 20px;
}

#project-description {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #333;
  white-space: pre-line;
}

/* ── Bio Page ─────────────────────────────────── */
.bio-content {
  max-width: 560px;
  font-size: 1.0rem;
  line-height: 1.8;
  color: #333;
  margin: 0 auto;
}

/* ── Responsive ───────────────────────────────── */
@media (max-width: 700px) {
  .page { padding: 0 20px 60px; }
  .project-content {
    grid-template-columns: 1fr;
  }
}
#project-description {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #333;
  white-space: pre-line;  /* ADD THIS — makes the \n\n line break render */
}

/* ── Lightbox ─────────────────────────────────── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #2a2a2a, #5a5a5a);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.lightbox.open {
  display: flex;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  display: block;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  font-family: "Forum", serif;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.lightbox-close:hover { opacity: 1; }

.lightbox-arrows {
  display: flex;
  gap: 40px;
  margin-top: 20px;
}

.lightbox-arrow {
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
  font-family: "Forum", serif;
  padding: 0 10px;
}
.lightbox-arrow:hover { opacity: 1; }
.lightbox-arrow:disabled { opacity: 0.2; cursor: default; }

.lightbox-counter {
  font-family: "Forum", serif;
  color: #fff;
  font-size: 0.85rem;
  margin-top: 10px;
  opacity: 0.6;
  letter-spacing: 0.05em;
}

.project-images img {
  cursor: zoom-in;
}

/* ── Contact ──────────────────────────────────── */
.contact-heading {
  font-family: "Ingrid Darling", cursive;
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: #111;
}
.contact {
  margin-top: 40px;
  font-size: 0.9rem;
  line-height: 2;
}

.contact a {
  color: #111;
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact a:hover {
  color: #c7b73e;
}