body { background: #fff; }

/* ── MAIN ── */
.main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 100px;
  padding: 0 0 100px;
}

/* ── PROJECT HERO ── */
.project-hero {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
  max-width: 1280px;
  padding: 0 32px;
}

.project-hero-img { position: relative; }

.project-hero-img img {
  display: block;
  width: 100%;
  height: auto;
}

.project-intro {
  display: flex;
  flex-direction: column;
  gap: 20px;
  color: #000;
  font-family: 'Poppins', sans-serif;
}

.project-meta-line {
  display: flex;
  gap: 10px;
  font-size: 16px;
  line-height: 27.2px;
  text-transform: capitalize;
  white-space: pre;
}

.project-title {
  font-weight: 400;
  font-size: 64px;
  line-height: 72px;
}

.project-title span {
  display: block;
  font-weight: 200;
  letter-spacing: -1.079px;
}

.project-desc {
  font-size: 18px;
  line-height: 28px;
}

.project-credit {
  font-weight: 300;
  font-size: 16px;
  line-height: 20px;
}

/* ── GALLERY ── */
.gallery {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 100px;
  width: 100%;
  max-width: 1280px;
  padding: 0 48px;
}

.gallery-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.gallery-img {
  width: 100%;
  height: 680px;
  object-fit: cover;
}

.gallery-caption {
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  font-size: 24px;
  line-height: 36px;
  letter-spacing: -0.513px;
  color: #080808;
  text-align: center;
}

.project-awards {
  font-style: italic;
  font-size: 16px;
  line-height: 24px;
}

.gallery-credit {
  display: block;
  margin-top: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.2px;
  color: #78716c;
}

.gallery-award {
  position: absolute;
  top: 14px;
  left: 201px;
  font-family: 'Poppins', sans-serif;
  font-style: italic;
  font-size: 16px;
  line-height: 27.2px;
  color: #000;
}

.gallery-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  height: 680px;
}

.gallery-split-text {
  background: #faf9f7;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 0 64px 32px;
  font-family: 'Poppins', sans-serif;
  color: #000;
}

.gallery-split-title {
  font-weight: 300;
  font-size: 24px;
  line-height: 36px;
}

.gallery-split-body {
  font-size: 16px;
  line-height: 24px;
  max-width: 400px;
}

.gallery-split img {
  width: 100%;
  height: 680px;
  object-fit: cover;
  background: #f5f5f5;
}

/* Drawings: shown whole, at a modest size so small images stay sharp */
.gallery-img--contain {
  height: auto;
  background: #fff;
}

.gallery-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  width: 100%;
}

.gallery-pair img {
  width: 100%;
  height: 680px;
  object-fit: cover;
}

.gallery-quote {
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  font-size: 24px;
  line-height: 40.8px;
  color: #000;
  text-align: center;
}

/* ── EXISTING CONDITIONS STRIP ── */
.existing {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  max-width: 1280px;
  padding: 0 48px;
}

.existing-caption { font-size: 16px; line-height: 24px; }

.existing-viewport {
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}

.existing-viewport.is-dragging { cursor: grabbing; }

.existing-track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.existing-group {
  display: flex;
  gap: 2px;
  padding-right: 2px;
}

.existing-group img {
  display: block;
  height: 480px;
  width: auto;
  max-width: none;
  -webkit-user-drag: none;
}

/* ── MORE WORKS CAROUSEL ── */
.more {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding-bottom: 80px;
}

.more-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  padding: 0 32px;
}

.more-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 48px;
  line-height: 72px;
  letter-spacing: -0.36px;
  color: #080808;
}

.more-controls {
  display: flex;
  gap: 8px;
}

.more-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.more-btn:disabled { opacity: 0.4; cursor: default; }

.more-track {
  display: flex;
  gap: 40px;
  padding: 0 32px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 32px;
  scrollbar-width: none;
}

.more-track::-webkit-scrollbar { display: none; }

.more-card {
  flex: 0 0 640px;
  display: flex;
  flex-direction: column;
  gap: 17px;
  scroll-snap-align: start;
}

.more-card img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.more-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

a.more-card {
  color: inherit;
  text-decoration: none;
}

a.more-card:hover .project-name-sm { text-decoration: underline; }

/* ── TABLET / MOBILE ── */
@media (max-width: 768px) {
  .main { padding: 0 0 64px; gap: 64px; }
  .project-hero { padding: 0 16px; gap: 24px; }
  .project-meta-line { flex-wrap: wrap; font-size: 14px; white-space: normal; }
  .project-title { font-size: 34px; line-height: 40px; }
  .project-title span { letter-spacing: -0.5px; }
  .project-desc { font-size: 16px; line-height: 26px; }
  .project-credit { font-size: 14px; }

  .gallery { padding: 0 16px; gap: 56px; }
  .gallery-item { gap: 16px; }
  .gallery-img { height: auto; }
  .gallery-caption { font-size: 18px; line-height: 26px; letter-spacing: 0; }
  .gallery-award { position: static; order: -1; align-self: flex-start; font-size: 14px; }
  .gallery-split { grid-template-columns: 1fr; height: auto; }
  .gallery-split-text { padding: 32px 24px; }
  .gallery-split-title { font-size: 20px; line-height: 30px; }
  .gallery-split img { height: auto; aspect-ratio: 4 / 3; }
  .gallery-pair { grid-template-columns: 1fr; gap: 16px; }
  .gallery-pair img { height: auto; }
  .gallery-quote { font-size: 18px; line-height: 30px; }

  .more { gap: 24px; padding-bottom: 48px; }
  .more-header { padding: 0 16px; }
  .more-title { font-size: 28px; line-height: 36px; }
  .more-btn img { width: 36px; height: 36px; }
  .more-track { padding: 0 16px; gap: 16px; scroll-padding-left: 16px; }
  .more-card { flex-basis: 80%; }
  .more-card img { height: auto; aspect-ratio: 4 / 3; }
  .existing { padding: 0 16px; gap: 16px; }
  .existing-group img { height: 240px; }
}
