#project-list {
  display: flex;
  flex-wrap: wrap;
  margin-left: -0.9rem;
  margin-right: -0.9rem;
}
#project-list article {
  flex-basis: calc(25% - 1.8rem);
  margin: 0 0.9rem 3.4rem;
}
#project-list article > a {
  height: 0;
  padding-bottom: 132.5%;
  overflow: hidden;
  border-radius: 20px;
  position: relative;
  display: block;
  background: #dae2cb;
}
#project-list article img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  top: 0;
  left: 0;
  transform: scale(1);
  transition: transform 0.25s ease-in-out;
}
#project-list article > a > span {
  position: absolute;
  left: 0;
  bottom: 0;
  background-color: rgba(65,114,107,.51);
  color: #fff;
  padding: 1.5rem;
  padding-top: 1.95rem;
  backdrop-filter: blur(5px);
  min-height: 30%;
  width: 100%;
  transition: min-height 0.15s ease-in-out;
}
#project-list article > a strong {
  background-color: #EEF8F7;
  color: #000;
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 400;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 20px;
}
#project-list article > a h2 {
  font-size: 18px;
  font-weight: 600;
  font-family: 'Poppins';
  line-height: 138.2%;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2; /* Limit to 2 lines */
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 3em;
  margin-bottom: 0;
  transition: max-height 0.25s ease-in-out;
}
#project-list article > a:hover img {
  transform: scale(1.05);
}
#project-list article > a:hover > span {
  min-height: 100%;
}
#project-list article > a:hover h2 {
  -webkit-line-clamp: unset;
  overflow: unset;
  text-overflow: unset;
  max-height: 10em;
}

@media all and (max-width: 991px) {
  #project-list {
    margin-left: -0.5rem;
    margin-right: -0.5rem;
  }
  #project-list article {
    flex-basis: calc(33.333333333334% - 1rem);
    margin: 0 0.5rem 1rem;
  }
}

@media all and (max-width: 767px) {
  #project-list article {
    flex-basis: calc(50% - 1rem);
  }
}

@media all and (max-width: 475px) {
  #project-list article {
    flex-basis: calc(100% - 1rem);
  }
}