/* Keep the project panels within their available stacked phone/tablet width. */
@media (max-width: 1100px) {
  :is(#baseMembers, #baseAccounts) .talent-projects > .container {
    width: 100%;
    padding-inline: 0;
  }
  :is(#baseMembers, #baseAccounts) .talent-projects :is(.project-list, .project-detail-column > .content, .project-detail-column > .content > .panel, .project-detail-heading, #project-section, .project-tabs, .breakdown-information, .breakdown-script, .breakdown-upload) {
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
  }
  :is(#baseMembers, #baseAccounts) .talent-projects :is(.project-detail-heading h2, .project-deadline strong, .panel-block, .recording-summary) {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  /* Give a selected breakdown enough page space to align at the top.
     The compact, unselected welcome panel is deliberately excluded. */
  :is(#baseMembers, #baseAccounts) .talent-projects .project-detail-column > .content:not(.project-welcome-panel) {
    min-height: calc(100vh - 24px) !important;
    min-height: calc(100svh - 24px) !important;
  }
  :is(#baseMembers, #baseAccounts) .talent-projects .project-detail-heading {
    scroll-margin-top: 12px;
  }
  :is(#baseMembers, #baseAccounts) .talent-projects #project-section {
    /* Include its padding and scrollbar in its width, including Safari. */
    width: 100%;
    scrollbar-gutter: auto;
    padding-inline-end: 8px;
    -webkit-overflow-scrolling: touch;
  }
  :is(#baseMembers, #baseAccounts) .talent-projects #project-section :is(img, video, canvas, iframe) {
    max-width: 100%;
  }
}
@media (max-width: 600px) {
  :is(#baseMembers, #baseAccounts) .talent-projects .project-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }
  :is(#baseMembers, #baseAccounts) .talent-projects .project-tabs button {
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.4;
  }
}
