/* ── FLIP-BOOK STYLES ── /css/flipbook.css ──────────────────────
   Matches the site's editorial look: cream pages, dashed border,
   star corner badge, serif italic captions.
   Adjust colors/fonts to match your theme's existing variables. */

.lc-flipbook {
    max-width: 700px;
    margin: 3rem auto;
    perspective: 2200px;
}

.lc-flipbook__stage {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
}

.lc-flipbook__page {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
    transform-origin: left center;
    transition: transform 0.7s cubic-bezier(0.45, 0, 0.55, 1);
    cursor: pointer;
}

.lc-flipbook__page.is-flipped {
    transform: rotateY(-180deg);
}

.lc-flipbook__page-front,
.lc-flipbook__page-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    border: 2px dashed #999;
    background-color: #ece7e2;
    border-radius: 4px;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.12);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.lc-flipbook__page-back {
    transform: rotateY(180deg);
    background-color: #e2ddd6;
}

.lc-flipbook__page-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex: 1;
}

.lc-flipbook__caption {
    font-style: italic;
    font-family: Georgia, 'Times New Roman', serif;
    text-align: center;
    padding: 0.6rem 1rem;
    margin: 0;
    background: #ece7e2;
    font-size: 0.9rem;
}

/* Star corner badge, matching the artist-callout style */
.lc-flipbook__stage::before {
    content: "✦";
    position: absolute;
    top: -14px;
    left: -14px;
    width: 28px;
    height: 28px;
    background-color: #f4e3c1;
    color: #b5872e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    z-index: 999;
}

.lc-flipbook__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.lc-flipbook__prev,
.lc-flipbook__next {
    background: #ece7e2;
    border: 2px dashed #999;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.lc-flipbook__prev:hover,
.lc-flipbook__next:hover {
    background: #ddd6cc;
}

.lc-flipbook__count {
    font-style: italic;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 0.9rem;
    color: #555;
}