.projects {
  padding: 40px 0 24px;
}
.projects__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.projects__bottom .btn--main {
  box-shadow: 0px 16px 36px 0px rgba(115, 165, 189, 0.3411764706);
}
@media (width < 992px) {
  .projects__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .projects__grid .project-card:first-child {
    grid-column: span 2;
  }
}
@media (width < 768px) {
  .projects {
    padding-top: 32px;
  }
  .projects__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.project-card {
  min-height: 360px;
  position: relative;
  border-radius: 24px;
  overflow: hidden;
}
.project-card:after {
  content: "";
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(10, 125, 215, 0) 30%, rgba(10, 125, 215, 0.9) 65%);
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 2;
}
.project-card--large {
  grid-column: span 2;
}
.project-card__image {
  position: absolute;
  top: 0;
  left: 0;
  object-fit: cover;
  z-index: 1;
  width: 100%;
  height: 100%;
}
.project-card__overlay {
  position: relative;
  z-index: 3;
  padding: 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
  color: #fff;
}
.project-card__title {
  margin-top: auto;
  margin-bottom: 4px;
}
.project-card__description {
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 16px;
}
@media (width < 992px) {
  .project-card {
    grid-column: span 1;
  }
}
@media (width < 768px) {
  .project-card {
    grid-column: span 1 !important;
  }
}
