.main-photo {
  display: grid;
}

.flex-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 100%;
}
.training-plan {
  text-align: center;
  font-size: 2rem;
  margin: 2rem 0;
}
.grid_1-1-1 {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  align-content: center;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  z-index: 1;
  max-width: 90%;
  margin: 0 auto;
}

.grid_1-1-1 > div {
  flex: 0 0 30%;
  max-width: 30%;
  box-sizing: border-box;
}

.grid_1-1-1 .eight {
  flex: 0 0 30%;
  max-width: 30%;
  margin-top: 0;
}

.grid_1-1-1 .seven {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.grid_1-1-1 .seven button {
  display: inline-block;
  margin: 0 auto;
  max-width: 100%;
}

.grid_1 {
  display: flex;
  align-self: center;
  z-index: 1;
}

.run-section figure {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.run-section figcaption {
  text-align: center;
  margin-top: 0.5em;
}
.run-section {
  /* responsive grid: columns will wrap based on available width */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.25rem;
  padding: 2rem;
  justify-items: center;
}

.one {
  grid-column: 2;
  text-align: center;
}

.two {
  grid-column: 3;
  text-align: center;
}

.three {
  grid-column: 4;
  text-align: center;
}

.seven {
  grid-column: 2;
  grid-row: 2;
  text-align: center;
}

.eight {
  grid-column: 3;
  grid-row: 2;
  text-align: center;
  z-index: 1;
}

.nine {
  grid-column: 4;
  grid-row: 2;
  text-align: center;
}

@media (max-width: 600px) {
  .run-section {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem 4%;
  }

  .track-container::before {
    display: none !important;
  }
  .seven {
    grid-column: 2;
    grid-row: 2;
    text-align: center;
  }

  .eight {
    grid-column: 3;
    grid-row: 2;
    text-align: center;
    z-index: 1;
  }

  .nine {
    grid-column: 4;
    grid-row: 2;
    text-align: center;
    max-width: 80px;
  }

  .grid_1-1-1 {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    align-content: center;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    z-index: 1;
    max-width: 90%;
    margin: 0 auto;
  }

  .grid_1-1-1 > div {
    flex: 0 0 30%;
    max-width: 30%;
    box-sizing: border-box;
  }

  .grid_1-1-1 .eight {
    flex: 0 0 30%;
    max-width: 30%;
    margin-top: 0;
  }
}
