/* BOOK LIST */
.book-list .book { margin-bottom: 30px; padding-bottom: 0px; font-size: 0.9em; }
.book-list .book:last-child { border: none; padding-bottom: 0px; margin-bottom: 0px; }
.book-list .book .book-image-cnt { margin-bottom: 20px; }
.book-list .book .book-image-cnt .usa-today-stamp { position: absolute; bottom: 20px; left: 0px; width: 50px; height: 50px; background: url( '/media/misc/usa-today-best-seller-logo-stamp.png' ) no-repeat; transform: rotate(-20deg); background-size: 50px; }
.book-list img.book-image { width: 100%; height: auto; border: 1px solid white; }
.book-list img.book-image:hover { border-color: #555; }
.book-list .caption { text-align: center; margin: 10px 0px 0px 0px; font-size: 0.8em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.book-list h2 { font-family: var(--sg-font-heading); margin: 0px 0px 20px 0px; }
.book-list h2 a { color: inherit;  }
.book-list h2 a:hover { color: var(--sg-accent-dark);  }
.book-list h3.sub-title { margin: 0px 0px 20px 0px; color: var(--sg-accent-dark); }
.book-list h3 a { color: inherit; }
.book-list img.buy-on-amazon { float: right; margin: 0px 0px 10px 20px; }
.book-list .support-data { margin-bottom: 10px; }
.book-list .buy-from-alternate-store { width: 120px; max-height: 240px; float: right; text-align: center; margin-left: 20px; }
.book-list .buy-from-alternate-store h4 { margin: 0px; padding: 10px 0px 20px 0px; }
.book-list .buy-from-alternate-store ul { list-style: none; padding: 0px; margin: 0px; }
.book-list .buy-from-alternate-store ul > li { text-align: center; margin-bottom: 5px; }
.book-list .buy-from-alternate-store ul img { width: 50%; height: auto; margin: 0px auto; display: block; box-shadow: 3px 3px 5px #ccc; border-radius: 15px; border: 1px solid #ccc; }
.book-list .buy-from-alternate-store ul a:hover img { opacity: 0.8; box-shadow: 3px 3px 5px #b7abab; }
.book-list-display-type { width: 40px; height: auto; }

/* BOOK LIST GRID VIEW */
.book-list.grid-view { overflow: auto; }
.book-list.grid-view .book { width: 33.3333334%; text-align: center; float: left; margin-bottom: 30px; }
.book-list.grid-view .book .book-image-cnt { width: 100%; float: none; }
.book-list.grid-view .book .book-details-cnt { display: none; }
.book-list.grid-view .book h2 { height: 65px; overflow: hidden; margin-bottom: 10px; font-size: 1.3em; display: inline-flex; text-align: center; }
.book-list.grid-view .book h2 a { align-self: flex-end; }

/* BOOK DETAILS */
.book-header { margin-bottom: 20px; }
.book-details { overflow: auto; }
.book-details img.book-image { width: 100%; height: auto; }
.book-details img.buy-on-amazon { float: right; margin: 0px 0px 10px 20px; }
.book-details img.bottom-buy-on-amazon { margin: 30px auto 10px auto; display: block; clear: both; }
.excerpt { clear: both; margin: 5px 0px 20px 0px; /* border-top: 1px solid #ece8e8; */ }
.excerpt-title { font-size: 2.3em; margin: 20px 0px 0px 0px; padding-bottom: 0px; font-family: var(--sg-font-heading); }
.excerpt-title.title2 { text-align: center; font-size: 2.2em; text-align: center; font-weight: bold; margin: 0px 0px 0px 0px; }
.excerpt-title.title3 { text-align: center; font-size: 2.2em; text-align: center; font-weight: bold; margin: 0px 0px 0px 0px; }
.excerpt-title.title4 { text-align: center; font-size: 1.7em; text-align: center; font-weight: bold; margin: 0px 0px 20px 0px; }
.excerpt-title.title5 { text-align: center; font-size: 1.7em; text-align: center; font-weight: bold; margin: 0px 0px 20px 0px; }
.book-series { clear: both; padding-top: 15px; margin-top: 20px; }
.book-details-cnt { margin-bottom: 15px; }
.book-details-cnt .book-title-cnt { margin-bottom: 15px; }
.book-details-cnt .book-title { font-size: 1.5em; font-family: var(--sg-font-heading); font-weight: bolder; }
.book-details-cnt .book-sub-title { font-size: 1em; font-family: var(--sg-font-heading); }
.book-details-cnt .book-sub-title.spacing { margin-top: 10px; }
.book-details-cnt .book-series-title { font-size: 1em; font-family: var(--sg-font-heading); }
.book-details-cnt .btn-az-buy-now { max-width: 200px; display: block; margin: 0px 0px 10px 20px; float: right; }
.book-details-cnt .btn-az-buy-now img { width: 100%; height: auto; }
.star-rating { margin-bottom: 10px; }
.bottom-buy-link { clear: both; text-align: center; margin: 1.75rem 0; }
.bottom-buy-link > a { display: inline-block; vertical-align: top; line-height: 0; }
.bottom-buy-link > a > img { display: block; }
.bottom-buy-link .buy-now-iframe { float: none; margin: 0px auto; }
.bottom-buy-link > a > img { max-width: 200px; }
.pre-order-text { font-weight: bold; }
.pre-order-text a { color: inherit; text-decoration: underline; }
.book-list.with-images { list-style: none; padding: 0px; margin: 0px 0px 0px 0px; overflow: auto; }
.book-list.with-images > li { width: 20%; float: left; padding: 10px; text-align: center; }
.book-list.with-images > li .modal { text-align: left; }
.book-list.with-images > li .modal h4 { margin-bottom: 20px; font-size: 1.3em; border-bottom: 1px solid #ccc; }
.book-list.with-images > li img { width: 100%; height: auto; border: 1px solid gray; display: block; }
.book-list.with-images > li .release-date { font-size: 0.7em; position: relative; margin-top: 5px; }
.book-list.with-images > li .preview-icon { position: absolute; top: 2px; right: 0px; text-decoration: none; }
.book-details .preview-modal h3 { margin: 0px; }
.book-details .preview-modal img { width: 100%; height: auto; }
.book-details .preview-modal .modal-body { text-align: left; font-size: 1.2em; }
.book-details .preview-modal .modal-body h4 { font-size: 1.4em; }
.buy-now-iframe { float: right; margin: 0px 0px 20px 20px; }
.book-author-list { clear: both; margin-top: 0; }
.book-author-list .author-list-name { font-style: italic; }
.collection-author-book img { width: 100%; height: auto; }
.animated-book-container { position: relative; }
.animated-book-container .usa-today-stamp { position: absolute; bottom: -30px; left: -30px; width: 100px; height: 100px; background: url( '/media/misc/usa-today-best-seller-logo-stamp.png' ); transform: rotate(-20deg); }
.usa-today-winner { float: right; margin: 0px 0px 20px 20px; }
.future-release-timer { margin: 20px 0px; }
.future-release-timer .countdown-title { font-weight: bold; margin-bottom: 5px; }

/* COLLECTION BOOK LIST */
.books-in-this-collection-cnt > h3 { margin-bottom: 0px; }
.books-in-this-collection { clear: both; padding-top: 5px; margin-top: 0px; }
.books-in-this-collection .collection-book { margin-top: 0px; margin-bottom: 20px }
.books-in-this-collection .collection-book h4 { margin-top: 0px; }
.books-in-this-collection img { width: 100%; height: auto; }
.books-in-this-collection > .list { margin-bottom: 20px; font-size: 0.9em; }
.books-in-this-collection h5 { font-size: 1.5em; margin-top: 0px; }
.books-in-this-collection .btn-view-book { margin-top: 20px; display: block; }

/* TWISTED TIMBER PHOTOS */
.twisted-timber-photos .tt-panel { overflow: auto; }
.twisted-timber-photos .tt-panel img { width: 100%; height: auto; float: left; margin-right: 20px; border: 1px solid #ccc; padding: 5px; border-radius: 5px; background: white; }
.twisted-timber-photos .white-body { margin-bottom: 20px; }
.twisted-timber-photos .book-details img.book-image { width: 100px; }

/* SMOKEJUMPERS */
.smokejumper-description img { float: right; width: 310px; height: auto; margin: 0px 0px 20px 20px; border: 1px solid #ccc; padding: 10px; }
.forest-fire-gallery { margin-top: 20px; }
.forest-fire-gallery { margin-top: 20px; }
.forest-fire-gallery img { width: 100%; height: auto; }
.the-billionaire-smokejumper img { width: 100%; height: auto; }
.the-billionaire-smokejumper h3 { margin-bottom: 0px; font-size: 1.5em; }
.the-billionaire-smokejumper .info { margin: 10px 0px 20px 0px; }

/* STORE LINKS */
.book-stores { background: #f5f5f5; padding: 20px; margin: 20px 0px; border-radius: 10px; }
.book-stores > h3 { margin-top: 0px; padding-top: 0px;  }
.store-links { display: block; list-style: none; padding: 0px; margin: 0px; }
.store-links > li { display: inline-block; padding-right: 10px; }
.store-links:last-child > li { margin-right: 0px; }
.store-links > li img { width: 65px; height: auto; border-radius: 15px; background: white; --box-shadow-color: #ccc; box-shadow: 3px 3px 5px #ccc; }
.store-links > li a:hover img { box-shadow: 3px 3px 5px #b7abab; opacity: 0.8; }

@media only screen and (max-width : 767px) {
    .book-list img.book-image { display: block; width: 60%; height: auto; float: none; margin: 0px auto; }
    .book-list .caption { display: none; }
    .book-list h2 { text-align: center; }
    .book-list h3 { text-align: center; margin-top: 10px; }
    .book-details img.book-image { width: 100%; height: auto; float: none; }
    .book-details img.buy-on-amazon { float: none; margin: 0px auto; display: block; }
    .books-in-this-collection > .list { margin-bottom: 40px; }
    .book-list.with-images > li { width: 50%; }
    .books-in-this-collection img { margin-bottom: 20px; }
    .book-details-cnt { font-size: 1.2em; clear: both; margin-top: 10px; }
    .buy-now-iframe-cnt { margin: 20px auto 20px auto; text-align: center; }
    .buy-now-iframe-cnt .buy-now-iframe { float: none; margin: 0px; }
    .usa-today-winner { float: none; margin: 10px auto; }
    .book-title-cnt .book-title, .book-title-cnt .book-sub-title { text-align: center; }
    .book-details-cnt .btn-az-buy-now { width: 60%; max-width: 220px; display: block; margin: 20px auto 10px auto; float: none; }
    .bottom-buy-link > a > img { width: 70%; max-width: 260px; }
    .book-details-cnt .future-release-timer { text-align: center; }

    /* BOOK LIST GRID VIEW */
    .book-list.grid-view .book { width: 50%; margin-bottom: 15px; }
    .book-list.grid-view .book h2 { font-size: 18px; height: 60px; }
    .book-list.grid-view img.book-image { width: 100%; }
    .book-list.grid-view .book h2 a { align-self: flex-start; }
}

/* BOOK PAGE HERO */
.book-hero { position: relative; overflow: hidden; margin: 0 0 1.75rem 0; padding: 2.5rem; border-radius: calc(var(--sg-radius) + 6px); background: var(--sg-surface); box-shadow: var(--sg-shadow); isolation: isolate; }
.book-hero-bg { position: absolute; inset: -60px; z-index: -1; background-size: cover; background-position: center; filter: blur(48px) saturate(1.5); opacity: .32; transform: scale(1.1); }
.book-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, .86) 55%, rgba(255, 255, 255, .94) 100%); }

/* Cover: large, soft shadow, gentle tilt that straightens on hover (kept off for books flagged no-image-animation). */
.book-hero .book-hero-cover { position: relative; width: 100%; max-width: 360px; height: auto; margin: 0 auto; display: block; perspective: 1100px; }
.book-hero .animated-book { position: static; width: 100%; height: auto; transform: none; animation: none; transition: none; transform-style: flat; }
.book-hero .animated-book::before, .book-hero .animated-book::after { content: none; }
.book-hero .animated-book > :first-child { position: static; display: block; width: auto; height: auto; background: none; border-radius: 0; box-shadow: none; }
.book-hero .book-image { display: block; width: 100%; height: auto; border-radius: 6px; box-shadow: 0 2px 6px rgba(42, 39, 51, .18), 0 26px 50px rgba(42, 39, 51, .32); transition: transform .5s ease, box-shadow .5s ease; }
.book-hero .animated-book .book-image { transform: rotateY(-9deg) rotateX(2deg); transform-origin: 70% 50%; }
.book-hero .animated-book:hover .book-image { transform: rotateY(0) rotateX(0) translateY(-4px); box-shadow: 0 4px 10px rgba(42, 39, 51, .2), 0 34px 60px rgba(42, 39, 51, .36); }
.book-hero .usa-today-stamp { bottom: -22px; left: -22px; width: 92px; height: 92px; background-size: 92px; filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .28)); }

/* Text side */
.book-hero-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .9rem; }
.hero-tag { display: inline-block; padding: .28rem .8rem; border-radius: 999px; background: rgba(42, 39, 51, .08); color: var(--sg-ink); font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.hero-tag a { color: inherit; text-decoration: none; }
.hero-tag a:hover { text-decoration: underline; }
.hero-tag-hot { background: var(--sg-accent); color: #fff; }
.book-hero-title { margin: 0 0 .35rem 0; font-size: clamp(2.1rem, 1.2rem + 3.2vw, 3.6rem); line-height: 1.08; letter-spacing: -.015em; }
.book-hero-subtitle { margin: 0 0 .35rem 0; font-family: var(--sg-font-heading); font-size: 1.35rem; color: var(--sg-muted); }
.book-hero-byline { margin: 0 0 .9rem 0; font-size: 1.05rem; color: var(--sg-muted); }
.book-hero-rating { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.1rem 0; font-size: .95rem; }
.book-hero-rating .rating-value { font-weight: 700; color: var(--sg-ink); }
.book-hero-rating .number-of-ratings { margin: 0; font-size: .95rem; }
.book-hero-genres { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.25rem 0; padding: 0; }
.book-hero-genres li { padding: .3rem .85rem; border: 1px solid var(--sg-border); border-radius: 999px; background: rgba(255, 255, 255, .8); font-size: .85rem; font-weight: 500; }
.book-hero-facts { display: flex; flex-wrap: wrap; gap: 1rem 2.25rem; margin: 0 0 1.5rem 0; padding: 1rem 0; border-top: 1px solid var(--sg-border); border-bottom: 1px solid var(--sg-border); }
.book-hero-facts > div { min-width: 6rem; }
.book-hero-facts dt { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--sg-muted); }
.book-hero-facts dd { margin: .1rem 0 0 0; font-size: 1.02rem; font-weight: 600; color: var(--sg-ink); }
.book-hero-facts dd a { font-weight: 600; }
.book-hero-note { margin: 0 0 1.25rem 0; color: var(--sg-muted); }
.book-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.book-hero .btn-buy { display: inline-flex; align-items: center; gap: .6rem; padding: .85rem 2rem; font-size: 1.1rem; box-shadow: 0 10px 24px rgba(196, 88, 0, .35); }
.book-hero .btn-buy:hover { transform: translateY(-2px); }
.book-hero .btn-buy .bi { font-size: 1.25rem; }
.book-hero-preorder-note { font-weight: 600; color: var(--sg-accent-dark); }
.book-hero-iframe { max-width: 100%; overflow: hidden; }
.book-hero-stores { margin-top: 1.25rem; }
.book-hero-stores .book-stores h3 { margin: 0 0 .5rem 0; font-family: var(--sg-font-body); font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sg-muted); }
.book-hero-stores .store-links { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0; padding: 0; list-style: none; }
.book-hero-stores .store-links img { max-height: 40px; width: auto; border-radius: 6px; box-shadow: var(--sg-shadow-sm); }
.book-hero .future-release-timer { margin: 1.25rem 0 0 0; }

@media (max-width: 767.98px) {
    .book-hero { padding: 1.5rem 1.1rem 1.75rem 1.1rem; }
    .book-hero .book-hero-cover { max-width: 260px; }
    .book-hero .animated-book .book-image { transform: none; }
    .book-hero-tags, .book-hero-genres, .book-hero-rating, .book-hero-actions { justify-content: center; }
    .book-hero-title, .book-hero-subtitle, .book-hero-byline, .book-hero-note { text-align: center; }
    .book-hero-facts { justify-content: center; text-align: center; }
    .book-hero .btn-buy { width: 100%; justify-content: center; }
    .book-hero-stores { text-align: center; }
    .book-hero-stores .store-links { justify-content: center; }
}
