/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  font-family: Inter, sans-serif;
  overflow: hidden; /* ✅ 전체 페이지 스크롤 차단 */
}

/* ---------- Layout ---------- */
.book-layout {
  display: flex;
  width: 100vw;
  height: 100svh; /* ✅ iOS safe height */
}

/* ---------- LEFT: Text ---------- */
.artwork-info {
  width: 427.25px;
  padding: 32px 0 0 32px;

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

  background: #fff;
}

/* Nav */
.artwork-nav {
  display: flex;
  flex-direction: column;
  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;
}

/* Text */
.artwork-title {
  font-size: 14px;
  font-style: italic;
  font-weight: 350;
  line-height: 18.2px;
  letter-spacing: -0.15px;
  margin-bottom: 6px;
}

.artwork-date {
  font-size: 14px;
  font-weight: 350;
  line-height: 18.2px;
  letter-spacing: -0.15px;
  margin-bottom: 6px;
}

.artwork-category {
  font-size: 14px;
  font-weight: 350;
  line-height: 20px;
  letter-spacing: -0.15px;
  margin-bottom: 24px;
}

.artwork-description {
  max-width: 384px;
  font-size: 14px;
  font-weight: 350;
  line-height: 22.75px;
  letter-spacing: -0.15px;

  word-break: break-word;
  overflow-wrap: break-word;
}

/* ---------- RIGHT: Images (scrollable) ---------- */
.project-images {
  flex: 1;
  background: #fff;

  display: flex;
  flex-direction: column;
  align-items: flex-end;

  padding: 48px 32px;
  gap: 64px;

  overflow-y: auto; /* ✅ 오른쪽만 스크롤 */
}

/* Common image block */
.image-block {
  width: 100%;
  display: flex;
  justify-content: flex-end;
}

/* Laptop */
.image-block.single img {
  max-width: 45%;
  height: auto;
  display: block;
}

/* iPhone pair */
.image-block.pair {
  display: flex;
  gap: 32px;
}

.image-block.pair img {
  max-width: 22%;
  height: auto;
}

/* ---------- Mobile ---------- */
@media (max-width: 700px) {
  body {
    overflow: auto;
  }

  .book-layout {
    flex-direction: column;
    height: auto;
  }

  .artwork-info {
    width: 100%;
    padding: 24px;
  }

  .artwork-description {
    max-width: 100%;
  }

  .project-images {
    align-items: center;
    padding: 32px 0;
    overflow-y: visible;
  }

  .image-block {
    justify-content: center;
  }

  .image-block.single img {
    max-width: 85%;
  }

  .image-block.pair {
    flex-direction: column;
    gap: 24px;
  }

  .image-block.pair img {
    max-width: 60%;
  }
}