main.wrap:has(.pyramid) {
  max-width: 1344px;
  padding-inline: 32px;
}
main .grid,
main .grid.four,
.counters,
.flow-steps,
.meets.row,
.gal-nav ul,
.gal-grid.gal-cast,
.gal-grid.gal-faces {
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, max(280px, calc((100% - 48px) / 3))), 1fr));
}
.char .views {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.foot-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.pyramid {
  gap: 32px;
  align-items: stretch;
  justify-items: stretch;
}
main .pyramid > li {
  width: 100%;
  max-width: none !important;
}
.pyramid > li,
.pyramid > li:nth-child(2),
.pyramid > li:nth-child(3) {
  margin-inline: 0;
  padding: 24px;
}
main .pyramid > li:first-child {
  width: min(100%, 520px);
  max-width: 520px !important;
  margin-inline: auto;
}
.pyramid h3 {
  margin-bottom: 24px;
  font-size: 22px;
}
.pyramid .pcards {
  gap: 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}
.pyramid > li:nth-child(3) .pcards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 880px;
  margin-inline: auto;
}
.pyramid .pcards > li:only-child {
  grid-column: 1 / -1;
  justify-self: center;
  width: min(100%, 464px);
}
.pyramid .pcard {
  min-width: 0;
  padding: 24px;
  gap: 16px;
  align-items: flex-start;
  text-align: start;
}
.pyramid .pcard > :is(img.portrait, img.founder-art, span.portrait) {
  flex: none;
  width: 192px;
  height: 192px;
  max-width: 100%;
  object-fit: contain;
  margin: 0 auto 8px;
}
.pyramid .pcard > img.crew,
.pyramid .pcard > .founder-art {
  padding: 0;
  object-fit: cover;
  border-radius: 12px;
}
.pyramid .pcard h4 {
  margin: 0;
  font-size: 22px;
  line-height: 1.4;
}
.pyramid .pcard > :is(p, blockquote) {
  margin: 0;
  max-width: 65ch;
  align-self: stretch;
  text-align: start;
  font-size: 18px;
  line-height: 1.65;
}
main .team-group .grid.four,
main #cast .sheet {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  align-items: start;
}
.team-group .card.seat {
  min-width: 0;
  padding: 32px;
  align-items: flex-start;
  text-align: start;
}
.team-group .card.seat > :is(img.portrait, img.founder-art, span.portrait) {
  width: 192px;
  height: 192px;
  object-fit: contain;
  max-width: 100%;
  margin: 0 auto 24px;
}
.team-group .card.seat > .voice,
.team-group .card.seat > .voice blockquote {
  max-width: 65ch;
  text-align: start;
  align-self: stretch;
}
.team-group .card.seat > .voice {
  margin-top: 24px;
}
.team-group .card.seat p {
  font-size: 18px;
  line-height: 1.65;
}
main #cast .sheet .char {
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
}
@media (max-width: 1099px) {
  .pyramid .pcards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 799px) {
  main .team-group .grid.four,
  main #cast .sheet {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .foot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 699px) {
  main.wrap:has(.pyramid) {
    padding-inline: 16px;
  }
  .pyramid .pcards,
  .pyramid > li:nth-child(3) .pcards {
    grid-template-columns: minmax(0, 1fr);
  }
  .pyramid > li,
  .pyramid > li:nth-child(2),
  .pyramid > li:nth-child(3) {
    padding: 16px;
  }
  .pyramid .pcard,
  .team-group .card.seat {
    padding: 24px;
  }
  .pyramid .pcard > :is(img.portrait, img.founder-art, span.portrait),
  .team-group .card.seat > :is(img.portrait, img.founder-art, span.portrait) {
    width: 160px;
    height: 160px;
  }
  .foot-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
