/* Pretendard 서체 적용 */
body,
html {
  font-family: 'Pretendard', sans-serif;
}

/* BOOK 상세 팝업 스타일 */
.book-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.18);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.book-popup {
  background: #fff;
  width: 50vw;
  max-width: 600px;
  border: 1px solid #ff2222;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.book-popup-content {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 32px 32px 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.book-popup-header {
  font-size: 1em;
  font-weight: 400;
  margin-bottom: 8px;
  line-height: 1.6;
  color: #222;
}
.book-popup-image {
  width: 100%;
  max-width: 420px;
  margin: 0 auto 12px auto;
  display: block;
}
.book-popup-gallery {
  width: 100%;
  margin: 0 auto 12px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.book-popup-gallery img {
  width: 85%;
  max-width: none;
  min-width: 0;
  height: auto;
  border: 1px solid #eee;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
/* 슬라이드 화살표 - 더 작게 */
.gallery-arrow {
  background: none;
  border: none;
  color: #ff2222;
  font-size: 1.2em;
  font-weight: 800;
  width: 16px;
  height: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0 4px;
  transition: color 0.15s;
}
.gallery-arrow:hover {
  color: #b10000;
}
.book-popup-desc {
  font-size: 1em;
  color: #222;
  line-height: 1.7;
  margin-top: 8px;
}
.book-popup-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  font-size: 2em;
  color: #ff2222;
  cursor: pointer;
  z-index: 10;
  transition: color 0.15s;
}
.book-popup-close:hover {
  color: #b10000;
}
@media (max-width: 900px) {
  .book-popup {
    width: 90vw;
    max-width: 98vw;
  }
  .book-popup-content {
    padding: 18px 8px 12px 8px;
  }
}
