.mallorca-book-1571[hidden],
.mallorca-book-1571__page[hidden],
.elementor-element-a88355d[hidden] { display: none !important; }

.mallorca-book-1571 {
    width: min(100%, 552px);
    margin: 15px auto 0;
    font-family: Montserrat, sans-serif;
    color: #1a1a1a;
}

.mallorca-book-1571__stage {
    position: relative;
    isolation: isolate;
    aspect-ratio: 714 / 1013;
    perspective: 1450px;
    touch-action: pan-y pinch-zoom;
    background: #eee8e0;
    border-radius: 3px 8px 8px 3px;
    box-shadow: 1px 1px 0 #e8e0d7, 3px 2px 0 #b8aea3, 5px 3px 0 #e8e0d7, 7px 4px 0 #b8aea3, 0 14px 32px #1a1a1a30;
}

.mallorca-book-1571__stage::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: clamp(8px, 3%, 16px);
    z-index: 2;
    background: linear-gradient(90deg, #1a1a1a20, transparent);
    pointer-events: none;
}

.mallorca-book-1571__page,
.mallorca-book-1571__leaf,
.mallorca-book-1571__leaf-face {
    position: absolute;
    inset: 0;
    border-radius: inherit;
}

.mallorca-book-1571__page img,
.mallorca-book-1571__leaf-face img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: inherit;
    user-select: none;
    -webkit-user-drag: none;
}

.mallorca-book-1571__leaf {
    z-index: 3;
    transform-style: preserve-3d;
    transform-origin: left center;
    pointer-events: none;
}

.mallorca-book-1571__leaf-face {
    backface-visibility: hidden;
    background: #f5efe5;
}

.mallorca-book-1571__leaf-face--back {
    transform: rotateY(180deg);
    background: linear-gradient(90deg, #fcf8f0 84%, #c4b7a7);
}

.mallorca-book-1571__controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 20px;
    font-size: 12px;
}

.mallorca-book-1571__controls button {
    min-height: 44px;
    padding: 8px clamp(8px, 3vw, 18px);
    border: 1px solid #8c1c1a;
    border-radius: 0;
    background: #fff;
    color: #8c1c1a;
    font: 600 12px Montserrat, sans-serif;
    cursor: pointer;
}

.mallorca-book-1571__controls button:disabled {
    opacity: .45;
    cursor: default;
}

.mallorca-book-1571__controls button:hover:not(:disabled) {
    background: #8c1c1a;
    color: #fff;
}

.mallorca-book-1571__controls button:focus-visible {
    outline: 2px solid #8c1c1a;
    outline-offset: 3px;
}
@media (min-width: 768px) {
    .mallorca-book-1571 { width: min(100%, 960px); }

    .mallorca-book-1571__stage {
        aspect-ratio: 1428 / 1013;
        background: transparent;
        box-shadow: none;
        border-radius: 0;
        transition: transform 610ms cubic-bezier(.22,.7,.22,1);
    }

    .mallorca-book-1571__stage.is-cover { transform: translateX(-25%); }
    .mallorca-book-1571__stage::after { content: none; }

    .mallorca-book-1571__page,
    .mallorca-book-1571__leaf {
        width: 50%;
        left: 50%;
    }

    .mallorca-book-1571__page {
        border-radius: 0 5px 5px 0;
        box-shadow: 0 8px 22px #1a1a1a30, 2px 1px 0 #b8aea3, 4px 2px 0 #e8e0d7;
    }

    .mallorca-book-1571__page[data-side="left"] {
        left: 0;
        border-radius: 5px 0 0 5px;
        box-shadow: 0 8px 22px #1a1a1a26, -2px 1px 0 #b8aea3, -4px 2px 0 #e8e0d7;
    }

    .mallorca-book-1571__page::after {
        content: "";
        position: absolute;
        inset: 0 auto 0 0;
        width: 6%;
        background: linear-gradient(90deg, #1a1a1a1c, transparent);
        pointer-events: none;
    }

    .mallorca-book-1571__page[data-side="left"]::after {
        inset: 0 0 0 auto;
        background: linear-gradient(270deg, #1a1a1a1c, transparent);
    }

    .mallorca-book-1571__controls {
        width: 50%;
        margin-inline: auto;
    }
}

@media (max-width: 767px) {
    .mallorca-book-1571__stage {
        overflow: clip;
    }

    .mallorca-book-1571__page[data-side="left"] {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mallorca-book-1571__stage { transition: none; }
}


@media (min-width: 768px) and (max-height: 850px) {
    .mallorca-book-1571 {
        width: min(100%, 960px, calc(max(220px, 100svh - 155px) * 1428 / 1013));
        scroll-margin-top: 80px;
    }

    .mallorca-book-1571__controls {
        width: min(100%, 440px);
        margin-top: 12px;
    }
}