.it-project-grid {
  display: grid;
  border-top: 1px solid #000;
  list-style: none;
  padding: 0;
}

.it-project-item {
  border-bottom: 1px solid #000;
}

.it-project-item:last-child {
  border-bottom: none;
}

.it-project-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: #000;
}

@media (hover: hover) {
  .it-project-link:hover {
    color: #000;
  }
}

.it-project-image {
  display: block;
  max-width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-bottom: 1px solid #000 !important;
}

.it-project-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  flex-grow: 1;
  padding: 24px;
}

.it-project-title {
  font-size: clamp(1.5rem, 0.8864rem + 2.7273vw, 3rem);
  margin-bottom: 24px;
  transition: color 0.3s;
}

@media (hover: hover) {
  .it-project-title:hover {
    color: rgba(0, 0, 0, 0.5);
  }
}

.it-project-btn {
  display: inline-block;
  padding: 1em 1.5em;
  border: 1px solid #000;
  border-radius: 999px;
  font-family: "Gilda Display", Sans-serif;
  text-transform: uppercase;
  background-color: #ffdc00;
  transition:
    color 0.3s,
    background-color 0.3s;
}

@media (hover: hover) {
  .it-project-btn:hover {
    color: #ffdc00;
    background-color: #000;
  }
}

@media (min-width: 768px) {
  .it-project-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .it-project-item {
    border-right: 1px solid #000;
  }

  .it-project-item:nth-child(2n) {
    border-right: none;
  }

  .it-project-item:nth-child(odd):nth-last-child(2) {
    border-bottom: none;
  }
}
