.project_card{
  box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
  border-radius: 1rem;

  height: 390px;
  width: 45ch;
  margin: auto;
}

.project_text{
  padding: 2px 16px;
}

a{
 text-decoration: none; 
 color: black
}


figure {
  display: grid;
  border-radius: 1rem;
  overflow: hidden;
  cursor: pointer;
  margin: 0;
}


figure > * {
  grid-area: 1/1;
  transition: .4s;
}

figure figcaption {
  display: grid;
  align-items: end;
  font-size: 2.3rem;
  font-weight: bold;
  color: #fff;
  padding: .75rem;
  background: var(--c,#0009);
  clip-path: inset(0 var(--_i,100%) 0 0);
  -webkit-mask:
    linear-gradient(#000 0 0),
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  -webkit-mask-clip: text, padding-box;
  margin: -1px;
}

figure:hover figcaption{
  --_i: 0%;
}
figure:hover img {
  transform: scale(1.2);
}

.project_card p{
  font-size: 30px;
}


@supports not (-webkit-mask-clip: text) {
  figure figcaption {
   -webkit-mask: none;
   color: #fff;
  }
}

h1{
  text-align: center;
  margin-bottom: 5vh;
}