.artwork-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 24px;
}



.nav-index {
  color: #000;
  font-size: 14px;
  font-weight: 350;
  line-height: 18.2px;
  letter-spacing: -0.15px;
  text-decoration: none;
}

.nav-next {
  color: #99a1af;
  font-size: 14px;
  font-weight: 350;
  line-height: 18.2px;
  letter-spacing: -0.15px;
  text-decoration: none;
}

.nav-about {
  color: #99a1af;
  font-size: 14px;
  font-weight: 350;
  line-height: 18.2px;
  letter-spacing: -0.15px;
  margin-bottom: 24px;
}

.artwork-info {
  font-family: Inter, sans-serif;
}

.artwork-title {
  color: #000;

  font-family: Inter, sans-serif;
  font-size: 14px;
  font-style: italic;
  font-weight: 350;
  line-height: 18.2px; /* 130% */
  letter-spacing: -0.15px;

  margin-bottom: 4px;
}

.artwork-category {
  color: #000;

  font-family: Inter, sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 350;
  line-height: 20px; /* 142.857% */
  letter-spacing: -0.15px;

  margin-bottom: 16px;
}

.artwork-description {
  width: 384px;

  color: #000;
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 350;
  line-height: 22.75px; /* 162.5% */
  letter-spacing: -0.15px;
}

.artwork-date {
  color: #000;

  font-family: Inter, sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 350;
  line-height: 18.2px; /* 130% */
  letter-spacing: -0.15px;

  margin-bottom: 4px;
}


.nav-about {
  margin-bottom: 24px; /* ✅ (ABOUT) 아래 여백 */
}


html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
}

.book-layout {
  display: flex;
  width: 100vw;
  min-height: 100svh; /* ✅ iOS 안전 */
}

.book-viewer {
  flex: 1;
  background: #e5e5e5;

  display: flex;
  justify-content: center;
  align-items: center;
}

/* 기본 (spread용) */
.book-viewer img {
  max-width: 80%;
  max-height: 80%;
  user-select: none;
  pointer-events: none;
  transition: all 0.3s ease;
}

/* ✅ cover 전용 */
.book-viewer img.is-cover {
  max-width: 40%;      /* ✅ spread 반쪽처럼 */
  max-height: 90vh;    /* ✅ 아래 안 잘리게 */
  object-fit: contain; /* ✅ 비율 유지 */
}


.artwork-info {
  display: flex;
  width: 427.25px;
  height: 922px;

  padding: 32px 0 0 32px;

  flex-direction: column;
  align-items: flex-start;

  background: #fff;
  font-family: Inter, sans-serif;
}



.artwork-title {
  margin-bottom: 6px;
}

.artwork-date {
  margin-bottom: 6px;
}

.artwork-category {
  margin-bottom: 24px; /* ✅ 설명문과 간격 */
}

.artwork-description {
  margin-top: 0;
}




.book-viewer {
  flex: 1;
  background: #e5e5e5;

  display: flex;
  justify-content: center;
  align-items: center;

  cursor: pointer;
}

.book-viewer img {
  max-width: 80%;
  max-height: 80%;
  user-select: none;
  pointer-events: none; /* ✅ 이미지가 클릭 가로채지 않게 */
}



@media (max-width: 700px) {
  .book-layout {
    flex-direction: column; /* ✅ 위/아래 배치 */
    height: auto;           /* ✅ 스크롤 허용 */
  }

  .artwork-info {
    width: 100%;
    height: auto;

    padding: 24px 24px 32px 24px; /* ✅ 모바일 여백 */
  }

  .artwork-description {
    width: 100%; /* ✅ 텍스트 줄 폭 풀기 */
  }

  .book-viewer {
    width: 100%;
    height: auto;
    min-height: 60vh; /* ✅ 이미지 영역 확보 */
  }

  .book-viewer img {
    max-width: 90%;
    max-height: none;
  }
}

@media (max-width: 700px) {
  .book-viewer {
    cursor: default;
  }
}