.projects-page {
  min-height: calc(100svh - 56px);
}

.projects-page .projects-center {
  width: min(100%, 600px);
}

.projects-footer {
  position: static;
  width: min(calc(100% - 32px), 600px);
  min-height: 56px;
  margin-inline: auto;
  padding-block: 18px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.projects-feed {
  width: 100%;
  min-width: 0;
  margin-top: 18px;
}

.projects-heading {
  margin: 0 0 24px;
  color: #aaa;
  font-size: 0.875rem;
  font-weight: normal;
  text-align: center;
}

.project,
.project-heading {
  margin: 0;
  font: inherit;
}

.project-toggle {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  align-items: baseline;
  gap: 20px;
  width: 100%;
  min-height: 44px;
  padding: 10px 0;
  border: 0;
  background: none;
  color: #e9e9e9;
  font: inherit;
  font-size: 1rem;
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
}

.project-date {
  color: #929292;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.project-title {
  overflow-wrap: anywhere;
}

.project-toggle:hover .project-title,
.project-toggle[aria-expanded="true"] .project-title {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.project-toggle:focus-visible,
.projects-retry:focus-visible {
  outline: 1px solid #aaa;
  outline-offset: 5px;
}

.project-content {
  margin: 8px 0 28px 100px;
}

.project-copy {
  margin: 0 0 24px;
  color: #bdbdbd;
  font-size: 1rem;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.project-media {
  margin: 0 0 24px;
}

.project-media img {
  display: block;
  width: 100%;
  height: auto;
  background: #111;
}

.project-media iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #111;
}

.project-media figcaption,
.project-video-link {
  display: block;
  margin-top: 10px;
  color: #aaa;
  font-size: 0.875rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.project-video-link {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.projects-status {
  color: #aaa;
  font-size: 1rem;
  line-height: 1.5;
  text-align: center;
}

.projects-retry {
  display: block;
  margin-inline: auto;
  padding: 10px 0;
  border: 0;
  background: none;
  color: var(--white);
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
}

.projects-retry[hidden] {
  display: none;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 16px;
  padding: 8px;
  background: #000;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
}

@media (max-width: 560px) {
  .project-toggle {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
  }

  .project-date {
    font-size: 0.75rem;
  }

  .project-content {
    margin: 12px 0 28px;
  }
}
