/* Books retain their cover's intrinsic proportions without a gray frame. */
.book-product .gallery-frame { aspect-ratio: auto; background: transparent; }
.book-product .gallery-frame .product-image { display: block; width: 100%; height: auto; background: transparent; object-fit: initial; }
.book-product .gallery-thumbnails button { height: auto; align-self: flex-start; background: transparent; }
.book-product .gallery-thumbnails img { height: auto; }
.book-format { display: block; margin-bottom: 4px; color: #73562c; font: 700 .78rem/1.3 "Segoe UI", Arial, sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.book-byline { display: block; margin-bottom: 3px; color: #526276; font: .95rem/1.4 Georgia, "Times New Roman", serif; }
.amazon-button { display: block; margin-top: 14px; text-align: center; text-decoration: none; }
.book-preview-trigger { cursor: zoom-in; }
.book-preview-trigger:focus-visible { outline: 3px solid #bb8942; outline-offset: -5px; }
.book-preview-link { display: inline-block; margin-top: 8px; padding: 0; border: 0; background: transparent; color: #73562c; cursor: pointer; font: 700 .9rem/1.4 "Segoe UI", Arial, sans-serif; text-decoration: underline; text-underline-offset: .2em; }
.book-preview-link[hidden] { display: none; }
.book-preview-dialog { width: min(calc(100% - 2rem), 1200px); max-width: none; max-height: calc(100vh - 2rem); margin: auto; padding: 0; overflow: visible; border: 0; background: transparent; }
.book-preview-dialog[open] { display: flex; flex-direction: column; align-items: center; }
.book-preview-dialog::backdrop { background: rgb(2 10 23 / .88); }
.book-preview-image { display: block; width: auto; max-width: 100%; height: auto; max-height: calc(100dvh - 10rem); margin: 0 auto; background: transparent; object-fit: contain; }
.book-preview-close { align-self: flex-end; flex-shrink: 0; margin-bottom: .5rem; padding: .5rem .7rem; border: 1px solid #e6c184; background: #071a35; color: #fff8e9; font: 700 .85rem/1.2 "Segoe UI", Arial, sans-serif; cursor: pointer; }
.book-preview-close:focus-visible { outline: 3px solid #fff8e9; outline-offset: 3px; }
.book-preview-navigation { display: flex; align-items: center; justify-content: center; gap: 1.25rem; margin-top: .65rem; color: #fff8e9; }
.book-preview-navigation[hidden] { display: none; }
.book-preview-arrow { display: grid; place-items: center; width: 48px; height: 44px; padding: 0 0 4px; border: 1px solid #e6c184; border-radius: 6px; background: #071a35; color: #fff8e9; font: 2rem/1 Georgia, serif; cursor: pointer; }
.book-preview-arrow:hover { background: #173458; }
.book-preview-arrow:focus-visible { outline: 3px solid #fff8e9; outline-offset: 3px; }
.book-preview-count { min-width: 4rem; text-align: center; font: 600 .95rem/1.4 "Segoe UI", Arial, sans-serif; }
.book-digital-notice { margin: 8px 0 0; color: #73562c; font-weight: 700; }
.book-refund-notice { margin: 8px 0 0; color: #526276; font-size: .82rem; line-height: 1.45; }
@supports (grid-template-rows: subgrid) {
  @media (min-width: 441px) {
    .product-category .book-product .product-gallery { grid-row: 1; }
    .product-category .book-product h3 { grid-row: 2; }
    .product-category .book-product .product-description { grid-row: 3; }
    .product-category .book-product .book-purchase-notices { grid-row: 4; }
    .product-category .book-product .product-price { grid-row: 5; }
    .product-category .book-product .product-options { grid-row: 6; }
    .product-category .book-product .add-button { grid-row: 7; }
  }
}
@media (max-width: 440px) {
  .book-preview-dialog { width: calc(100% - 1rem); max-height: calc(100vh - 1rem); }
  .book-preview-image { max-height: calc(100dvh - 9rem); }
}
