/* Reduce excess space on the English project page while retaining its original artwork. */
.project-page .opening-thought,
.project-page .lessons-section,
.project-page .ecosystem-section,
.project-page .connection-section,
.project-page .heroes-invite-section,
.project-page .first-lesson-section,
.project-page .partner-section,
.project-page .author-section {
  padding-block: 76px;
}
.project-page .first-lesson-grid {
  grid-template-columns: minmax(0, 1fr);
  max-width: 900px;
}
.project-page .partner-visual,
.project-page .partner-poster-visual {
  min-height: 0;
}
@media (min-width: 801px) {
  .project-page .method-cinematic {
    min-height: 0;
    padding-block: 76px;
  }
  .project-page .method-cinematic-layout {
    min-height: 0;
    gap: 48px;
  }
}
@media (max-width: 800px) {
  .project-page .opening-thought,
  .project-page .lessons-section,
  .project-page .ecosystem-section,
  .project-page .connection-section,
  .project-page .heroes-invite-section,
  .project-page .first-lesson-section,
  .project-page .partner-section,
  .project-page .author-section {
    padding-block: 56px;
  }
}

/* Balance the five available project formats on larger screens. */
@media (min-width: 801px) {
  .project-page .ecosystem-grid .eco-course,
  .project-page .ecosystem-grid .eco-books,
  .project-page .ecosystem-grid .eco-experiments,
  .project-page .ecosystem-grid .eco-library { grid-column: span 6; }
}
@media (min-width: 1000px) and (max-width: 1450px) {
  .project-page .floating-card-top { left: -85px; }
}

/* Keep the opening section at least as tall as the desktop viewport. */
@media (min-width: 801px) {
  .project-page .hero,
  .project-page .hero-grid { min-height: 100svh; }
  .project-page .hero-scene img { object-position: right center; transform: none; }
}
@media (min-width: 801px) and (max-aspect-ratio: 3/2) {
  .project-page .floating-card-top { display: none; }
}
