/**
 * Turn.js flipbook - Magazine / book layout for /flipbook/{slug}.
 * Ensure page content and images have real size so they are visible.
 */
.flipbook-turn-wrap {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    overflow: visible;
}

.flipbook-turn-book {
    box-sizing: border-box;
}

.flipbook-turn-book .turn-page {
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
}

/* Force content area to fill the page and be visible */
.flipbook-turn-book .turn-page-content {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    box-sizing: border-box;
}

/* Image must fill the content area with real dimensions so it is visible */
.flipbook-turn-book .turn-page-content img {
    position: relative;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    min-width: 1px;
    min-height: 1px;
    object-fit: contain;
    display: block;
}

/* Canvas (PDF pages) must also fill and scale within the page */
.flipbook-turn-book .turn-page-content canvas {
    position: relative;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    min-width: 1px;
    min-height: 1px;
    object-fit: contain;
    display: block;
}

.flipbook-turn-book .hard .turn-page-content {
    background: #fafafa;
}
