.main {
  width: 100%;
  padding-top: 7vh;
}

.title {
  width: 100%;
  height: 40vh;
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  background-color: rgba(0, 0, 0, 0.8);
  background-blend-mode: darken;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.title > h1 {
  font-size: 2em;
  text-transform: uppercase;
  font-weight: 300;

  margin-bottom: 2rem;
}

#title-link {
  font-family: "Montserrat";
  text-decoration: none;
  word-spacing: 1em;
}

#title-link > a {
  color: #ebcd1e;
}

/* project - filter */

.project-filter {
  width: 100%;
  height: 100%;
  padding: 10%;

  font-family: "Montserrat";
}

.filter-ul {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.filter-ul > li {
  flex: 50%;
  max-width: fit-content;
  padding: 0.5em;
  margin: 1em;
  margin-bottom: 1em;
  position: relative;

  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2px;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
}

.filter-ul > li > a {
  position: absolute;
  left: 0;
  width: 100%;
  height: 100%;
  text-align: center;

  text-decoration: none;
  color: #555;
  padding: 0.2em 1em;
  z-index: -1;
}

.filter-ul > li:hover > a {
  color: #333;
  background-color: #ebcd1ee6;
  animation: filter-motion 1s ease-in-out;
}

/* project grid */

.project-container {
  width: 100%;
  height: auto;
}

.project-grid {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(1fr);
  transition: all 0.5s ease-in-out;
}

.project {
  width: 100%;
  height: 50vh;
  color: white;
  padding: 0 1em;
  position: relative;
}

.project > a{
  position: absolute;
  width: calc(100% - 2em);
  height: 100%;
  z-index: 1;
  border: none;
}


.project-img {
  height: 80%;
  width: 100%;
  
}

.project-img > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-title {
  height: 20%;
  background-color: rgb(0, 0, 0);

  padding: 1em;
}

.project-title > p {
  text-transform: uppercase;

  display: block;
  font-size: 1.5em;
  margin-bottom: 0.5em;
  letter-spacing: 2px;
}

.project-title > a {
  color: #fff;
  text-decoration: none;
  font-size: 1em;
  text-transform: capitalize;
}

@keyframes filter-motion {
  from {
    clip-path: polygon(0 0, 0 0, 0 100%, 0% 100%);
  }

  to {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
}

/* tablet */

@media only screen and (min-width: 680px) {

  .project-grid {
    width: 100%;
    height: max-content;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 1em;
  }

  .project {
    height: 300px;
    padding: 0 1em;
    overflow: hidden;
  }

  .project-title {
    height: 30%;
    background-color: rgb(0, 0, 0);
  
    padding: 1em;
  }

  
  .project-title > a {
    color: #9f9f9f;
    text-decoration: none;
    font-size: 1em;
    text-transform: capitalize;
  }


  .project-img {
    height: 30rem;
    width: auto;
    overflow: hidden;
  }

  .project-img > img{
    object-fit: cover;
  }


}

/* desktop */
@media only screen and (min-width: 920px) {
  .title > h1 {
    font-size: 3em;
  }

  .project-filter {
    padding: 0;

    height: 20vh;

    display: flex;
    align-items: center;
    justify-content: center;
  }

  .filter-ul {
    width: 100%;
    flex: none;
  }

  .filter-ul > li {
    flex: auto;
    margin: 2em;
    letter-spacing: 2px;
  }

  /* project grid */
  .project-grid {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 1em;
  }

  .project {
    height: 60vh;
    padding: 0 1em;
  }

  .project-title {
    height: 20%;
    background-color: transparent;
    color: #333;
    padding: 1em;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
  }

  .project-title > a {
    color: #9f9f9f;
    text-decoration: none;
    font-size: 1em;
    text-transform: capitalize;
  }

  .project-title > p:hover {
    color: #ebcd1ee6;
    transition: color 0.5s ease-in-out;
    cursor: pointer;
  }

  .project-title > a:hover {
    color: #ebcd1ee6;
    transition: color 0.5s ease-in-out;
    cursor: pointer;
  }

  .project-img {
    overflow: hidden;
  }

  .project:hover > .project-img > img {
    transform: scale(1.1);
    transition: transform 0.5s ease;
  }
}
