/* book.css */

.hero-sheet .book-author {
    margin: 0 auto 1.15rem;
    font-family: "Libre Baskerville", Georgia, serif;
    letter-spacing: 0;
    font-size: clamp(1.35rem, 1.8vw, 2rem);
    font-weight: 400;
    color: #111;
}

.book-template .book-meta-note {
    background: #e8ddc7;
}

.author-note {
    background: #dfe7ea;
}

.author-note-data {
    display: grid;
    gap: 0.35rem;
    margin: 0 0 0.85rem;
}

.author-note-data div {
    display: grid;
    grid-template-columns: 5.7rem minmax(0, 1fr);
    gap: 0.65rem;
}

.author-note-data dt {
    font-weight: 700;
}

.author-note-data dd {
    margin: 0;
}

.author-note p {
    margin: 0;
}

.book-template .book-gallery img {
    max-height: 420px;
    width: auto;
}

.book-template .book-object-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

@media (max-width: 900px) {
    .book-template .book-object-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .book-template .book-object-grid {
        grid-template-columns: 1fr;
    }
}




.book-intro-sheet {
    padding: 3rem 0;
}

.book-intro-band {
    position: relative;
    z-index: 25;
    width: min(980px, 100%);
    margin: 0 auto -1rem;
    padding: 3rem 0 1rem;
}



.book-intro-layout {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 3rem;
    align-items: end;
    padding: 0 var(--text-left);
}


.book-cover-object {
    margin: 0;
    justify-self: center;
        align-self: stretch;
}

.book-cover-object a {
    display: block;
    color: inherit;
}

.book-cover-object img {
    display: block;
    width: 100%;
    max-height: 340px;
    width: auto;
    max-width: none;
    object-fit: contain;

    box-shadow:
        0 8px 16px rgba(0,0,0,.14),
        0 18px 28px rgba(0,0,0,.24);
}

.book-cover-object a:hover img {
    transform: translateY(-2px);
    box-shadow:
        0 10px 20px rgba(0,0,0,.16),
        0 22px 34px rgba(0,0,0,.28);
}

.book-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    place-items: center;
    padding: 2rem;
}

.book-lightbox:target {
    display: grid;
}

.book-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 17, 17, .78);
}

.book-lightbox figure {
    position: relative;
    z-index: 1;
    margin: 0;
    max-width: min(760px, calc(100vw - 3rem));
    max-height: calc(100vh - 3rem);
    text-align: center;
}

.book-lightbox img {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 7rem);
    width: auto;
    height: auto;
    margin: 0 auto;
    box-shadow:
        0 16px 32px rgba(0,0,0,.35),
        0 30px 56px rgba(0,0,0,.42);
}

.book-lightbox figcaption,
.book-lightbox-close {
    font-family: Inter, system-ui, sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.book-lightbox figcaption {
    margin-top: 0.75rem;
    color: #fff;
}

.book-lightbox-close {
    position: absolute;
    top: -2rem;
    right: 0;
    color: #fff;
    text-decoration: none;
}


.book-catalog-card {
    position: relative;
    width: min(100%, 660px);
    min-height: 370px;
    padding: 1.1rem 1.4rem 2.6rem;
    background: #fffbd2;
    border: 1px solid rgba(72, 65, 38, .22);
    border-radius: 2px;
    font-family: "Courier New", Courier, monospace;
    font-size: 0.92rem;
    line-height: 1.2;
    transform: rotate(-0.35deg);
    box-shadow:
        0 5px 10px rgba(0,0,0,.10),
        0 18px 30px rgba(0,0,0,.22);
}

.book-card-kind {
    margin: 0 0 0.45rem;
    text-align: center;
    font-family: Inter, system-ui, sans-serif;
    font-size: 0.98rem;
    font-weight: 700;
    color: #111;
}

.book-card-rule {
    height: 1px;
    margin: 0 0 0.7rem;
    background: rgba(72, 65, 38, .35);
}

.book-card-entry {
    display: grid;
    grid-template-columns: 4.9rem minmax(0, 1fr);
    gap: 1.15rem;
    color: #111;
}

.book-call-number,
.book-card-main p,
.book-card-details {
    margin: 0;
}

.book-call-number {
    line-height: 1.2;
}

.book-card-main {
    display: grid;
    gap: 0.2rem;
    font-size: 1.04em;
}

.book-catalog-card a {
    color: inherit;
    text-decoration-color: rgba(17, 17, 17, .35);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.12em;
}

.book-catalog-card a:hover {
    text-decoration-color: currentColor;
}

.book-card-indent {
    display: inline-block;
    padding-left: 2rem;
}

.book-card-details {
    padding-left: calc(4.9rem + 1.15rem + 2rem);
    margin-top: 1rem;
    color: #111;
    font-size: 1.04em;
}

.book-card-details .book-card-soft-break {
    margin-top: 0.42rem;
}

.book-catalog-hole {
    position: absolute;
    left: 50%;
    bottom: 1.05rem;
    width: 25px;
    height: 25px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: #f4f1ea;
    border: 1px solid rgba(72, 65, 38, .22);
    box-shadow: inset 0 1px 4px rgba(0,0,0,.18);
}

@media (max-width: 700px) {
    .book-intro-layout {
        display: block;
        padding: 0 5vw;
    }

    .book-cover-object {
        width: 70%;
        max-width: 220px;
        margin: 0 auto 1.5rem;
    }

    .book-cover-object img {
        width: 100%;
        height: auto;
        max-height: none;
    }

    .book-catalog-card {
        width: calc(100vw - 1rem);
        margin: 0 0 0 calc(50% - 50vw + 0.5rem);
        min-height: 0;
        padding: 1rem 1rem 2.4rem;
        font-size: 0.78rem;
    }

    .book-card-entry {
        grid-template-columns: 4.4rem minmax(0, 1fr);
        gap: 0.75rem;
    }

    .book-card-indent {
        padding-left: 1rem;
    }

    .book-card-details {
        padding-left: calc(4.4rem + 0.75rem + 1rem);
    }

    .book-catalog-hole {
        width: 22px;
        height: 22px;
        bottom: 0.85rem;
    }
}


.book-gallery-sheet {
    width: min(980px, calc(100vw - 4rem));
    padding: 2rem;
}

.book-gallery-figure {
    margin: 0;
}

.book-gallery-item {
    margin: 0;
}

.book-gallery-item a {
    display: block;
}

.book-gallery-item figcaption {
    width: calc(100% - 1rem);
    margin: 0 auto;
    padding: .52rem .7rem .56rem;
    background: #f4ead6;
    box-shadow:
        0 5px 8px rgba(74, 58, 37, .12),
        0 10px 18px rgba(74, 58, 37, .18);
    font-family: Georgia, "Times New Roman", serif;
    font-size: .84rem;
    line-height: 1.35;
    letter-spacing: 0;
    text-align: center;
    text-transform: none;
    color: #2b241b;
}

.book-object-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.book-object-grid figure {
    margin: 0;
}

.book-object-grid img {
    display: block;
    width: 100%;
    height: auto;
    box-shadow:
        0 6px 12px rgba(0,0,0,.12),
        0 16px 24px rgba(0,0,0,.20);
}

.book-object-grid figcaption,
.book-gallery-figure > figcaption {
    margin-top: .6rem;
    font-family: Inter, system-ui, sans-serif;
    font-size: .72rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #555;
    text-align: center;
}

@media (max-width: 900px) {
    .book-object-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .book-gallery-sheet {
        width: 100vw;
        max-width: none;
        margin-left: calc(50% - 50vw);
        padding: 1rem;
    }

    .book-object-grid {
        grid-template-columns: 1fr 1fr;
        gap: .85rem;
    }
}
