/* CSS is how you can add style to your website, such as colors, fonts, and positioning of your
   HTML content. To learn how to do something, just try searching Google for questions like
   "how to change link color." */


   body {
    background-color: white;
    color: black;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 11.5px;
    font-weight: 400;
    margin: 0;
    padding: 3rem 0 0 0;
    line-height: 1.4;
    -webkit-text-size-adjust: 100%;
  }

  ul {
    background-color: white;
    color: black;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  }

  a {
    all: unset;
    color: inherit;
    border: 0;
  }

  a:hover {
    text-decoration: underline;
    cursor: pointer;
  }

  /* 작품용 details만 세모 제거 */
details.work-item > summary {
  list-style: none;
}

details.work-item > summary::-webkit-details-marker {
  display: none;
}


/* 안쪽 작품 제목들만 글자 작게 + 행간 넉넉하게 */
details details summary a.important {
  font-size: 11.5px;
  line-height: 1.1;
}

 /* .linedot1 {
   position: fixed;
   width: 100%;
   height: 10px;
   border-top: 8px dotted rgb(0,0,0); 
   top: 30px;
  }
  


  .linedot2 {
   position:fixed;
   width: 100%;
   height: 30px;
   border-top: 8px dotted rgb(0,0,0); 
   background-color: white;
   bottom: 0px;
  } */


  
  
  summary {
    color: black;
    margin: 0px 0px 10px 10px;
    line-height: 1.3;
    cursor: pointer;
    
  }
  
      .title {
        font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
        color: black;
        font-size: 11.5px;
        font-weight: 400;
        padding: 0px 0px 15px 10px;
        line-height: 1.4;
        margin-left: 1cm;
      }

      .important {
        font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
        color: black;
        font-size: 11.5px;
        font-weight: 400;
        padding: 0px 0px 15px 10px;
        letter-spacing: normal;
        line-height: 1.4;
        margin-left: 1cm;
      }

      .important2 {
        font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
        color: black;
        font-size: 11.5px;
        font-weight: 400;
        letter-spacing: normal;
        line-height: 1.6;
        position: fixed;
        top: 1.5rem;
        left: 50%;
        transform: translateX(-50%);
        text-align: center;
        margin: 0;
        padding: 0;
        z-index: 100;
        width: max-content;
        max-width: 80vw;
        word-break: keep-all;
      }

      .important3 {
        font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
        color: black;
        font-size: 11.5px;
        font-weight: 400;
        padding: 0px 0px 0px 10px;
        letter-spacing: normal;
        line-height: 1.6;
        margin-top: 0.5cm;
        margin-bottom: 1.5cm;
        margin-left: 1cm;
        word-break: break-all;
      }
  
      #back-top {
        position: fixed;
        top: 1.5rem;
        left: 3rem;
        display: block;
        width: 2.8rem;
        height: 1.2rem;
        font-size: 0;
        text-decoration: none;
        z-index: 100;
        cursor: pointer;
      }

      /* 화살표 shaft */
      #back-top::before {
        content: '';
        display: block;
        position: absolute;
        top: 50%;
        left: 0.6rem;
        right: 0;
        height: 1.5px;
        background: black;
      }

      /* 화살표 head */
      #back-top::after {
        content: '';
        display: block;
        position: absolute;
        top: 50%;
        left: 0;
        width: 0.55rem;
        height: 0.55rem;
        border-left: 1.5px solid black;
        border-bottom: 1.5px solid black;
        transform: translateY(-50%) rotate(45deg);
      }

      #back-top:hover::before,
      #back-top:hover::after {
        opacity: 0.5;
      }

      .work-images {
        text-align: center;      /* 안에 있는 인라인 요소(img)들을 가운데 정렬 */
        margin-top: 20px;
      }
      
      /* 이 페이지 이미지 공통 스타일 (크게 보이게) */
      .work-images img {
        max-width: 80%;          /* 화면 기준으로 크게, 너무 넘치지 않게 */
        height: auto;
        display: inline-block;
        margin: 10px 5px;        /* 이미지 사이 여백 */
      }

      /* 작품 페이지들에서 이미지 공통 스타일 (JS 분류 전 fallback) */
body img {
  display: block;
  margin: 20px auto;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 90vh;
}

#copyright {
    display: block;
    font-size: 11px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 400;
    color: black;
    padding: 3rem 0 2rem 3rem;
}

/* 세로 이미지 묶음 강제 분리용 구분선 */
.work-break {
  margin: 10px 0;
}

/* 가로 이미지: 너비 꽉 채우기 */
img.work-landscape {
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  display: block;
  margin: 20px auto;
}

/* 연속 세로 이미지 묶음 행 */
.work-portrait-row {
  display: flex;
  flex-wrap: wrap;
  gap: 11.5px;
  justify-content: center;
  margin: 20px 0;
}

/* 세로 이미지: 높이 기준으로 크기 고정, 여러 개 나열 */
.work-portrait-row img.work-portrait {
  height: 75vh;
  width: auto;
  max-height: 75vh;
  max-width: none;
  margin: 0;
  display: block;
}

#hover-preview {
  position: fixed;
  top: 0;
  left: 0;
  width: 260px;          /* 미리보기 크기 – 취향대로 조절 */
  pointer-events: none;  /* 마우스 이벤트 무시 (링크 클릭 방해 안 하게) */
  display: none;         /* 기본은 숨김 */
  z-index: 9999;
}

#hover-preview img {
  width: 100%;
  height: auto;
  display: block;
  box-shadow: 0 4px 11.5px rgba(0,0,0,0.2);
  background: white;
}

/* 작품 리스트 한 줄(제목 + 연도) */
.work-line {
  position: relative;      /* 이 summary를 기준으로 연도 위치 고정 */
  padding-left: 6rem;     /* 연도 들어갈 자리만큼 오른쪽에 여유 */
}

/* 오른쪽 연도 열 */
.work-line .work-year {
  position: absolute;
  left: 3rem;
  top: 0;
  white-space: nowrap;
  font-size: 11.5px;
  font-weight: 400;
}

@media (max-width: 768px) {

  /* 전체 세로 스택 */
  #top-section {
    flex-direction: column;
  }

  /* jeon ahyun */
  #side1:first-child {
    width: 100%;
    height: auto;
    font-size: 11.5px;
    padding: 40px 20px 30px;
  }

  /* works / texts / contact */
  #side1:nth-child(2) {
    width: 100%;
    height: auto;
    font-size: 11.5px;
    padding: 10px 20px 40px;
  }

  .menuLink {
    margin-bottom: 24px;
  }

  /* 이미지 */
  #contents {
    width: 100%;
    height: auto;
    padding: 20px 0 50px;
  }

  #contents img {
    max-width: 90%;
    max-height: none;
  }

  /* footer */
  #footer {
    font-size: 11.5px;
    padding: 60px 20px 80px;
  }
}

@media (max-width: 768px) {

  /* 전체 기본 글자 */
  body {
    font-size: 11.5px;
  }

  /* works / printmaking / media-art 같은 카테고리 */
  .important {
    font-size: 11.5px;
    line-height: 0.6;
  }

  /* 작품 제목 */
  details details summary a.important {
    font-size: 11.5px;
    line-height: 0.6;
  }

  /* 연도 */
  .work-year {
    font-size: 11.5px;
  }
}

@media (max-width: 768px) {

  /* 전체 왼쪽 여백 통일 */
  .title,
  .important,
  .important2,
  .important3,
  summary {
    margin-left: 6px;

      /* ul 자체 들여쓰기 제거 */
  ul {
    padding-left: 0;
    margin-left: 0;
  }
  }

  /* works 제목 위 여백 */
  .title {
    margin-top: 0.8cm;
  }

  /* details 묶음 간 위아래 숨 쉬게 */
  details {
    margin-bottom: 0.2cm;
  }
}

@media (max-width: 768px) {

  #back-top {
    top: 1.2rem;
    left: 1.5rem;
    width: 1.4rem;
    height: 0.6rem;
  }

  #back-top::before {
    left: 0.3rem;
    height: 1px;
  }

  #back-top::after {
    width: 0.275rem;
    height: 0.275rem;
    border-left: 1px solid black;
    border-bottom: 1px solid black;
  }

  .important2 {
    top: 1.2rem;
  }

  /* 세로 이미지: 모바일에서 1열로 */
  .work-portrait-row {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
  .work-portrait-row img.work-portrait {
    height: auto;
    width: 100%;
    max-height: 80vh;
    max-width: 100%;
  }

}

@media (max-width: 768px) {

  /* 🔹 작품 제목 줄 (book / printmaking 안쪽) */
  .work-line {
    padding-left: 3.2rem !important; /* 6rem → 줄이기 */
  }

  /* 🔹 연도 위치도 같이 당김 */
  .work-line .work-year {
    left: 0.8rem;
    font-size: 11.5px;
  }

}

@media (max-width: 768px) {

  .contact-page .important,
  .texts-page .important {
    line-height: 1.5;
  }

  .texts-page .important2,
  .texts-page .important3 {
    line-height: 1.8;
  }

}
