#Work{
  min-height: 100vh;
}
.portfolio-Wrapper {
  display: -webkit-flex;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
}
.portfolio-Cat {
  cursor: none;
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.Cat-preview{
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  overflow: hidden;
}
/*
.Cat-preview:after{
    content: "hi";
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-color: black;

}*/
.Cat-preview > img {
  position: absolute;
  width: 100%;
  height: 100%;
  transition: all 0.5s cubic-bezier(0.25, 1, 0.3, 1);
}
.portfolio-Cat:hover .Cat-preview > img {
  transform: scale(1.1);
}
.Cat-title > span{
  margin: auto;
  font-family: Inter;
  font-weight: 400;
  font-size: 20px;
  margin-top: 20px;
  position: relative;
  display: inline-block;
}
.portfolio-1-thumbnail{
  background-color: var(--portfolio-1);
}
.portfolio-2-thumbnail{
  background-color: var(--portfolio-2);
}
.portfolio-3-thumbnail{
  background-color: var(--portfolio-3);
}
.portfolio-4-thumbnail{
  background-color: var(--portfolio-4);
}
.portfolio-5-thumbnail{
  background-color: var(--portfolio-5);
}
.portfolio-6-thumbnail{
  background-color: var(--portfolio-6);
}
.portfolio-7-thumbnail{
  background-color: var(--portfolio-7);
}
.portfolio-8-thumbnail{
  background-color: var(--portfolio-8);
}
.portfolio-9-thumbnail{
  background-color: var(--portfolio-9);
}
@media only screen and (min-width: 769px) {
  .portfolio-Cat {
    border-radius: 24px;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    overflow: hidden;
    width: 47%;
    height: 0;
    margin-bottom: 6%;
    padding-bottom: 58%;
  }
  .Cat-Subtitle{
    width: 68vw;
  }
  .Cat-title {
    text-align: center;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.32) 0%, rgba(0, 0, 0, 0.72) 100%);
    position: absolute;
    height: 100%;
    width: 100%;
    color: white;
    top: 0;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.3, 1);
  }
  .portfolio-Cat:hover .Cat-title{
    opacity: 1;
  }
  .Cat-title>span{
    font-size: 20px;
    width: 100%;
    position: absolute;
    bottom: 30px;
    left: 0;
  }
/*
  .portfolio-Wrapper .portfolio-Cat:nth-child(even){
    margin-top: 20vw;
  }
  .portfolio-Wrapper .portfolio-Cat:nth-child(odd){
    margin-top: -20vw;
  }
*/

}
/*
@media only screen and (max-width: 1020px) {
  .portfolio-Cat {
    width: 45%;
    height: 0;
    margin-bottom: 10%;
    padding-bottom: 52%;
  }

}*/
@media only screen and (max-width: 768px) {
  #Work{
    padding: 20px;
  }
  .portfolio-Wrapper {
    margin: auto;
    margin-top: 50px;
    margin-bottom: 100px;
    padding: 0;
  }
  .portfolio-Cat {

    margin: auto;
    width: 90%;
    height: 0;
    margin-bottom: 40px;
    padding-bottom: calc(100% + 10px);
  }
  .Cat-Subtitle{
    margin: auto;
    width: 100%;
  }
  .Cat-Subtitle > h2{
    max-width: 90%;
  }
  .Cat-title {
    height: 10%;
    color: black;
    display: inline-flex;
  }
  .Cat-title>span{
    font-size: 16px;
  }
  .Cat-preview{
    border-radius: 24px;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    height: 0;
    padding-bottom: 100%;
    position: relative;
    overflow: hidden;
  }
}

