/* ---------- Periodical Logo overlay pattern ---------- */

.image-overlay {
  position: relative;
  width: 100%;

  display: flex;
  justify-content: flex-end; /* 오른쪽 기준 */
  padding-right: 32px;
}

/* 큰 데스크탑 이미지 */
.image-main {
  max-width: 80%;
  height: auto;
  display: block;
}

/* 겹치는 작은 이미지 (logo search / system) */
.image-overlay-small {
  position: absolute;

  bottom: -95px;      /*  살짝 아래로 */
  left: 40%;          /*  메인 이미지 안쪽 기준 */
  transform: translateX(-50%);

  max-width: 28%;
  height: auto;

}


/* ---------- 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; 
}


.book-layout {
  display: flex;
  width: 100vw;
  height: 100svh; 
}


.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; /* 오른쪽만 스크롤 */
}


/* ---------- 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%;
  }
}