.project-detail {
  max-width: 920px;
  margin-inline: auto;
}

.project-detail .article-title {
  margin-bottom: 16px;
}

.project-kicker {
  color: var(--orange-yellow-crayola);
  font-size: var(--fs-7);
  font-weight: var(--fw-500);
  text-transform: uppercase;
  letter-spacing: 0;
  margin-bottom: 12px;
}

.project-lede {
  color: var(--light-gray);
  font-size: var(--fs-5);
  line-height: 1.7;
  margin-bottom: 28px;
}

.project-hero-img {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--jet);
  margin-bottom: 28px;
  background: var(--eerie-black-2);
}

.project-hero-img img {
  width: 100%;
  height: auto;
  max-height: 720px;
  object-fit: contain;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  margin: 24px 0 34px;
}

.detail-card {
  background: var(--border-gradient-onyx);
  border-radius: 14px;
  padding: 1px;
  box-shadow: var(--shadow-2);
}

.detail-card-inner {
  background: var(--eerie-black-2);
  border-radius: inherit;
  padding: 18px;
  min-height: 100%;
}

.detail-label {
  color: var(--light-gray-70);
  font-size: var(--fs-8);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.detail-value {
  color: var(--white-2);
  font-size: var(--fs-6);
  line-height: 1.5;
}

.detail-section {
  margin-top: 34px;
}

.detail-section h2 {
  margin-bottom: 14px;
}

.detail-section p,
.detail-section li {
  color: var(--light-gray);
  font-size: var(--fs-6);
  line-height: 1.75;
}

.detail-list {
  padding-left: 18px;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.image-slot {
  border: 1px solid var(--jet);
  border-radius: 14px;
  overflow: hidden;
  background: var(--eerie-black-2);
}

.image-slot img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.image-slot figcaption {
  color: var(--light-gray-70);
  font-size: var(--fs-8);
  line-height: 1.5;
  padding: 12px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.tag-list span {
  color: var(--orange-yellow-crayola);
  background: var(--onyx);
  border: 1px solid var(--jet);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: var(--fs-8);
}

.back-link {
  display: inline-flex;
  color: var(--orange-yellow-crayola);
  margin-bottom: 22px;
}

.project-hero-img img,
.image-slot img {
  cursor: zoom-in;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  background: hsla(0, 0%, 2%, 0.88);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 160ms ease, visibility 160ms ease;
}

.image-lightbox.active {
  opacity: 1;
  visibility: visible;
}

.image-lightbox img {
  max-width: min(100%, 1180px);
  max-height: 88vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: var(--shadow-5);
}

.image-lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--orange-yellow-crayola);
  background: var(--onyx);
  border: 1px solid var(--jet);
  font-size: 24px;
}
