html {
  box-sizing: border-box;
}

*, *:before, *:after {
  margin: 0;
  padding: 0;
  box-sizing: inherit;
}

body {
  background-image: linear-gradient(0deg, #98CD8D 2.63%, #F6F0CF 2.63%, #F6F0CF 50%, #98CD8D 50%, #98CD8D 52.63%, #F6F0CF 52.63%, #F6F0CF 100%);
  background-size: 76.00px 76.00px;
}

ul {
  list-style: none;
  font-family: sans-serif;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
  margin: 20px;
}

li {
  flex: 0 1 300px;
  height: 400px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 5px;
  transition: all 0.4s ease;
  --notchSize: 20px;
  clip-path:
    polygon(0% var(--notchSize),
      var(--notchSize) 0%,
      calc(100% - var(--notchSize)) 0%,
      100% var(--notchSize),
      100% calc(100% - var(--notchSize)),
      calc(100% - var(--notchSize)) 100%,
      var(--notchSize) 100%,
      0% calc(100% - var(--notchSize)));
}

li p, li h3 {
  z-index: -2;
  color: transparent;
  transition: all 0.4s ease;
  --notchSize: 6px;
  clip-path:
    polygon(0% var(--notchSize),
      var(--notchSize) 0%,
      calc(100% - var(--notchSize)) 0%,
      100% var(--notchSize),
      100% calc(100% - var(--notchSize)),
      calc(100% - var(--notchSize)) 100%,
      var(--notchSize) 100%,
      0% calc(100% - var(--notchSize)));
}

li p {
  font-size: 0.8rem;
}

li:hover p, li:hover h3 {
  z-index: 1;
  color: black;
  text-shadow: 0 0 1px grey;
  background-color: rgba(240, 255, 255, 0.966);
  padding: 2px;
}

li:hover img {
  filter: blur(5px);
}

img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-position: center;
  object-fit: cover;
  z-index: -1;
  transition: all 0.4s ease;
}