.book-stage { display: block; position: relative; min-width: 0; margin: 0 0 10px; isolation: isolate; }
.book { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
.paper { background: #fcfcf8; color: #193e36; overflow: hidden; }
.paper-content { height: 100%; min-height: 0; display: flex; flex-direction: column; gap: 16px; padding: 30px 34px 54px; }
.paper h1, .paper h2 { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: 34px; font-weight: 500; line-height: 1.13; text-wrap: balance; }
.paper p { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: 21px; line-height: 1.48; color: #425951; text-wrap: pretty; }
.page-photo { margin: 0; display: flex; flex-direction: column; flex: 1 1 0; min-height: 0; gap: 9px; }
.page-photo img { display: block; width: 100%; flex: 1 1 0; height: 0; min-height: 0; object-fit: contain; object-position: center; }
.page-photo figcaption { flex: 0 0 auto; color: #6d7972; font-size: 12px; line-height: 1.4; text-align: center; }
.paper .closing-note { font-size: 18px; font-style: italic; }
.photo-pair { min-height: 0; flex: 1 1 0; display: grid; grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.folio { display: flex; justify-content: space-between; gap: 10px; color: #6d7972; font-size: 12px; line-height: 1; margin-top: 2px; flex: 0 0 auto; }
.book-ready::before { content: ''; position: absolute; z-index: -1; inset: 5px 0 -10px; border-radius: 5px 10px 8px 8px; background: repeating-linear-gradient(to bottom, #f7f7ee 0 2px, #cad4c9 2px 3px); border-bottom: 4px solid #315c4d; box-shadow: 0 24px 36px -16px #183d3d55, 0 4px 8px #183d3d22; }
.book-ready .book { display: block; }
.book-ready .paper { border: 1px solid #dce2d7; }
.book-ready .paper.--left { background: linear-gradient(to right, #fcfcf8 92%, #e4e7db 98%, #cbd2c4); border-radius: 6px 0 0 6px; }
.book-ready .paper.--right { background: linear-gradient(to right, #d0d6c9, #f4f5ed 3%, #fcfcf8 9%); border-radius: 0 6px 6px 0; }
.book-ready .paper.--left .paper-content { padding-right: 40px; }
.book-ready .paper.--right .paper-content { padding-left: 40px; }
.book-controls { position: absolute; z-index: 10; bottom: 10px; left: 20px; right: 20px; display: flex; align-items: center; justify-content: space-between; pointer-events: none; }
.book-controls[hidden] { display: none; }
.turn-page { pointer-events: auto; border: 0; background: transparent; width: 42px; height: 36px; padding: 7px 10px; cursor: pointer; border-radius: 3px; }
.turn-page img { width: 22px; height: 22px; display: block; }
.turn-page:hover:not(:disabled) { opacity: .6; }
.turn-page:disabled { opacity: .18; cursor: default; }
.turn-page:focus-visible, .book-stage:focus-visible { outline: 2px solid #05a7b2; outline-offset: 4px; }
.book-status { font-size: 12px; color: #68786f; padding: 2px 10px; }
.book-stage:not(.book-ready) .paper { min-height: 760px; }
.book-stage:not(.book-ready) .page-photo img { height: auto; max-height: 350px; }
@media (max-width: 1100px) {
  .paper-content { padding: 24px 26px 54px; gap: 14px; }
  .paper h1, .paper h2 { font-size: 29px; }
  .paper p { font-size: 19px; }
  .book-ready .paper.--left .paper-content { padding-right: 30px; }
  .book-ready .paper.--right .paper-content { padding-left: 30px; }
}
@media (max-width: 760px) {
  .book { grid-template-columns: 1fr; }
  .paper-content, .book-ready .paper.--left .paper-content, .book-ready .paper.--right .paper-content { padding: 24px 24px 54px; }
  .paper h1, .paper h2 { font-size: 30px; }
  .paper p { font-size: 18px; line-height: 1.5; }
  .book-controls { left: 12px; right: 12px; }
  .book-ready .paper.--right { background: linear-gradient(to right, #eceee3, #fcfcf8 7%); }
}
@media (max-width: 360px) {
  .paper-content, .book-ready .paper.--right .paper-content { padding: 20px 18px 52px; gap: 12px; }
  .paper h1, .paper h2 { font-size: 27px; }
  .paper p { font-size: 17px; }
}
