:root {
  --cream-color: #FBF5EB;
  --dark-color: #1B1B1B;
  --montserrat: 'Montserrat', sans-serif;
  --roboto: 'Roboto', sans-serif;
}

.project-section h2:first-of-type {
  margin-top: -10px;
  margin-bottom: 10px;
}

.project-section h2:last-of-type {
  margin-top: 40px;
  margin-bottom: 10px;
}

.project-card {
  display: flex;
  width: 100%;
  height: 270px;
  border: 5px solid var(--dark-color);
  margin-bottom: 20px;
}

.project-card>div:first-of-type {
  background-color: var(--dark-color);
  flex: 1;
}

.project-card>div:first-of-type a {
  width: 100%;
}

.project-card img {
  width: 350px;
  height: 260px;
  margin-right: 0;
}

.project-card-content {
  display: flex;
  flex-direction: column;
  padding: 35px 110px 30px 50px;
  flex: 2;
}

.project-card-content h3 {
  font-size: 24px;
  font-family: var(--montserrat);
  font-weight: bold;
  margin-bottom: 15px;
}

.project-card-content p {
  line-height: 150%;
}

.project-card-content button {
  margin-top: auto;
  border: none;
}

@media (max-width: 1400px) {
  .project-card-content {
    padding-right: 60px;
  }
}


@media (max-width: 1280px) {
  .project-card {
    display: flex;
    flex-direction: column;
    height: auto;
  }

  .project-card>div:first-of-type {
    width: 100%;
    height: 300px;
    overflow: hidden;
    flex: none;
  }

  .project-card img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    display: block;
    margin: 0;
  }

  .project-card-content {
    padding: 35px 60px 35px 50px;
  }

  .project-card-content button {
    margin-top: 20px;
  }

}


@media (max-width: 768px) {

  .project-card {
    flex-direction: column;
    height: auto;
  }

  .project-card-content {
    padding: 32px 32px 24px 32px;
  }

  .project-section h2 {
    font-size: 28px;
    margin-bottom: 15px;
  }

}