@font-face {
  font-family: 'SEBANG_Gothic_Bold';
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2104@1.0/SEBANG_Gothic_Bold.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'NEXON Lv1 Gothic OTF Light';
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_20-04@2.1/NEXON Lv1 Gothic OTF Light.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'NEXON Lv1 Gothic OTF Bold';
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_20-04@2.1/NEXON Lv1 Gothic OTF Bold.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

.portfolio {
  width: 100%;
  position: relative;
  background-color: #fffef0;
  padding: 100px 0px;
}

.portfolio .wrap{
  width: 1000px;
}

.portfolio h2 {
  font-size: 60px;
  font-family: "SEBANG_Gothic_Bold";
  line-height: 1.2;
  color: #1a2a5f;
  text-align: center;
  opacity: 0;
  transition: opacity .5s;
}

.portfolio.on h2{
  opacity: 1;
} 

.portfolio h2 span {
  font-size: 60px;
  color: #ff7f00;
  line-height: 1.2;
}

.portfolio p {
  font-size: 26px;
  font-family: "NEXON Lv1 Gothic OTF Light";
  line-height: 1.2;
  margin: 10px 0px 20px;
  text-align: center;
  opacity: 0;
  transition: opacity .5s .2s;
}

.portfolio.on p{
  opacity: 1;
}

.portfolio ul{
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 50px;
  opacity: 0;
  transition: opacity .5s .3s;
}

.portfolio.on ul{
  opacity: 1;
}

.portfolio ul li{
  position: relative;
}

.portfolio ul li a{
  width: 100%;
}

.portfolio ul li a > img{
  width: 100%;
}

.portfolio ul li a div{
  position: absolute;
  top: 20px;
  left: 0px;
  width: 80%;
  background-color: #ff7f00;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 25px;
  color: #fff;
  font-size: 40px;
  font-family: 'SEBANG_Gothic_Bold';
}

.portfolio .text{
  margin-top: 50px;
}

.portfolio .text p{
  font-weight: bold;
}

.portfolio .text p b{
  font-size: 26px;
  font-family: 'SEBANG_Gothic_Bold';
}

@media(max-width:1000px){
  .portfolio .wrap{
    width: 100%;
  }
}

@media(max-width:800px){
  .portfolio h2{
    font-size: 40px;
  }
  .portfolio h2 span{
    font-size: 40px;
  }
  .portfolio p{
    font-size: 22px;
  }
  .portfolio ul{
    grid-gap: 20px;
  }
  .portfolio ul li a div{
    font-size: 20px;
    padding: 10px 15px;
  }
}

@media(max-width:600px){
  /* .portfolio ul{
    grid-template-columns: 1fr;
  } */
  .portfolio .text p{
    font-size: 14px;
  }
  .portfolio .text p b{
    font-size: 20px;
  }
}

@media(max-width:500px){
  .portfolio h2{
    font-size: 30px;
  }
  .portfolio h2 span{
    font-size: 30px;
  }
  .portfolio p{
    font-size: 20px;
  }
  .portfolio ul{
    grid-gap: 10px;
  }
  .portfolio ul li a div{
    font-size: 14px;
    width: 70%;
    padding: 7px 10px;
    top: 10px;
  }
  .portfolio ul li a div img{
    width: 30px;
  }
  
  .portfolio .text p br{
    display: none
  }
}