.project-grid {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-left: auto;
  margin-right: auto;
}

.project-grid a {
  text-decoration: none;
  flex-grow: 1;
  display: block;
  flex-basis: calc(50% - 10px);
}


.project {
  /* make the whole div clickable */
  cursor: pointer;
  display: flex;
  flex-direction: row;
  align-items: center;
  background-color: rgb(60, 90, 110);
  border-radius: 5px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
  padding: 5px;
}

@media (max-width: 500px) {
  .project-info {
    font-size: 4vw;
  }
}

@media (min-width: 700px) {
  .project-info {
    font-size: 20px;
  }
}

.project-info {
  flex: 1;
  font-family: Arial, Helvetica, sans-serif;
  margin-top: 0;
  padding-left: 10px;
  padding-right: 10px;
  color: #ffffff;
}

.project-img img {
  width: 100%;
  height: 100%;
  display: block; /* to prevent it from rendering 4px of whitespace at the bottom */
  object-fit: contain;
}