/* Projects page: case studies shown as books on a shelf */
.bk-section { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.bk-head { max-width: 720px; margin: 0 auto 1.5rem; text-align: center; }
.bk-head h2 { margin: 0 0 .5rem; }
.bk-head p { margin: 0; color: var(--muted); }

.bk-shelf {
    --oak: #d8b47f;
    --oak-dark: #b98d55;
    --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.35 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    position: relative;
    max-width: 1120px;
    margin: 0 auto;
    padding: 28px 24px 0;
    border-radius: 24px;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.7), transparent 65%),
        linear-gradient(#f4eff5, #e6dfe8);
    box-shadow: inset 0 0 0 1px var(--border), 0 14px 34px rgba(42, 17, 72, 0.08);
}

.bk-scroll {
    overflow-x: auto;
    overflow-y: visible;
    scrollbar-width: thin;
    scrollbar-color: var(--oak-dark) transparent;
    padding-top: 22px;
    margin-top: -22px;
}

.bk-books {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
    min-width: max-content;
    margin: 0 auto;
    padding: 0 10px;
    list-style: none;
}
.bk-books li { margin: 0; padding: 0; }
.bk-books li::before { content: none; }

.bk-spine {
    position: relative;
    display: block;
    width: var(--w);
    height: var(--h);
    border-radius: 6px 6px 3px 3px;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0.04) 14%, rgba(255, 255, 255, 0.22) 34%, rgba(255, 255, 255, 0.05) 56%, rgba(0, 0, 0, 0.1) 82%, rgba(0, 0, 0, 0.36)),
        var(--grain),
        var(--c);
    background-size: auto, 160px, auto;
    color: var(--ink, #fbf6ea);
    text-decoration: none;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18), 3px 0 7px -2px rgba(0, 0, 0, 0.28);
    transition: transform 0.35s cubic-bezier(0.3, 0.7, 0.4, 1), box-shadow 0.35s ease;
}
.bk-spine:hover,
.bk-spine:focus-visible {
    transform: translateY(-14px);
    color: var(--ink, #fbf6ea);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18), 3px 10px 16px -4px rgba(0, 0, 0, 0.32);
}
.bk-spine:focus-visible { outline: 3px solid var(--amethyst); outline-offset: 4px; }

/* raised bands top and bottom */
.bk-spine::before,
.bk-spine::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(rgba(0, 0, 0, 0.28), rgba(255, 255, 255, 0.28) 40%, rgba(0, 0, 0, 0.3));
}
.bk-spine::before { top: 18px; }
.bk-spine::after { bottom: 42px; }

.bk-title {
    position: absolute;
    top: 52px;
    bottom: 54px;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    white-space: nowrap;
    font-family: 'Fraunces', Georgia, serif;
    font-size: var(--fs, 1.02rem);
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.18);
}
.bk-tag {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 14px;
    font-family: 'Unbounded', sans-serif;
    font-size: 0.44rem;
    letter-spacing: 0.02em;
    text-align: center;
    text-transform: uppercase;
    opacity: 0.85;
}
.bk-num {
    position: absolute;
    left: 0;
    right: 0;
    top: 32px;
    font-family: 'Fraunces', Georgia, serif;
    font-size: 0.78rem;
    font-weight: 700;
    text-align: center;
    opacity: 0.9;
}
.bk-spine.is-gilt .bk-title,
.bk-spine.is-gilt .bk-num { color: #f3dc9a; }

.bk-shelf-label {
    margin: 1.75rem 0 .6rem;
    font-family: 'Unbounded', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-deep);
    text-align: center;
}
.bk-head + .bk-shelf-label { margin-top: 0; }
.bk-spine.is-gilt::before,
.bk-spine.is-gilt::after { box-shadow: inset 0 3px 0 -2px rgba(243, 220, 154, 0.8); }

/* the fox stands at the end of the shelf */
.bk-fox { align-self: flex-end; margin-left: 14px; }
.bk-fox img { display: block; width: auto; height: 170px; filter: drop-shadow(0 6px 6px rgba(42, 17, 72, 0.25)); }

.bk-board {
    position: relative;
    height: 26px;
    margin: 0 -24px;
    border-radius: 0 0 24px 24px;
    background:
        var(--grain),
        repeating-linear-gradient(90deg, transparent 0 46px, rgba(120, 70, 25, 0.12) 47px 49px, transparent 50px 103px),
        linear-gradient(rgba(255, 245, 225, 0.55), transparent 35%, rgba(0, 0, 0, 0.1)),
        var(--oak);
    box-shadow: 0 12px 18px -10px rgba(60, 35, 10, 0.45);
}
.bk-board::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -6px;
    height: 6px;
    background: linear-gradient(var(--oak-dark), var(--oak));
    opacity: 0.55;
}

.bk-hint { margin: 14px 0 0; text-align: center; font-size: 0.9rem; color: var(--muted); }
.bk-hint .bk-swipe { display: none; }

@media (max-width: 1180px) {
    .bk-books { justify-content: flex-start; }
    .bk-hint .bk-swipe { display: inline; }
}
@media (max-width: 600px) {
    .bk-shelf { padding: 22px 14px 0; border-radius: 18px; }
    .bk-board { margin: 0 -14px; border-radius: 0 0 18px 18px; }
    .bk-fox img { height: 130px; }
    .bk-spine { width: calc(var(--w) * 0.86); height: calc(var(--h) * 0.8); }
    .bk-title { font-size: calc(var(--fs, 1.02rem) * 0.76); top: 46px; bottom: 46px; }
    .bk-num { top: 28px; }
    .bk-spine::after { bottom: 36px; }
    .bk-tag { bottom: 12px; font-size: 0.4rem; }
}
@media (prefers-reduced-motion: reduce) {
    .bk-spine { transition: none; }
    .bk-spine:hover, .bk-spine:focus-visible { transform: none; }
}

/* ===== Open book (reader) ===== */
html.bk-reading { overflow: hidden; }
.bk-reader[hidden] { display: none; }
.bk-reader {
    position: fixed;
    inset: 0;
    z-index: 2147483600;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.bk-reader.is-open { opacity: 1; }
.bk-reader-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(18, 10, 36, 0.62);
    backdrop-filter: blur(4px);
}
.bk-reader-inner {
    position: relative;
    width: min(1000px, 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transform: scale(0.96);
    transition: transform 0.3s cubic-bezier(0.3, 0.7, 0.4, 1);
}
.bk-reader.is-open .bk-reader-inner { transform: none; }

.bk-reader-close {
    position: absolute;
    top: -6px;
    right: -6px;
    z-index: 5;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: var(--amethyst-deep);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}
.bk-reader-close:focus-visible,
.bk-reader-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* the book: hard cover edge in the spine colour, two paper pages */
.bk-book {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    height: min(600px, calc(100vh - 150px));
    padding: 10px;
    border-radius: 10px;
    background: var(--book, #2a1148);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
    perspective: 2200px;
}
.bk-book.is-single { grid-template-columns: 1fr; width: min(460px, 100%); }
.bk-book.is-single .bk-page-right { display: none; }

.bk-page,
.bk-leaf-face {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.08), transparent 8%),
        #fbf7ee;
    color: #2b2420;
    cursor: pointer;
}
.bk-page-left { border-radius: 4px 0 0 4px; background: linear-gradient(270deg, rgba(0, 0, 0, 0.12), transparent 9%), #fbf7ee; }
.bk-page-right { border-radius: 0 4px 4px 0; }
.bk-book.is-single .bk-page-left { border-radius: 4px; background: linear-gradient(90deg, rgba(0, 0, 0, 0.1), transparent 7%), #fbf7ee; }

.bk-page-content {
    height: 100%;
    overflow-y: auto;
    padding: 34px 34px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.bk-page-no {
    position: absolute;
    bottom: 12px;
    left: 0;
    right: 0;
    text-align: center;
    font-family: 'Fraunces', Georgia, serif;
    font-size: 0.8rem;
    color: #8a7b6a;
}

/* page content */
.bkp-cover { text-align: center; }
.bkp-num { margin: 0; font-family: 'Fraunces', Georgia, serif; font-size: 1rem; font-weight: 700; color: var(--accent-deep); }
.bkp-tag { margin: 2px 0 10px; font-family: 'Unbounded', sans-serif; font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: #8a7b6a; }
.bkp-title { margin: 0 0 6px; font-family: 'Fraunces', Georgia, serif; font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.1; color: var(--amethyst-deep); }
.bkp-kicker { margin: 0 0 16px; color: #6b5d50; font-size: 0.95rem; }
.bkp-img { display: block; width: 100%; max-height: 300px; object-fit: contain; margin: 0 auto; border-radius: 8px; }
.bkp-label { margin: 0 0 6px; font-family: 'Unbounded', sans-serif; font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-deep); }
.bkp-text { margin: 0 0 22px; font-size: 1rem; line-height: 1.65; }
.bkp-quote { margin: 8px 0 0; padding-left: 14px; border-left: 3px solid var(--gold); font-family: 'Fraunces', Georgia, serif; font-style: italic; font-size: 1.02rem; line-height: 1.55; color: #4a3f36; }
.bkp-list { margin: 0 0 24px; padding-left: 1.2em; line-height: 1.6; }
.bkp-list li { margin-bottom: 6px; }
.bkp-cta { align-self: flex-start; }

/* the turning leaf */
.bk-leaf {
    position: absolute;
    top: 10px;
    bottom: 10px;
    width: calc(50% - 10px);
    transform-style: preserve-3d;
    transition: transform 0.7s cubic-bezier(0.45, 0.05, 0.3, 1);
    z-index: 4;
    pointer-events: none;
}
.bk-leaf.is-next { left: 50%; transform-origin: left center; }
.bk-leaf.is-prev { left: 10px; transform-origin: right center; }
.bk-leaf.is-next.is-turning { transform: rotateY(-180deg); }
.bk-leaf.is-prev.is-turning { transform: rotateY(180deg); }
.bk-leaf-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 0 24px rgba(0, 0, 0, 0.18); }
.bk-leaf-back { transform: rotateY(180deg); }
.bk-leaf.is-next .bk-leaf-front { border-radius: 0 4px 4px 0; }
.bk-leaf.is-next .bk-leaf-back { border-radius: 4px 0 0 4px; }
.bk-leaf.is-prev .bk-leaf-front { border-radius: 4px 0 0 4px; }
.bk-leaf.is-prev .bk-leaf-back { border-radius: 0 4px 4px 0; }
/* one page at a time (phones): the page lifts away to the left */
.bk-leaf.is-single { left: 10px; right: 10px; width: auto; transform-origin: left center; }
.bk-leaf.is-single.is-next.is-turning { transform: rotateY(-100deg); opacity: 0; transition: transform 0.6s ease, opacity 0.6s ease; }
.bk-leaf.is-single.is-prev { transform: rotateY(-100deg); opacity: 0; }
.bk-leaf.is-single.is-prev.is-turning { transform: none; opacity: 1; transition: transform 0.6s ease, opacity 0.4s ease; }

/* controls */
.bk-reader-nav { display: flex; align-items: center; gap: 18px; }
.bk-reader-btn {
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: var(--amethyst-deep);
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}
.bk-reader-btn:disabled { opacity: 0.4; cursor: default; }
.bk-reader-count { margin: 0; min-width: 70px; text-align: center; color: #fff; font-weight: 600; }
.bk-reader-hint { margin: 0; color: rgba(255, 255, 255, 0.75); font-size: 0.85rem; text-align: center; }

@media (max-width: 760px) {
    .bk-book { height: min(620px, calc(100dvh - 140px)); }
    .bk-page-content { padding: 26px 22px 40px; justify-content: flex-start; }
    .bkp-img { max-height: 220px; }
    .bk-reader-close { top: -10px; right: -4px; }
}
@media (prefers-reduced-motion: reduce) {
    .bk-reader, .bk-reader-inner { transition: none; }
}

/* ===== More books to the side: edge fade + arrows ===== */
.bk-shelf.is-scrollable::before,
.bk-shelf.is-scrollable::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 26px;
    width: 46px;
    z-index: 2;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.bk-shelf.is-scrollable::before { left: 0; border-radius: 24px 0 0 0; background: linear-gradient(90deg, #efe9f0, rgba(239, 233, 240, 0)); }
.bk-shelf.is-scrollable::after { right: 0; border-radius: 0 24px 0 0; background: linear-gradient(270deg, #efe9f0, rgba(239, 233, 240, 0)); }
.bk-shelf.at-start::before,
.bk-shelf.at-end::after { opacity: 0; }

.bk-arrow {
    position: absolute;
    top: calc(50% - 13px);
    z-index: 3;
    width: 42px;
    height: 42px;
    margin-top: -21px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: var(--amethyst-deep);
    font-size: 1.7rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(42, 17, 72, 0.25), inset 0 0 0 1px var(--border);
}
.bk-arrow[hidden] { display: none; }
.bk-arrow span { display: block; margin-top: -3px; }
.bk-arrow-prev { left: 6px; }
.bk-arrow-next { right: 6px; animation: bk-arrow-pulse 1.8s ease-in-out 3; }
.bk-arrow:focus-visible { outline: 3px solid var(--amethyst); outline-offset: 3px; }
@keyframes bk-arrow-pulse {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(4px); }
}
@media (prefers-reduced-motion: reduce) {
    .bk-arrow-next { animation: none; }
}

/* two shelves without labels: keep some air between them */
.bk-shelf + .bk-shelf { margin-top: 28px; }

/* Make automation highlight (Northline) */
.make-hl {
    font-weight: 700;
    color: #6d00cc;
    background: linear-gradient(transparent 62%, rgba(155, 93, 229, 0.22) 62%);
    padding: 0 2px;
    border-radius: 2px;
}

/* divider between the bookshelf and "My work at a glance" */
hr.glance-divider {
    width: min(1120px, calc(100% - 32px));
    height: 2px;
    margin: 12px auto;
    border: 0;
    opacity: 1;
    background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--amethyst) 50%, var(--gold) 80%, transparent);
}

/* Type tag at the foot of each spine: bigger, bolder, a solid band so it reads on every cloth colour */
.bk-tag { bottom: 12px; left: 4px; right: 4px; padding: 3px 0; border-radius: 3px; font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif; font-size: 0.6rem; font-weight: 800; letter-spacing: 0.04em; line-height: 1.1; color: #2b2118; background: rgba(250, 244, 230, 0.92); opacity: 1; text-shadow: none; }
:lang(hu) .bk-tag, html[lang="hu"] .bk-tag { font-size: 0.52rem; letter-spacing: 0.02em; }
@media (max-width: 760px) {
    .bk-tag { font-size: 0.5rem; bottom: 10px; }
    html[lang="hu"] .bk-tag { font-size: 0.44rem; }
}

/* Tag printed on the spine itself: a full-width stamped band in the spine's own ink, not a sticker */
.bk-tag { left: 0; right: 0; padding: 4px 0; border-radius: 0; color: var(--ink, #f6ecd6); background: rgba(0, 0, 0, 0.16); border-top: 1px solid rgba(255, 255, 255, 0.16); border-bottom: 1px solid rgba(0, 0, 0, 0.22); text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25); }
.bk-spine[style*="--ink"] .bk-tag { background: rgba(0, 0, 0, 0.07); text-shadow: none; }
.bk-tag { font-size: 0.5rem; letter-spacing: 0; padding-left: 2px; padding-right: 2px; white-space: nowrap; }
html[lang="hu"] .bk-tag { font-size: 0.46rem; letter-spacing: 0; }
@media (max-width: 760px) { .bk-tag { font-size: 0.42rem; } html[lang="hu"] .bk-tag { font-size: 0.4rem; } }

/* Astronaut sits at the end of the second shelf, like the fox on the first */
.bk-astro img { height: 150px; }
@media (max-width: 760px) { .bk-astro img { height: 115px; } }
.bk-astro img { height: 185px; }
@media (max-width: 760px) { .bk-astro img { height: 140px; } }
.bk-astro img { height: 200px; }
@media (max-width: 760px) { .bk-astro img { height: 150px; } }

/* Library-style brass label plate on the front of each shelf */
.bk-plaque { position: absolute; left: 50%; bottom: 4px; z-index: 2; transform: translateX(-50%); margin: 0; padding: 3px 22px 2px; border-radius: 3px; background: linear-gradient(180deg, #f1dca6 0%, #c9a45c 55%, #b08a45 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), inset 0 -1px 0 rgba(0, 0, 0, 0.25), 0 1px 2px rgba(0, 0, 0, 0.35); color: #3a2a12; font-family: 'Cormorant Garamond', Georgia, serif; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45); }
.bk-plaque::before, .bk-plaque::after { content: ""; position: absolute; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff3cf, #8a6a30); }
.bk-plaque::before { left: 8px; }
.bk-plaque::after { right: 8px; }
@media (max-width: 760px) { .bk-plaque { font-size: 0.62rem; padding: 2px 16px 1px; letter-spacing: 0.05em; } }

/* Books lift higher when you point at them */
.bk-spine { transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.3, 1.2), box-shadow 0.28s ease; }
.bk-spine:hover, .bk-spine:focus-visible { transform: translateY(-28px); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18), 4px 22px 22px -8px rgba(0, 0, 0, 0.4); }
@media (prefers-reduced-motion: reduce) { .bk-spine:hover, .bk-spine:focus-visible { transform: none; } }

/* Room for books to lift without being clipped */
.bk-scroll { padding-top: 34px; margin-top: -34px; }

/* Softer, more paper-like page turn: the leaf lifts off the book, curls over and settles,
   with a shadow that deepens as it turns */
.bk-leaf.is-next.is-turning { animation: bk-turn-next 0.95s cubic-bezier(0.38, 0.1, 0.22, 1) forwards; transition: none; }
.bk-leaf.is-prev.is-turning { animation: bk-turn-prev 0.95s cubic-bezier(0.38, 0.1, 0.22, 1) forwards; transition: none; }
@keyframes bk-turn-next {
    0% { transform: rotateY(0deg) translateZ(0); }
    25% { transform: rotateY(-38deg) translateZ(18px) scaleX(0.97); }
    60% { transform: rotateY(-128deg) translateZ(22px) scaleX(0.95); }
    85% { transform: rotateY(-172deg) translateZ(6px); }
    100% { transform: rotateY(-180deg) translateZ(0); }
}
@keyframes bk-turn-prev {
    0% { transform: rotateY(0deg) translateZ(0); }
    25% { transform: rotateY(38deg) translateZ(18px) scaleX(0.97); }
    60% { transform: rotateY(128deg) translateZ(22px) scaleX(0.95); }
    85% { transform: rotateY(172deg) translateZ(6px); }
    100% { transform: rotateY(180deg) translateZ(0); }
}
.bk-leaf-face::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; opacity: 0; }
.bk-leaf.is-next .bk-leaf-front::after { background: linear-gradient(90deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.04) 40%, rgba(255, 255, 255, 0.12) 85%); }
.bk-leaf.is-prev .bk-leaf-front::after { background: linear-gradient(270deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.04) 40%, rgba(255, 255, 255, 0.12) 85%); }
.bk-leaf .bk-leaf-back::after { background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), rgba(0, 0, 0, 0.2)); }
.bk-leaf.is-turning .bk-leaf-face::after { animation: bk-shade 0.95s ease-in-out forwards; }
@keyframes bk-shade { 0% { opacity: 0; } 45% { opacity: 1; } 100% { opacity: 0; } }
.bk-leaf.is-turning .bk-leaf-face { box-shadow: 0 10px 34px rgba(0, 0, 0, 0.28); }
/* phone, one page at a time: a gentle curl away instead of a flat fade */
.bk-leaf.is-single.is-next.is-turning { animation: bk-turn-single 0.75s cubic-bezier(0.38, 0.1, 0.22, 1) forwards; transition: none; }
@keyframes bk-turn-single {
    0% { transform: rotateY(0deg); opacity: 1; }
    60% { transform: rotateY(-70deg) translateZ(20px); opacity: 0.9; }
    100% { transform: rotateY(-105deg) translateZ(0); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .bk-leaf.is-turning, .bk-leaf.is-turning .bk-leaf-face::after { animation-duration: 0.01s; }
}
.bk-leaf.is-single.is-prev.is-turning { animation: none; transition: transform 0.6s ease, opacity 0.4s ease; }

/* Realistic page-flip (drag a corner or use the arrows): the two static pages step aside */
.bk-book.is-flip { display: block; }
.bk-book.is-flip > .bk-page { display: none; }
.bk-flip { width: 100%; height: 100%; margin: 0 auto; }
.bk-flip-page { position: relative; overflow: hidden; background: linear-gradient(90deg, rgba(0, 0, 0, 0.06), transparent 8%), #fbf7ee; color: #2b2420; }
.bk-flip-page.--right { background: linear-gradient(90deg, rgba(0, 0, 0, 0.12), transparent 9%), #fbf7ee; }
.bk-flip-page.--left { background: linear-gradient(270deg, rgba(0, 0, 0, 0.12), transparent 9%), #fbf7ee; }
.bk-flip-page .bk-page-content { height: 100%; }
