
/* ##### ##### ##### PAGEFLIP-WRAPPER ##### ##### ##### */

#pageflip {
    position: relative;
}

#pf-stage,
#pf-book {
    position: static !important;

    .pf-book-container {

        .pf-left-side, .pf-right-side {
            background-color: #fff;
        }
    }
}

.pageflip-wrapper {
    /* flex justify-center items-center */
    display: flex;
    padding: 0;
    overflow: auto !important;
    height: auto !important;

    /* STAGE WIDTH AND HEIGHT... */
    #pageflip {
        background-color: inherit;

        #pf-stage {
            background-color: inherit;
            max-width: 100vw;
            overflow: visible !important;
       }

        &.photobook {
            #pf-stage {
                @media screen and (min-width: 640px) {
                    max-width: 75vw;
                }
                @media screen and (min-width: 1024px) {
                    max-width: 65vw;
                }
                @media screen and (min-width: 1400px) {
                    max-width: 55vw;
                }
                @media screen and (min-width: 2800px) {
                    max-width: 45vw;
                }
            }
        }
        &.photobook,
        &.calendar {
            #pf-controls {
                #b-zoomin,
                #b-zoomout {
                    display: none;
                }
            }
            &.single_tall {
                --photopaper-oversize-reducer-landscape: 0vw;
                --photopaper-oversize-reducer-portrait: 0vw;
                /* All panorama and landscape calendars on photopaper needs to be reduced a little bit
                 * due to some size differences in relation to their standard paper variants! */
                &.photopaper-oversize {
                    --photopaper-oversize-reducer-landscape: 1.25vw;
                    --photopaper-oversize-reducer-portrait: 4vw;
                }
                #pf-stage {
                    margin-top: calc(-46% + var(--photopaper-oversize-reducer-portrait)) !important;
                    //height: auto !important;
                    max-width: calc(80vw - var(--photopaper-oversize-reducer-portrait));
                    max-height: 158vw;
                    @media screen and (min-width: 580px) and (orientation: portrait) {
                        margin-top: calc(-35% + var(--photopaper-oversize-reducer-portrait)) !important;
                        max-width: calc(60vw - var(--photopaper-oversize-reducer-portrait));
                        max-height: 120vw;
                    }
                    @media screen and (min-width: 800px) and (orientation: portrait) {
                        margin-top: calc(-30% + var(--photopaper-oversize-reducer-portrait)) !important;
                        max-width: calc(50vw - var(--photopaper-oversize-reducer-portrait));
                        max-height: 102vw;
                    }
                    @media screen and (min-width: 1200px) and (orientation: portrait) {
                        margin-top: calc(-25% + var(--photopaper-oversize-reducer-portrait)) !important;
                        max-width: calc(40vw - var(--photopaper-oversize-reducer-portrait));
                        max-height: calc(82vw - var(--photopaper-oversize-reducer-portrait));
                    }
                    @media screen and (min-width: 2000px) and (orientation: portrait) {
                        margin-top: calc(-500px + var(--photopaper-oversize-reducer-portrait)) !important;
                        max-width: calc(760px - var(--photopaper-oversize-reducer-portrait));
                        max-height: 1480px;
                    }
                    @media screen and (max-width: 679px) and (orientation: landscape) {
                        margin-top: calc(-18% + var(--photopaper-oversize-reducer-landscape)) !important;
                        max-width: calc(33vw - var(--photopaper-oversize-reducer-landscape));
                        max-height: 60vw;
                    }
                    @media screen and (min-width: 680px) and (orientation: landscape) {
                        margin-top:calc(-15% + var(--photopaper-oversize-reducer-landscape)) !important;
                        max-width: calc(28vw - var(--photopaper-oversize-reducer-landscape));
                        max-height: 52vw;
                    }
                    @media screen and (min-width: 900px) and (orientation: landscape) {
                        margin-top: calc(-16% + var(--photopaper-oversize-reducer-landscape)) !important;
                        max-width: calc(28vw - var(--photopaper-oversize-reducer-landscape));
                        max-height: 53vw;
                    }
                    @media screen and (min-width: 1000px) and (orientation: landscape) {
                        margin-top: calc(-20% + var(--photopaper-oversize-reducer-landscape)) !important;
                        max-width: calc(34vw - var(--photopaper-oversize-reducer-landscape));
                        max-height: 68vw;
                    }
                    @media screen and (min-width: 1200px) and (orientation: landscape) {
                        margin-top: calc(-16% + var(--photopaper-oversize-reducer-landscape)) !important;
                        max-width: calc(28vw - var(--photopaper-oversize-reducer-landscape));
                        max-height: 55vw;
                    }
                    @media screen and (min-width: 1400px) and (orientation: landscape) {
                        margin-top: calc(-15% + var(--photopaper-oversize-reducer-landscape)) !important;
                        max-width: calc(26vw - var(--photopaper-oversize-reducer-landscape));
                        max-height: 52vw;
                    }
                    @media screen and (min-width: 1600px) and (orientation: landscape) {
                        margin-top: calc(-14% + var(--photopaper-oversize-reducer-landscape)) !important;
                        max-width: calc(24vw - var(--photopaper-oversize-reducer-landscape));
                        max-height: 49vw;
                    }
                    @media screen and (min-width: 2000px) and (orientation: landscape) {
                        margin-top: calc(-13% + var(--photopaper-oversize-reducer-landscape)) !important;
                        max-width: calc(22vw - var(--photopaper-oversize-reducer-landscape));
                        max-height: 45vw;
                    }
                    @media screen and (min-width: 3400px) and (orientation: landscape) {
                        margin-top: calc(-400px - var(--photopaper-oversize-reducer-landscape)) !important;
                        margin-bottom: calc(var(--photopaper-oversize-reducer-landscape) * 2) !important;
                        max-width: 720px;
                        max-height: 1480px;                    }
                }
            }
            &.single_wide {
                --photopaper-oversize-reducer-landscape: 0vw;
                --photopaper-oversize-reducer-portrait: 0vw;
                /* All panorama and landscape calendars on photopaper needs to be reduced a little bit
                 * due to some size differences in relation to their standard paper variants! */
                &.photopaper-oversize {
                    --photopaper-oversize-reducer-landscape: 2.5vw;
                    --photopaper-oversize-reducer-portrait: 4.5vw;
                }
                #pf-stage {
                    margin-top: calc(-8% + var(--photopaper-oversize-reducer-landscape)) !important;
                    height: auto !important;
                    max-width: calc(80vw - var(--photopaper-oversize-reducer-landscape));
                    max-height: 78vw;
                    @media screen and (min-width: 580px) and (orientation: portrait) {
                        margin-top: calc(-4% + var(--photopaper-oversize-reducer-portrait)) !important;
                        max-width: calc(80vw - var(--photopaper-oversize-reducer-portrait));
                        max-height: 76vw;
                    }
                    @media screen and (min-width: 800px) and (orientation: portrait) {
                        margin-top: calc(-3% + var(--photopaper-oversize-reducer-portrait)) !important;
                        max-width: calc(70vw - var(--photopaper-oversize-reducer-portrait));
                        max-height: 68vw;
                        max-height: 60vw;
                    }
                    @media screen and (min-width: 1200px) and (orientation: portrait) {
                        margin-top: calc(-1% + var(--photopaper-oversize-reducer-portrait)) !important;
                        max-width: calc(60vw - var(--photopaper-oversize-reducer-portrait));
                        max-height: 600px;
                    }
                    @media screen and (min-width: 1790px) and (orientation: portrait) {
                        margin-top: calc(0% + var(--photopaper-oversize-reducer-portrait)) !important;
                        max-width: calc(1100px - var(--photopaper-oversize-reducer-portrait));
                        max-height: 600px;
                    }
                    @media screen and (max-width: 679px) and (orientation: landscape) {
                        margin-top: calc(-4% + var(--photopaper-oversize-reducer-landscape)) !important;
                        max-width: calc(58vw - var(--photopaper-oversize-reducer-landscape));
                        max-height: 56vw;
                    }
                    @media screen and (min-width: 680px) and (orientation: landscape) {
                        margin-top: calc(-2% + var(--photopaper-oversize-reducer-landscape)) !important;
                        max-width: calc(48vw - var(--photopaper-oversize-reducer-landscape));
                        max-height: 47vw;
                    }
                    @media screen and (min-width: 900px) and (orientation: landscape) {
                        margin-top: calc(-1% + var(--photopaper-oversize-reducer-landscape)) !important;
                        max-width: calc(46vw - var(--photopaper-oversize-reducer-landscape));
                        max-height: 44vw;
                    }
                    @media screen and (min-width: 1000px) and (orientation: landscape) {
                        margin-top: calc(-2% + var(--photopaper-oversize-reducer-landscape)) !important;
                        max-width: calc(37vw - var(--photopaper-oversize-reducer-landscape));
                        max-height: 32vw;
                    }
                    @media screen and (min-width: 1800px) and (orientation: landscape) {
                        margin-top: calc(-2% + var(--photopaper-oversize-reducer-landscape)) !important;
                        max-width: calc(37vw - var(--photopaper-oversize-reducer-landscape));
                        max-height: 600px;
                    }
                    @media screen and (min-width: 2300px) and (orientation: landscape) {
                        margin-top: calc(-30px - var(--photopaper-oversize-reducer-landscape)) !important;
                        margin-bottom: calc(var(--photopaper-oversize-reducer-landscape) * 2) !important;
                        max-width: 1100px;
                        max-height: 600px;
                    }
                }
            }
            &.double_wide {
                #pf-stage {
                    margin-top: -2% !important;
                    height: auto !important;
                    max-width: 80vw;
                    max-height: 110vw;
                    @media screen and (min-width: 580px) and (orientation: portrait) {
                        max-width: 62vw;
                        max-height: 86vw;
                    }
                    @media screen and (min-width: 800px) and (orientation: portrait) {
                        margin-top: 0 !important;
                        max-width: 54vw;
                        max-height: 76vw;
                    }
                    @media screen and (min-width: 1200px) and (orientation: portrait) {
                        max-width: 45vw;
                        max-height: 64vw;
                    }
                    @media screen and (min-width: 1790px) and (orientation: portrait) {
                        margin-top: 0 !important;
                        max-width: 1000px;
                        max-height: 2000px;
                    }
                    @media screen and (max-width: 679px) and (orientation: landscape) {
                        margin-top: -2% !important;
                        max-width: 38vw;
                        max-height: 50vw;
                    }
                    @media screen and (min-width: 680px) and (orientation: landscape) {
                        margin-top: -1% !important;
                        max-width: 28vw;
                        max-height: 39vw;
                    }
                    @media screen and (min-width: 900px) and (orientation: landscape) {
                        margin-top: -1% !important;
                        max-width: 29vw;
                        max-height: 39.5vw;
                    }
                    @media screen and (min-width: 1000px) and (orientation: landscape) {
                        margin-top: 0 !important;
                        max-width: 38vw;
                        max-height: 53vw;
                    }
                    @media screen and (min-width: 1600px) and (orientation: landscape) {
                        margin-top: 0 !important;
                        max-width: 28vw;
                        max-height: 40vw;
                    }
                    @media screen and (min-width: 2200px) and (orientation: landscape) {
                        margin-top: 0 !important;
                        max-width: 22vw;
                        max-height: 31vw;
                    }
                    @media screen and (min-width: 3400px) and (orientation: landscape) {
                        margin-top: 20px !important;
                        max-width: 820px;
                        max-height: 1160px;
                    }
                }
            }
            &.single_square {
                #pf-stage {
                    margin-top: -32% !important;
                    height: auto !important;
                    max-width: 80vw;
                    max-height: 118vw;
                    @media screen and (min-width: 800px) and (orientation: portrait) {
                        margin-top: -30% !important;
                        max-width: 70vw;
                        max-height: 104vw;
                    }
                    @media screen and (min-width: 1200px) and (orientation: portrait) {
                        margin-top: -25% !important;
                        max-width: 60vw;
                        max-height: 90vw;
                    }
                    @media screen and (min-width: 1790px) and (orientation: portrait) {
                        margin-top: -22% !important;
                        max-width: 1000px;
                        max-height: 1520px;
                    }
                    @media screen and (max-width: 679px) and (orientation: landscape) {
                        margin-top: -14% !important;
                        max-width: 40vw;
                        max-height: 58vw;
                    }
                    @media screen and (min-width: 680px) and (orientation: landscape) {
                        margin-top: -14% !important;
                        max-width: 36vw;
                        max-height: 52vw;
                    }
                    @media screen and (min-width: 900px) and (orientation: landscape) {
                        margin-top: -14% !important;
                        max-width: 36vw;
                        max-height: 52vw;
                    }
                    @media screen and (min-width: 1000px) and (orientation: landscape) {
                        margin-top: -12% !important;
                        max-width: 36vw;
                        max-height: 54vw;
                    }
                    @media screen and (min-width: 3400px) and (orientation: landscape) {
                        margin-top: -360px !important;
                        max-width: 1100px;
                        max-height: 1640px;
                    }
                }
            }
            &.single_ex_tall:not(.CAL12) {
                #pf-stage {
                    margin-top: -40% !important;
                    height: auto !important;
                    max-width: 47vw;
                    max-height: 158vw;
                    @media screen and (min-width: 440px) and (orientation: portrait) {
                        margin-top: -39% !important;
                        max-width: 44vw;
                        max-height: 158vw;
                    }
                    @media screen and (min-width: 580px) and (orientation: portrait) {
                        margin-top: -32% !important;
                        max-width: 35vw;
                        max-height: 128vw;
                    }
                    @media screen and (min-width: 800px) and (orientation: portrait) {
                        margin-top: -30% !important;
                        max-width: 31vw;
                        max-height: 112vw;
                    }
                    @media screen and (min-width: 920px) and (orientation: portrait) {
                        margin-top: -30% !important;
                        max-width: 29vw;
                        max-height: 112vw;
                    }
                    @media screen and (min-width: 1200px) and (orientation: portrait) {
                        margin-top: -20% !important;
                        max-width: 22vw;
                        max-height: 83vw;
                    }
                    @media screen and (min-width: 1600px) and (orientation: portrait) {
                        margin-top: -20% !important;
                        max-width: 21vw;
                        max-height: 82vw;
                    }
                    @media screen and (min-width: 2000px) and (orientation: portrait) {
                        margin-top: -500px !important;
                        max-width: 460px;
                        max-height: 1840px;
                        height: 1840px !important;
                    }
                    @media screen and (max-width: 520px) and (orientation: landscape) {
                        margin-top: -14% !important;
                        max-width: 24vw;
                        max-height: 66vw;
                    }
                    @media screen and (min-width: 521px) and (orientation: landscape) {
                        margin-top: -12% !important;
                        max-width: 20vw;
                        max-height: 60vw;
                    }
                    @media screen and (min-width: 680px) and (orientation: landscape) {
                        margin-top: -12% !important;
                        max-width: 17vw;
                        max-height: 52vw;
                    }
                    @media screen and (min-width: 720px) and (orientation: landscape) {
                        margin-top: -12% !important;
                        max-width: 18vw;
                        max-height: 52vw;
                    }
                    @media screen and (min-width: 780px) and (orientation: landscape) {
                        margin-top: -12% !important;
                        max-width: 16.5vw;
                        max-height: 49vw;
                    }
                    @media screen and (min-width: 880px) and (orientation: landscape) {
                        margin-top: -13% !important;
                        max-width: 17vw;
                        max-height: 53vw;
                    }
                    @media screen and (min-width: 910px) and (orientation: landscape) {
                        margin-top: -13% !important;
                        max-width: 17vw;
                        max-height: 52vw;
                    }
                    @media screen and (min-width: 1000px) and (orientation: landscape) {
                        margin-top: -17% !important;
                        max-width: 20vw;
                        max-height: 70vw;
                    }
                    @media screen and (min-width: 1200px) and (orientation: landscape) {
                        margin-top: -13% !important;
                        max-width: 16vw;
                        max-height: 56vw;
                    }
                    @media screen and (min-width: 1400px) and (orientation: landscape) {
                        margin-top: -12% !important;
                        max-width: 15vw;
                        max-height: 52vw;
                    }
                    @media screen and (min-width: 1600px) and (orientation: landscape) {
                        margin-top: -14% !important;
                        max-width: 15vw;
                        max-height: 54vw;
                    }
                    @media screen and (min-width: 1800px) and (orientation: landscape) {
                        margin-top: -12% !important;
                        max-width: 14vw;
                        max-height: 52vw;
                    }
                    @media screen and (min-width: 2000px) and (orientation: landscape) {
                        margin-top: -13% !important;
                        max-width: 12vw;
                        max-height: 48vw;
                    }
                    @media screen and (min-width: 3400px) and (orientation: landscape) {
                        margin-top: -500px !important;
                        max-width: 460px;
                        max-height: 1840px;
                    }
                }
            }
            &.single_ex_tall.CAL12 {
                #pf-stage {
                    margin-top: -40% !important;
                    height: auto !important;
                    max-width: 55vw;
                    max-height: 158vw;
                    @media screen and (min-width: 440px) and (orientation: portrait) {
                        margin-top: -39% !important;
                        max-width: 53vw;
                        max-height: 158vw;
                    }
                    @media screen and (min-width: 580px) and (orientation: portrait) {
                        margin-top: -32% !important;
                        max-width: 42vw;
                        max-height: 128vw;
                    }
                    @media screen and (min-width: 800px) and (orientation: portrait) {
                        margin-top: -30% !important;
                        max-width: 37vw;
                        max-height: 112vw;
                    }
                    @media screen and (min-width: 920px) and (orientation: portrait) {
                        margin-top: -30% !important;
                        max-width: 36vw;
                        max-height: 112vw;
                    }
                    @media screen and (min-width: 1200px) and (orientation: portrait) {
                        margin-top: -20% !important;
                        max-width: 26vw;
                        max-height: 82vw;
                    }
                    @media screen and (min-width: 1600px) and (orientation: portrait) {
                        margin-top: -21% !important;
                        max-width: 26vw;
                        max-height: 83vw;
                    }
                    @media screen and (min-width: 2000px) and (orientation: portrait) {
                        margin-top: -500px !important;
                        max-width: 570px;
                        max-height: 1840px;
                        height: 1840px !important;
                    }
                    @media screen and (max-width: 520px) and (orientation: landscape) {
                        margin-top: -14% !important;
                        max-width: 26vw;
                        max-height: 62vw;
                    }
                    @media screen and (min-width: 521px) and (orientation: landscape) {
                        margin-top: -14% !important;
                        max-width: 23vw;
                        max-height: 58vw;
                    }
                    @media screen and (min-width: 680px) and (orientation: landscape) {
                        margin-top: -14% !important;
                        max-width: 23vw;
                        max-height: 60vw;
                    }
                    @media screen and (min-width: 720px) and (orientation: landscape) {
                        margin-top: -14% !important;
                        max-width: 21vw;
                        max-height: 54vw;
                    }
                    @media screen and (min-width: 780px) and (orientation: landscape) {
                        margin-top: -12% !important;
                        max-width: 19.5vw;
                        max-height: 50vw;
                    }
                    @media screen and (min-width: 880px) and (orientation: landscape) {
                        margin-top: -14% !important;
                        max-width: 20vw;
                        max-height: 53vw;
                    }
                    @media screen and (min-width: 910px) and (orientation: landscape) {
                        margin-top: -14% !important;
                        max-width: 19.5vw;
                        max-height: 52vw;
                    }
                    @media screen and (min-width: 1000px) and (orientation: landscape) {
                        margin-top: -18% !important;
                        max-width: 24vw;
                        max-height: 70vw;
                    }
                    @media screen and (min-width: 1200px) and (orientation: landscape) {
                        margin-top: -13% !important;
                        max-width: 20vw;
                        max-height: 58vw;
                    }
                    @media screen and (min-width: 1400px) and (orientation: landscape) {
                        margin-top: -14% !important;
                        max-width: 18vw;
                        max-height: 54vw;
                    }
                    @media screen and (min-width: 1800px) and (orientation: landscape) {
                        margin-top: -11% !important;
                        max-width: 16vw;
                        max-height: 49vw;
                    }
                    @media screen and (min-width: 2000px) and (orientation: landscape) {
                        margin-top: -11% !important;
                        max-width: 14vw;
                        max-height: 44vw;
                    }
                    @media screen and (min-width: 3400px) and (orientation: landscape) {
                        margin-top: -380px !important;
                        max-width: 460px;
                        max-height: 1440px;
                    }
                }
            }
            &.single_ex_wide {
                #pf-stage {
                    margin-top: -4% !important;
                    height: auto !important;
                    max-width: 100vw;
                    max-height: 70vw;
                    @media screen and (min-width: 800px) and (orientation: portrait) {
                        max-width: 90vw;
                        max-height: 60vw;
                    }
                    @media screen and (min-width: 1000px) and (orientation: portrait) {
                        margin-top: -2% !important;
                        max-width: 70vw;
                        max-height: 46vw;
                    }
                    @media screen and (min-width: 1500px) and (orientation: portrait) {
                        margin-top: -50px !important;
                        max-width: 1200px;
                        max-height: 660px;
                    }
                    @media screen and (max-width: 679px) and (orientation: landscape) {
                        margin-top: -12% !important;
                        max-width: 100vw;
                        max-height: 58vw;
                    }
                    @media screen and (min-width: 680px) and (orientation: landscape) {
                        margin-top: -11% !important;
                        max-width: 83vw;
                        max-height: 49vw;
                    }
                    @media screen and (min-width: 900px) and (orientation: landscape) {
                        margin-top: -10% !important;
                        max-width: 84vw;
                        max-height: 48vw;
                    }
                    @media screen and (min-width: 1000px) and (orientation: landscape) {
                        margin-top: -8% !important;
                        max-width: 80vw;
                        max-height: 48vw;
                    }
                    @media screen and (min-width: 1320px) and (orientation: landscape) {
                        margin-top: -50px !important;
                        max-width: 1200px;
                        max-height: 660px;
                    }
                }
            }
            &.double_ex_wide {
                #pf-stage {
                    margin-top: 2% !important;
                    height: auto !important;
                    max-width: 100vw;
                    max-height: 76vw;
                    @media screen and (min-width: 800px) and (orientation: portrait) {
                        max-width: 90vw;
                        max-height: 70vw;
                    }
                    @media screen and (min-width: 1000px) and (orientation: portrait) {
                        max-width: 70vw;
                        max-height: 51vw;
                    }
                    @media screen and (min-width: 1500px) and (orientation: portrait) {
                        margin-top: 40px !important;
                        max-width: 1200px;
                        max-height: 860px;
                    }
                    @media screen and (max-width: 679px) and (orientation: landscape) {
                        margin-top: 0 !important;
                        max-width: 60vw;
                        max-height: 46vw;
                    }
                    @media screen and (min-width: 680px) and (orientation: landscape) {
                        margin-top: 0 !important;
                        max-width: 50vw;
                        max-height: 38vw;
                    }
                    @media screen and (min-width: 900px) and (orientation: landscape) {
                        margin-top: 0 !important;
                        max-width: 50vw;
                        max-height: 38vw;
                    }
                    @media screen and (min-width: 1000px) and (orientation: landscape) {
                        margin-top: 0 !important;
                        max-width: 50vw;
                        max-height: 38vw;
                    }
                    @media screen and (min-width: 1320px) and (orientation: landscape) {
                        margin-top: 10px !important;
                        max-width: 700px;
                        max-height: 520px;
                    }
                    @media screen and (min-width: 1600px) and (orientation: landscape) {
                        margin-top: 20px !important;
                        max-width: 900px;
                        max-height: 660px;
                    }
                    @media screen and (min-width: 2000px) and (orientation: landscape) {
                        margin-top: 20px !important;
                        max-width: 1200px;
                        max-height: 900px;
                    }
                }
            }
            &.book_alike {
                #pf-stage {
                    @media screen and (min-width: 640px) {
                        max-width: 75vw;
                    }
                    @media screen and (min-width: 1024px) {
                        max-width: 65vw;
                    }
                    @media screen and (min-width: 1400px) {
                        max-width: 55vw;
                    }
                    @media screen and (min-width: 2800px) {
                        max-width: 45vw;
                    }
                }
            }
        }
    }
}

/* ##### ##### ##### PAGEFLIP-CONTROLS ##### ##### ##### */

#pf-controls {
    display: flex;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
}
#pf-controls [class*='pf-'] {
    float: none;
}
#pageflip-controls {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-columns: 0% auto min-content;
    grid-template-areas: "left-buttons centered-buttons right-buttons";
    width: 100%;
    padding: .5rem 1rem;
}
@media screen and (min-width: 640px) {
    #pageflip-controls {
        grid-template-columns: minmax(50px, 33%) 75% minmax(50px, 33%);
        grid-template-areas: "left-buttons centered-buttons right-buttons";
    }
}

#pageflip-controls .pf-left-buttons,
#pageflip-controls .pf-centered-buttons,
#pageflip-controls .pf-right-buttons {
    width: auto !important;
}
#pageflip-controls .pf-left-buttons {
    grid-area: left-buttons;
    display: none;
    /* display: inline-flex; */
    flex-direction: row;
    justify-content: start;
}
#pageflip-controls .pf-centered-buttons {
    grid-area: centered-buttons;
}
#pageflip-controls .pf-right-buttons {
    grid-area: right-buttons;
    display: inline-flex;
    flex-direction: row;
    justify-content: flex-end;
}
#pf-controls [class*='-buttons'] {
    display: inline-flex;
    flex-direction: row;
}
#pf-controls [class*='-buttons'] [class*='-button'] {
    width: auto;
}
@media screen and (min-width: 640px) {
    #pf-controls [class*='-buttons'] [class*='-button'] {
        margin: 0 .25rem;
    }
}
#pf-pfpager {
    display: flex;
    align-items: center;
    justify-content: center;
}

#pageflip .pf-page-container {
    background-repeat: no-repeat !important;
    background-size: cover !important;
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    -ms-backface-visibility: hidden;
    -webkit-transform: translateX(0);
}
#pageflip .pf-left-side {
    background: #fff;
}
#pageflip #pageflip-controls {
    color: #4c4c4c;
    background: #fff;
    bottom: 0;
}
#pageflip #pageflip-controls form {
    width: auto;
    background: none;
    padding: 0;
}
#pageflip #pageflip-controls form input {
    box-shadow: none;
    width: 120px;
    font-size: .8125rem;
}
@media screen and (min-width: 640px) {
    #pageflip #pageflip-controls form input {
        width: 140px;
        font-size: .875rem;
    }
}
#pageflip #pageflip-controls .fa {
    -webkit-transition: color 0.3s;
    transition: color 0.3s;
    cursor: pointer;
    padding: 4px 5px 10px 5px;
    font-size: 1.15em !important;
}
#pageflip #pageflip-controls .fa:hover {
    color: #c30c15;
}
#pageflip #pageflip-controls .pf-centered-buttons .fa {
    padding-top: 0;
    font-size: 2.2em !important;
}
#pageflip #pageflip-controls [class*='-buttons'] svg {
    width: auto;
    height: 24px;
    padding: .25rem;
    margin: 0 .125rem;
    cursor: pointer;
}
@media screen and (min-width: 640px) {
    #pageflip #pageflip-controls [class*='-buttons'] svg {
        height: 28px;
        padding: .25rem;
        margin: 0 .125rem;
    }
}
#pageflip #pageflip-controls .pf-control-bar-button:not(.pf-disabled):hover g {
    fill: #e10019;
    cursor: pointer;
}

/* ##### ##### ##### NO CREDITS ON CONTROLS ##### ##### ##### */

.pageflip-credits {
    display: none;
}
