@charset "utf-8";

*{
    margin: 0;
    padding: 0;
    list-style: none;
        box-sizing: border-box;
}
#wrap{position: relative;

    width: 100%;
    height: 100vh;
/*
    background: url(img/KakaoTalk_20250723_130444765.jpg); 
    background-position: top;
    background-size: 80px;
*/

}

ul{position: absolute;
     left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 86%;
     display: grid;
  grid-template-columns: 1fr 1fr 1fr;
    background-color: #ffffff


}

li{
  display: grid;
  place-items: center;
    background: center/contain no-repeat;
    position: relative;

}

li:nth-child(1){
    background-image: url(img/1.jpg);
}

li:nth-child(2){
    background-image: url(img/2.jpg);
}

li:nth-child(3){
    background-image: url(img/3.jpg);
}

li:nth-child(4){
    background-image: url(img/4.jpg);
}

li:nth-child(5){
    background-image: url(img/5.jpg);
}

li:nth-child(6){
    background-image: url(img/6.jpg);
}

li::after {
  content: "";
  position: absolute;
  background-image: url(img/hover.png);
  background-size: contain;
  background-position: center;
background-repeat: no-repeat;
  opacity: 0;
  transition: 0.3s;
  z-index: 0;
    width: 50%;
    height: 50%;
    bottom: 0;
    left: 0;
}

li:hover::after {
  opacity: 1;
}

/* 안에 들어있는 텍스트나 a 태그 등은 위로 올려줘야 안 가려짐 */
li * {
  position: relative;
  z-index: 1;
}

li a {
  display: block;
  width: 100%;
  height: 100%;
}
