/* ==========================================================================
   TANSY GROUP — css/pages/projects.css
   Projects overview page.
   ========================================================================== */

/* Projects page */

.project {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}

.project__media {
  position: sticky;
  top: calc(var(--header-h) + 2rem);
}

.project__content > * + * { margin-top: 1.5rem; }

.project__content .facts {
  margin-top: 2rem;
}

.format-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 3rem);
}

.format-item {
  padding-top: 1.5rem;
  border-top: 1px solid var(--c-line-strong);
}

.format-item h3 {
  font-size: var(--fs-h4);
  margin: 1rem 0 0.6rem;
}

.format-item p {
  color: var(--c-muted);
}

.upcoming {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.upcoming__frame {
  border: 1px dashed var(--c-line-strong);
  background: transparent;
}

.upcoming__content > * + * { margin-top: 1.25rem; }

/* Responsive ---------------------------------------------------------------- */

@media (max-width: 1020px) {
  .project,
  .upcoming {
    grid-template-columns: minmax(0, 1fr);
  }

  .project__media {
    position: static;
  }
}

@media (max-width: 820px) {
  .format-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
