.Greeting-wrapper {
  padding: 0 1rem;

  background-color: var(--background-color);
  margin: min(1rem, 24vw) 0;
  padding-top: 0;
  margin-top: 0;
}

.ProjectCards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.ProjectCard {
  position: relative;
  overflow: hidden;
  max-width: 970px;
  background-color: var(--background-color);
  padding: 0;
  /* border-radius: 8px; */
}

.ProjectCard {
  transition: box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.ProjectCard:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18), 0 1.5px 6px rgba(0, 0, 0, 0.12);
}

/* .ProjectCard .ProjectCard-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 4px;
  z-index: 0;
  background-color: var(--primary-color);
  pointer-events: none;
} */

/* Hover in: smooth */
.ProjectCard:hover .ProjectCard-header::after {
  /* right: 0;
  transition: right 0.25s cubic-bezier(0.4, 0, 0.2, 1); */
}

/* Hover out: quick */
.ProjectCard:not(:hover) .ProjectCard-header::after {
  /* right: 100%;
  transition: right 0.1s ease-out; */
}

.ProjectCard-header {
  position: relative;
  height: 72px;
  padding: 4px 16px;
  /* background-color: var(--secondary-background-color); */
  z-index: 0; /* ensure ::after is relative to this */
}

.ProjectCard-header h2 {
  position: relative; /* make it participate in stacking */
  z-index: 1; /* ensures text stays above ::after */
  margin: 0;
  font-size: var(--font-size-lg);
  font-weight: 200;
}

.ProjectCard-description {
  position: relative;
  z-index: 1;
}

.ProjectCard-imageWrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.ProjectCard-image {
  position: relative;
  mix-blend-mode: screen;
  /* filter: contrast(0.85); */
}

.ProjectCard-imageWrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--primary-color);
  /* background-image: linear-gradient(
    45deg,
    rgba(255, 0, 0, 0.8) 0%,
    rgba(0, 0, 255, 0.8) 100%
  ); */
  width: calc(100% - 1px);
  height: calc(100% - 1px);
}

.ProjectCard-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

@media (max-width: 600px) {
  .Greeting-wrapper {
    padding: 0 0.5rem;
    margin: min(0.5rem, 12vw) 0;
    margin-bottom: 2rem;
  }
  .ProjectCards {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .ProjectCard-description {
    font-size: 14px;
  }

  .ProjectCard-header {
    height: 75px;
  }
}
