@charset "utf-8";

#wrap{
    overflow: hidden;
    height: 100vh;

}

section{
     width: 1168px;
    margin: 0 auto;

    
}
article{
    width: 1168px;
    height: 700px;
    background-color: aqua;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}

article img:nth-child(1){
    position: absolute;
}

article a:nth-child(2){
      position: absolute;
 bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
  
}

.modal {
  /*** 위치(fixed)와 크기 설정 ***/
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: calc(100vh - 40%);
  /*calc(calculate)는 계산식(전체높이 - top 제외) - 연산자의 앞/뒤는 반드시 띄어쓰기*/
  /*** 반투명 배경색 설정 ***/
  background-color: rgba(0, 0, 0, 0);
  /*rgba(Red,Green,Blue,opAcity)*/
}

.photo {
  /*** 크기 설정 ***/
  width: 50%;
  min-width: 400px;
  /*** .modal의 중앙에 정렬 ***/
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.photo img {
  width: 100%;
  /*직계 상위요소에 맞춤*/
  vertical-align: top;
  /*기본 행간(여백) 제거*/
}

.close {
  /*** .modal의 오른쪽 위 ***/
  position: absolute;
  right: 0;
  top: 0;
  width: 30px;
  height: 30px;
  cursor: pointer;
}

.close span {
  /*** 흰색 가로 막대 ***/
  position: absolute;
  width: 40px;
  height: 2px;
  background-color: #000;
  top: 14px;
  left: -5px;
}

/*** span 2개를 각각 다른 방향으로 회전 ***/
.close span:nth-child(1) {
  transform: rotate(45deg);
}

.close span:nth-child(2) {
  transform: rotate(-45deg);
}




