:root {
  --text: #ffffff;
  --muted: #a8a8a8;
  --border: #333333;
  --accent: #ffffff;
  --bg: #000000;
  --max-width: 1100px;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--page-bg, var(--bg));
  line-height: 1.5;
  font-weight: 200;
}

h1, h2, .site-title {
  font-family: var(--font-sans);
}

h3{
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: .8 rem;
}




a { color: inherit; text-decoration: none; }



/* Header */
.site-header {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.site-title { font-weight: 600; font-size: 1.1rem; }
.site-nav a {
  font-size: 0.95rem;
  font-family: var(--font-sans);
  color: var(--muted);
  border-bottom: 1px solid transparent;
}
.site-nav a:hover { color: var(--text); border-bottom-color: var(--text); }

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem 0rem;
}

/* Filter bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0 2rem;
}
.filter-btn {
  font-family: var(--font-sans);

  font-size: 0.85rem;
  text-transform: lowercase;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 0px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s ease;
}
.filter-btn:hover { border-color: var(--accent); color: var(--text); }
.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
}

/* Project grid */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem 1.5rem;
}
.project-block { display: block; }
.project-thumb {
  width: 100%;
  aspect-ratio: 4.8 / 3;
  background-size: cover;
  background-position: center;
  background-color: #f2f2f2;
  border-radius: 0px;
  margin-bottom: 0.6rem;
  object-fit: cover;
}
.project-thumb-empty { background: repeating-linear-gradient(45deg, #f2f2f2, #f2f2f2 10px, #ebebeb 10px, #ebebeb 20px); }
.project-info h2 {font-size: 1rem; font-weight: 600; margin: 0 0 0.15rem; }
.project-info p { font-family: var(--font-sans); margin: 0.1rem 0; font-size: 0.85rem; color: var(--muted); }
.project-info .project-tools { font-style: italic; font-family: var(--font-serif); font-size: .8rem;}

.empty-state { color: var(--muted); margin-top: 2rem; }

/* Project detail page */
.project-meta  { margin-top: 0; font-family: var(--font-sans); font-weight: 200}

.project-body p,
.project-body li {
    text-align: left;

}

.project-body intro,
.project-body intro p {
  text-align: center;
  font-size: 1.1rem;

}

.project-body essay,
.project-body essay p {
  text-align: left;
  font-family: var(--font-serif);

}

.project-body p { margin: 1rem 0; }
.project-tools {font-style: italic; }
.back-link { margin-top: 0rem; padding-left: 1rem;}
.back-link a:hover { color: var(--text); }


intro {
  margin: 0;
  font-family: var(--font-serif);
  color: var(--text);
  background: var(--page-bg, var(--bg));
  line-height: 1.5;
}

.project-page {
  font-weight: 400;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  
}

.project-body img {
  max-width: 580px;
  border-radius: 0px;
  display: block;
  margin: 1rem auto;
    max-width: 100%;

    
}



.media-embed { margin: 1.5rem 0; }
.media-embed iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  border-radius: 4px;
}
.caption {
  font-size: 0.85rem;
  margin-top: 0.4rem;
  font-family: var(--font-sans);
  text-align: center;
}


.image-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

/* Info page */
.page-content {
  max-width: 700px;
  margin: 0 auto;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Footer */
.site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.1rem 2rem;
  font-size: 0.95rem;
}

h1 .project-year,
h2 .project-year {
  font-weight: 20;
}

.project-body .caption {
  text-align: center;
}

#back-to-top {
  display: none;
}

.info-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  align-items: flex-start;
  max-width: 1000px;
  margin: 0 auto;
  padding-top: 3rem;
}

.info-photo {
  width: 280px;
  flex: 1 1 280px;
  border-radius: 0px;
  padding-top: 1.5rem;
}

.info-text {
  flex: 3 1 320px;
  min-width: 280px;
}
@media (max-width: 400px) {
  .info-layout {
    flex-direction: column;
  }
  .info-photo {
    width: 100%;
  }
}

.video {
  max-width: 100%;
  height: auto;
  display: block;
  justify-content: center;
  margin: 1rem auto;
 
}


.updates {
  max-width: 550px;
  margin: 10 auto;
}

.project-body a,
.info-text a,
.page-content a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: var(--muted);
}

.project-body a:hover,
.info-text a:hover,
.page-content a:hover {
  text-decoration-color: var(--text);
}

.photo-grid {
  display: flex;
  flex-wrap: wrap;
  row-gap: 8px;
  column-gap: 6px;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  width: 95vw;
  max-width: 1500px;
  margin-left: 50%;
  transform: translateX(-50%);
  justify-content: center;
  align-items: center;
}

.photo-grid img {
  height: 250px;
  flex-grow: 1;
  flex-shrink: 1;
  flex-basis: auto;
  width: auto;
  object-fit: cover;
  border-radius: 0px;
  cursor: pointer;
  
}

.photo-grid a:only-child img {
  height: 450px;
  max-width: 100%;
}


.project-body .photo-grid img {
  margin: 0;
  max-width: none;
}

.gslide-description {
  background: #000 !important;
}
.gdesc-inner {
  padding: 1rem !important;
}
.gslide-title {
  font-family: var(--font-serif) !important;
  color: #fff !important;
  font-size: 1rem !important;
  font-weight: 400 !important;
}

.video-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.5rem 0;
  justify-content: center;
  align-items: center;

}
.video-row {
  display: flex;
  gap: 1rem;
  height: 320px; 
  align-items: center;

}
.video-row.hz-pair {
  height: 220px; 
  display: flex;
  gap: 1rem;
  align-items: center;
}


.video-tile {
  position: relative;
  height: 100%;
}
.video-tile video {
  height: 100%;
  width: auto;
  max-width: 100%;
  display: block;
  border-radius: 2px;
  background: #000;
}

.video-expand {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  z-index: 2;
}
.video-expand:hover {
  background: rgba(0, 0, 0, 0.85);
}
@media (max-width: 500px) {
  .video-grid {
    grid-template-columns: 1fr;
  }
}