@media screen and (max-width: 90rem) {
  div.split-figure-left, div.split-figure-right {
    flex-direction: column;
  }

  .split-figure {
    flex: 1 0 0;
    margin: 0;
  }
}

@media screen and (max-width: 72rem) {
  
  section.subsystems-grid { 
    grid-template-columns: 1fr 1fr; 
    padding: 0 max(0rem, calc((100% - 64rem) / 2));
  }

}

@media screen and (max-width: 60rem) {

  nav.main-header-nav {
    display: none;
  }

  header.main-header {
    justify-content: center;
  }
  
  section.modal {
    background-color: white;
  }

  div.modal-content {
    flex-direction: column;
    height: unset;
    min-height: 100%;
  }

  div.modal-text {
    margin: 0rem 1rem;
    padding: 2rem;
  }

  div.modal-img {
    margin-bottom: 4rem;
  }


  div.modal-text {
    flex: unset;
    min-height: unset;
    overflow-y: visible;

    background-color: unset;
    border: unset;
  }

  div.modal-img {
    flex: unset;
  }
}

@media screen and (max-width: 50rem) {
  body {
    font-size: 1.1rem;
    max-width: 100%;
    overflow-x: hidden;
  }

  h2.expo-h2 {
    font-size: 3.5rem;
  }

  h2.section-heading {
    font-size: 2rem;
  }

  header.main-header {
    display: none;
  }

  section.main-section.section-expo {
    display: flex;
    flex-direction: column;
    padding: 10rem 1rem 5rem;
    text-align: center;
    align-items: center;
  }
  
  div.expo-caption {
    margin-top: 2rem;
  }

  div.bio-card {
    width: 30rem;
    height: unset;

    overflow-y: hidden;
  }

  div.bio-card-left {
    flex: 0 0 9rem;
  }

  div.bio-card-right {
    padding: 0.75rem;
  }

  img.bio-card-profile {
    width: 7rem;
    height: 7rem;
  }

  section.modal {
    top: 0;
    height: 100%;
    max-height: unset;
  }

  div.modal-content {
  }

  section.main-section {
    padding: 2rem 1rem;
  }

  section.main-section > :is(p, ul, ol) {
    padding: 0rem 0.5rem;
  }

  section.subsystems-grid {
    grid-template-columns: 1fr;
  }

  div.subsystem-card {
    width: 100%;
    max-height: 20rem;
  }

  a.card-link {
    max-height: 20rem;
  }

  span.card-link-label {
    font-size: 2em;
  }

  div.split-content-figure {
    padding: 0 0.5rem;
  }
}

@media (pointer: coarse) {
  a.card-link {
    opacity: 1;
  }

  a.card-link:active {
    filter: brightness(0.8);
  }

  span.card-link-sub {
    display: none;
  }
}


