.gjr-books {
    position: relative;
    padding: clamp(42px, 4.4vw, 68px) 0 clamp(82px, 7vw, 112px);
    background: var(--gjr-off-white);
    overflow: hidden;
}

.gjr-books::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 20% 45%, rgba(45,89,117,.055), transparent 34%),
        radial-gradient(circle at 82% 48%, rgba(198,106,34,.055), transparent 31%);
}

.gjr-books .gjr-container { position: relative; z-index: 1; }

.gjr-books__header { text-align: center; margin-bottom: 34px; }
.gjr-books__eyebrow {
    margin: 0 0 5px;
    color: var(--gjr-primary);
    font: 700 12px/1.2 Inter, sans-serif;
    letter-spacing: .18em;
    text-transform: uppercase;
}
.gjr-books__header h2 {
    margin: 0;
    color: var(--gjr-primary);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(38px, 3.8vw, 62px);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -.02em;
}
.gjr-books__heading-row {
    display: none;
}

.gjr-books__worlds {
    display: grid;
    grid-template-columns: minmax(0, 1.72fr) minmax(270px, .72fr);
    gap: clamp(24px, 2.8vw, 42px);
    align-items: stretch;
}
.gjr-books__series {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
}
.gjr-books__series--noah {
    position: relative;
    padding-left: clamp(18px, 1.8vw, 30px);
}
.gjr-books__series--noah::before {
    content: "";
    position: absolute;
    left: 0;
    top: 42px;
    bottom: 18px;
    width: 1px;
    background: rgba(31,41,51,.15);
}
.gjr-books__series h3 {
    margin: 0 0 18px;
    color: var(--gjr-steel-blue);
    font: 700 14px/1.2 Inter, sans-serif;
    letter-spacing: .11em;
    text-transform: uppercase;
}
.gjr-books__series--noah h3 { color: var(--gjr-burnt-orange); }

.gjr-books__shelf {
    --gjr-book-width: clamp(190px, 15vw, 250px);
    display: grid;
    grid-template-columns: repeat(4, var(--gjr-book-width));
    justify-content: center;
    gap: clamp(12px, 1.15vw, 18px);
    width: 100%;
    align-items: start;
    perspective: 1200px;
}
.gjr-books__shelf--noah {
    --gjr-book-width: clamp(190px, 15vw, 250px);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex: 0 0 auto;
}
.gjr-book-card {
    display: block;
    position: relative;
    border-radius: 2px 7px 7px 2px;
    transform: translateY(0) rotateX(0deg);
    transform-origin: center bottom;
    transition: transform .35s ease, filter .35s ease;
    filter: drop-shadow(0 22px 18px rgba(11,25,36,.18));
}
.gjr-book-card::after {
    content: "";
    position: absolute;
    inset: 3px -7px 3px auto;
    width: 8px;
    border-radius: 0 5px 5px 0;
    background: linear-gradient(90deg, rgba(255,255,255,.22), rgba(8,18,25,.24));
    transform: skewY(-7deg);
    transform-origin: left center;
    opacity: .75;
}
.gjr-book-card img {
    display: block;
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: inherit;
}
.gjr-book-card--noah { width: var(--gjr-book-width); }
.gjr-book-card:hover,
.gjr-book-card:focus-visible {
    transform: translateY(-9px) rotateX(1.5deg);
    filter: drop-shadow(0 30px 24px rgba(11,25,36,.24));
}
.gjr-book-card--coming { opacity: .85; }

.gjr-books__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    margin-top: 26px;
    padding: 0 28px;
    border: 1px solid currentColor;
    border-radius: 4px;
    background: rgba(255,255,255,.35);
    color: var(--gjr-primary);
    font: 700 13px/1 Inter, sans-serif;
    letter-spacing: .045em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background .25s ease, color .25s ease, transform .25s ease;
}
.gjr-books__button:hover,
.gjr-books__button:focus-visible {
    color: #fff;
    background: var(--gjr-primary);
    transform: translateY(-2px);
}
.gjr-books__button--noah { color: var(--gjr-burnt-orange); }
.gjr-books__button--noah:hover,
.gjr-books__button--noah:focus-visible { background: var(--gjr-burnt-orange); color: #fff; }

@media (max-width: 1050px) {
    .gjr-books__worlds { grid-template-columns: 1fr; }
    .gjr-books__series--noah { padding: 54px 0 0; }
    .gjr-books__series--noah::before { left: 8%; right: 8%; top: 0; bottom: auto; width: auto; height: 1px; }
    .gjr-book-card--noah { width: min(220px, 48vw); }
}

@media (max-width: 680px) {
    .gjr-books { padding-top: 44px; }
    .gjr-books__header { margin-bottom: 32px; }
    .gjr-books__shelf {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 26px 20px;
        max-width: 460px;
    }
    .gjr-books__series h3 { margin-bottom: 18px; }
    .gjr-books__button { width: min(100%, 330px); }
}


/* v0.6.4: Jack and Noah covers use one shared responsive width, so their top and bottom edges align exactly. */
@media (min-width: 1051px) {
    .gjr-books__shelf,
    .gjr-books__shelf--noah {
        --gjr-book-width: clamp(190px, 15vw, 250px);
    }
    .gjr-book-card,
    .gjr-book-card--noah {
        width: var(--gjr-book-width);
    }
}

/* v0.7.1 — Books sits on the shared editorial canvas rather than a flat white slab. */
.gjr-books {
    background:
        radial-gradient(circle at 13% 44%, rgba(45, 89, 117, .055), transparent 31%),
        radial-gradient(circle at 88% 48%, rgba(200, 106, 34, .045), transparent 28%),
        linear-gradient(180deg, rgba(255,255,255,.72), rgba(247,246,242,.58));
}

.gjr-books::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(22,58,82,.025), transparent 34%, transparent 66%, rgba(200,106,34,.022));
}


/* Homepage mobile books polish — v3.0.52 */
@media(max-width:680px){
    .gjr-books{padding-bottom:48px;}
    .gjr-books__series--jack .gjr-books__shelf .gjr-book-card:last-child{
        grid-column:1 / -1;
        width:calc((100% - 20px) / 2);
        justify-self:center;
    }
}
