#am-volantini .am-reader {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

#am-volantini .am-reader-head,
#am-volantini .am-reader-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .6rem 1rem;
}

#am-volantini .am-reader-controls {
    justify-content: center;
}

#am-volantini .am-reader-count {
    min-width: 8rem;
    text-align: center;
    color: var(--am-o-muted);
    font-variant-numeric: tabular-nums;
}

#am-volantini .am-reader .am-o-button:disabled {
    background: #e9ded4;
    color: #69544f;
    cursor: default;
}

#am-volantini .am-reader-zoom {
    display: flex;
    align-items: center;
    gap: .3rem;
    justify-content: center;
    font-variant-numeric: tabular-nums;
}

#am-volantini .am-reader-zoom button {
    min-width: 2.75rem;
    min-height: 2.75rem;
    border: 1px solid var(--am-o-edge);
    border-radius: .55rem;
    background: #fff;
    color: var(--am-o-dark);
    font-weight: 700;
}

#am-volantini .am-reader-zoom button[data-am-zoom-reset] {
    min-width: 3.6rem;
    font-size: .9rem;
}

#am-volantini .am-reader-zoom button:disabled {
    color: var(--am-o-muted);
    background: #f3eae0;
}

#am-volantini .am-reader-spread {
    min-height: 14rem;
    min-width: 0;
    padding: 12px;
    overflow: auto;
    border-radius: .8rem;
    background: #efdfd1;
    touch-action: pan-y pinch-zoom;
}

#am-volantini .am-reader-spread[data-zoomed="true"] {
    max-height: min(75vh, 58rem);
    overscroll-behavior-x: contain;
    touch-action: pan-x pan-y pinch-zoom;
}

#am-volantini .am-reader-book {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: max-content;
    margin-inline: auto;
}

#am-volantini .am-reader-sheet {
    position: relative;
    flex: none;
    box-shadow: 0 3px 14px #58342638;
    transform-origin: left center;
}

#am-volantini .am-reader-sheet:first-child:not(:only-child) {
    transform-origin: right center;
}

#am-volantini .am-reader-sheet canvas {
    display: block;
    width: 100%;
    height: auto;
    background: #fff;
}

