body {
  background-color: black;
  color: white;
}

.pageTitle {
  font-size: 2.6em;
  font-style: italic;
  padding: 5vh 0 0 200px;
  letter-spacing: 0.5px;
}

#portfolio {
  display: grid;
  max-width: 1440px;
  grid-template-columns: repeat(3, 410px); /* Set the width of each column to 200px */
  grid-gap: 0px;
  padding: 7vh 100px 100px 100px;
  margin: auto;
}

.startup {
  position: relative;
  height: 380px;
  width: 410px;
  border-bottom: 0.8px solid white;
}

.startupName {
  position: absolute;
  top: 110px;
  width: 100%;
  font-size: 2.8em;
  text-align: center;
}
.startupDesc {
  position: absolute;
  top: 200px;
  width: 100%;
  padding: 60px 40px;
  line-height: 1.7em;
  letter-spacing: 0.3px;
  word-break: keep-all;
  text-align: center;
  color: #aaa;
  font-size: 1.3em;
  font-weight: 300;
}

@media (min-width: 1240px) {
  .startup:nth-child(3n+2) {
    border-left: 0.8px solid white;
    border-right: 0.8px solid white;
  }
}

@media (min-width: 820px) and (max-width: 1240px) {
  #portfolio {
    max-width: 820px;
    grid-template-columns: repeat(2, 410px);
    padding: 7vh 0;
  }
  .startup:nth-child(2n) {
    border-left: 0.8px solid white;
  }
}

@media (max-width: 820px) {
  #portfolio {
    max-width: 350px;
    grid-template-columns: repeat(1, 350px);
    padding: 0;
  }
  .pageTitle {
    width: 100%;
    text-align: center;
    padding: 10vh 0 0 0;
  }
  .startup {
    height: 320px;
    width: 350px;
    border: none;
    border-bottom: 0.7px dashed white;
  }
  .startup:last-child {
    border-bottom: none;
  }
  .startupName {
    top: 100px;
    font-size: 2.7em;
  }
  .startupDesc {
    top: 160px;
    font-size: 1.2em;
    line-height: 1.6em;
    padding: 60px 20px;
  }
}
