/* Project detail pages — builds on ../styles.css */

.project-hero,
.project-overview,
.gallery {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.project-hero { padding-top: clamp(40px, 6vw, 72px); }

.back-link {
  display: inline-block;
  margin-bottom: clamp(40px, 6vw, 72px);
  color: var(--text-soft);
  font-size: 15px;
  font-weight: 500;
  transition: color .2s;
}
.back-link:hover { color: var(--yellow); }

.project-cat {
  margin: 0 0 14px;
  color: var(--yellow);
  font-weight: 600;
  font-size: 15px;
}

.project-hero h1 {
  font-size: clamp(56px, 9vw, 144px);
  font-weight: 900;
  line-height: .86;
  max-width: 14ch;
}

.project-intro {
  max-width: 640px;
  margin: 28px 0 0;
  color: var(--text-soft);
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.55;
}

.project-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 40px 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.project-facts div {
  padding: 16px 40px 16px 0;
  margin-right: 40px;
  border-right: 1px solid var(--line-soft);
}
.project-facts div:last-child { border-right: 0; margin-right: 0; }

.project-facts dt {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 2px;
}

.project-facts dd {
  margin: 0;
  font: 700 22px/1.1 var(--display);
  text-transform: uppercase;
  letter-spacing: .03em;
}

.project-cover {
  margin-top: 48px;
  background: var(--panel);
  position: relative;
}

.project-cover::before {
  content: "";
  position: absolute;
  left: 0;
  top: -6px;
  width: 120px;
  height: 6px;
  background: var(--yellow);
}

.project-cover img {
  width: 100%;
  max-height: 760px;
  object-fit: cover;
}

/* overview */

.project-overview {
  padding-top: clamp(64px, 8vw, 110px);
  padding-bottom: clamp(64px, 8vw, 110px);
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 5fr) minmax(0, 3fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}

.project-overview > h2 { font-size: clamp(44px, 5vw, 72px); }

.overview-copy p {
  margin: 0 0 18px;
  color: var(--text-soft);
  font-size: 18px;
  line-height: 1.7;
}
.overview-copy p:first-child { color: var(--text); }

.tools {
  background: var(--bg-raise);
  border-left: 4px solid var(--yellow);
  padding: 22px 24px;
}

.tools h3 {
  font-size: 22px;
  letter-spacing: .05em;
  margin-bottom: 14px;
}

.tools ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tools li {
  padding: 7px 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--text-soft);
  font-size: 15px;
}
.tools li:last-child { border-bottom: 0; }

/* gallery */

.gallery { padding-bottom: clamp(64px, 8vw, 110px); }

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

.shot {
  margin: 0;
  grid-column: span 3;
  background: var(--panel);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
}

/* break the grid: one big, two stacked, then a row of three */
.shot:nth-child(1) { grid-column: span 4; grid-row: span 2; aspect-ratio: auto; }
.shot:nth-child(2),
.shot:nth-child(3) { grid-column: span 2; }
.shot:nth-child(4),
.shot:nth-child(5),
.shot:nth-child(6) { grid-column: span 2; }

.shot a { display: block; height: 100%; cursor: zoom-in; }

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}

.shot a::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 0 solid var(--yellow);
  transition: border-width .18s ease;
}

.shot a:hover img { transform: scale(1.03); }
.shot a:hover::after,
.shot a:focus-visible::after { border-width: 4px; }

.shot.empty {
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(-45deg, transparent 0 12px, rgba(255, 255, 255, .025) 12px 24px),
    var(--bg-raise);
  border: 1px dashed var(--line);
}
.shot.empty a { display: none; }
.shot.empty::after {
  content: "Image coming soon";
  color: var(--muted);
  font-size: 14px;
}

/* private notice (animated series) */

.private {
  background: var(--bg-raise);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  position: relative;
}

.private::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 8px;
  background: repeating-linear-gradient(-45deg, var(--yellow) 0 14px, var(--bg-raise) 14px 28px);
  opacity: .85;
}

.private-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(72px, 9vw, 120px) var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

.private-kicker {
  grid-column: 1 / -1;
  margin: 0 0 -10px;
  color: var(--yellow);
  font-weight: 600;
  font-size: 15px;
}

.private h2 { font-size: clamp(48px, 6vw, 88px); }
.private h2 em { font-style: normal; color: var(--yellow); }

.private-copy p {
  margin: 0 0 18px;
  color: var(--text-soft);
}

.private-copy .private-lead {
  color: var(--text);
  font-size: 20px;
  line-height: 1.5;
  font-weight: 500;
}

.private-copy .btn { margin-top: 12px; }

.private-copy .private-note {
  margin-top: 26px;
  font-size: 13px;
  color: var(--muted);
}

/* next project */

.next-project {
  display: block;
  background: var(--yellow);
  color: var(--yellow-ink);
  padding: clamp(48px, 7vw, 96px) var(--gutter);
  transition: background .25s;
}

.next-project:hover { background: var(--yellow-hi); }

.next-label {
  display: block;
  max-width: var(--max);
  margin: 0 auto 10px;
  font-weight: 600;
  font-size: 15px;
}

.next-title {
  display: block;
  max-width: var(--max);
  margin: 0 auto;
  font: 900 clamp(44px, 7vw, 110px)/.9 var(--display);
  text-transform: uppercase;
}

.next-title::after {
  content: " \2192";
  display: inline-block;
  transition: transform .25s ease;
}

.next-project:hover .next-title::after { transform: translateX(10px); }

/* lightbox */

.lb-open { overflow: hidden; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(18, 18, 19, .96);
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) 70px;
  align-items: center;
  padding: 60px 10px 30px;
}
.lightbox[hidden] { display: none; }

.lb-stage {
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 14px;
}

.lb-stage img {
  max-width: 100%;
  max-height: calc(100vh - 140px);
  object-fit: contain;
  transition: opacity .25s;
}
.lightbox.loading .lb-stage img { opacity: .25; }

.lb-stage figcaption { color: var(--muted); font-size: 14px; }

.lightbox button {
  background: none;
  border: 0;
  color: var(--text);
  cursor: pointer;
  font: 700 16px/1 var(--display);
  text-transform: uppercase;
  letter-spacing: .1em;
}

.lb-nav {
  height: 56px;
  font-size: 28px !important;
  transition: color .2s;
}
.lb-nav:hover,
.lb-close:hover { color: var(--yellow); }

.lb-close {
  position: absolute;
  top: 20px;
  right: 24px;
  padding: 8px;
}

/* responsive */

@media (max-width: 960px) {
  .project-overview { grid-template-columns: 1fr 1fr; }
  .project-overview > h2 { grid-column: 1 / -1; }
  .private-inner { grid-template-columns: 1fr; }
  .private-kicker { margin-bottom: 0; }
}

@media (max-width: 680px) {
  .project-facts div { padding-right: 22px; margin-right: 22px; }
  .project-facts dd { font-size: 18px; }

  .project-overview { grid-template-columns: 1fr; }

  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .shot,
  .shot:nth-child(n) { grid-column: span 1; grid-row: auto; aspect-ratio: 16 / 10; }
  .shot:nth-child(1) { grid-column: 1 / -1; }

  .lightbox { grid-template-columns: 44px minmax(0, 1fr) 44px; padding: 60px 0 20px; }
}
