/* Shared project layout. Special cases live in project-*.css. */
/* Paragraphs retain the project's original outer spacing. */
.project-desc p { margin: 0 0 1.1em; }
.project-desc p:last-child { margin-bottom: 0; }
.page-project .section-title {
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin: 40px 0 18px;
  opacity: .7;
}
.project-subtitle {
  margin: 0 0 24px;
  color: var(--muted);
  font-style: italic;
  line-height: 1.6;
}
/* Keep portrait and landscape video inside the screen without cropping. */
.page-project .media video {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 80vh;
  max-height: 80svh;
  object-fit: contain;
}
.drawing-document { margin: 0; }
.drawing-document img { width: 100%; height: auto; display: block; }
.drawing-document figcaption { padding: 12px 14px; font-size: 12px; }
.drawing-document a { color: var(--text); text-underline-offset: 3px; }
:root {
  --maxw: 1100px;
}

.logo {
  width: clamp(64px,8vw,120px);
}

nav {
  position: fixed;
  top: 22px;
  right: 18px;
  z-index: 20;
  gap: 20px;
  font-size: 13px;
  letter-spacing: .12em;
}

main {
  display: flex;
  justify-content: center;
  padding: 140px 18px 100px;
}

.content {
  width: min(var(--maxw),100%);
}

.page-title {
  font-size: clamp(28px,4vw,44px);
}

.project-desc {
  color: var(--muted);
}

/* Narrative blocks live in the image sequence and span both gallery columns. */
.gallery-text {
  width: 100%;
  max-width: 72ch;
  padding: clamp(22px, 4vw, 46px) 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.gallery-text h2 {
  margin: 0 0 16px;
  color: var(--text);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.gallery-text p { margin: 0 0 1.1em; }
.gallery-text p:last-child { margin-bottom: 0; }
.gallery-text ol {
  columns: 2;
  column-gap: 36px;
  padding-left: 1.35em;
  margin: 24px 0 0;
}
.gallery-text li {
  break-inside: avoid;
  padding-left: 4px;
  margin: 0 0 1.1em;
  line-height: 1.65;
}
@media(max-width:740px) {
  .gallery-text { padding: 24px 0; }
  .gallery-text ol { columns: 1; }
}

.back {
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  opacity: .7;
}

.back:hover {
  opacity: 1;
}

.gallery {
  display: grid;
  gap: 20px;
}

.media {
  border: 1px solid rgba(0,0,0,.12);
}

.full {
  grid-column: 1/-1;
}

