.service-card-media {
  position: relative;
}

.project-card {
  aspect-ratio: 3 / 2 !important;
  min-height: 0 !important;
}

.project-card > a {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
}

.project-card::after {
  display: none;
}

.projects-section .project-card > a::before,
.projects-section .project-card > a::after {
  content: "";
  position: absolute;
  inset: 30% 0 0;
  z-index: 1;
  pointer-events: none;
}

.projects-section .project-card > a::before {
  background: linear-gradient(
    to top,
    rgba(12, 11, 9, 0.23) 0%,
    rgba(12, 11, 9, 0.09) 55%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(to top, #000 0%, #000 42%, transparent 100%);
  mask-image: linear-gradient(to top, #000 0%, #000 42%, transparent 100%);
}

.projects-section .project-card > a::after {
  background: linear-gradient(
    to top,
    rgba(8, 8, 7, 0.38) 0%,
    rgba(8, 8, 7, 0.19) 42%,
    transparent 100%
  );
}

.projects-section .project-card > a > div {
  z-index: 2;
}

.service-card-image-icon {
  position: absolute;
  left: 16px;
  bottom: 26px;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  background: #fff;
}

.service-card .service-card-image-icon img {
  width: 40px;
  height: 40px;
  aspect-ratio: auto;
  object-fit: contain;
}

@media (max-width: 680px) {
  .service-card-image-icon {
    left: 14px;
    bottom: 18px;
    width: 68px;
    height: 68px;
  }

  .service-card .service-card-image-icon img {
    width: 36px;
    height: 36px;
  }
}
