img {
  height: fit-content;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
}

.divider {
  margin-bottom: 1.25rem;
}

.primary {
  color: var(--colour-primary);
}

.center {
  display: flex;
  justify-content: center;
}

#grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
  width: 400px;
}

#grid dt {
  font-weight: 500;
}

#grid > dl {
  padding: 1rem;
  border-radius: 1rem;
  background: var(--colour-secondary);
  border: var(--colour-darken) 2px solid;
}

#grid dd {
  color: var(--colour-primary);
  font-family: var(--font-mono);
  font-size: 30px;
  margin-top: 0.125rem;
  font-weight: 600;
}

#index img {
  width: 600px;
}

#index p {
  max-width: 500px;
}

#operativsystem #first {
  max-width: 500px;
}

#operativsystem img {
  width: 500px;
}

#gallery img {
  width: 500px;
}

#gallery h2 {
  margin-top: 0;
}

#gallery p {
  max-width: 65ch;
}

#component img {
  width: 500px;
}

#computer {
  display: flex;
  justify-content: space-between;
  flex-direction: row-reverse;
}

#img {
  max-width: 300px;
}

#compgrid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
}

.collapseFlex {
  display: flex;
  gap: 3rem;
}

.between {
  justify-content: space-between;
}

aside {
  display: flex;
  flex-direction: column;
  width: 350px;
}

@media (max-width: 700px) {
  #computer {
    flex-direction: column-reverse;
    justify-content: flex-start;
    align-items: left;
    gap: 0;
  }

  #computer #img {
    max-width: 400px;
  }

  .collapseFlex {
    flex-direction: column;
  }

  .collapseGap {
    gap: 0;
  }

  .collapseReverse {
    flex-direction: column-reverse;
  }

  #grid {
    width: 100%;
  }

  #compgrid {
    grid-template-columns: 1fr;
  }

  #operativsystem #first {
    max-width: 100%;
  }

  aside {
    width: 100%;
  }
}
