.pop-in-flipbook {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px;
    visibility: hidden;
    transition: all .3s ease-in-out;
    z-index: 1000;
}
.pop-in-flipbook.show {
    opacity: 1;
    visibility: visible;
}
.pop-in-flipbook-shadow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    cursor: pointer;
    background-color: rgba(0,0,0,0.7);
}
.pop-in-flipbook-container,
.pop-in-flipbook-container-mobile {
    width: 100%;
    height: 100%;
    position: relative;
    max-width: 1200px;
    max-width: calc(( 100vh - 100px ) * 1.41414141414141 );
    display: flex;
    align-items: center;
    justify-content: center;
}
body.smaller-than-a4-book .pop-in-flipbook-container {
    height: calc( ( 100vw - 100px ) / 1.41414141414141 );
    max-width: 100%;
}

.pop-in-flipbook-container-mobile {
    display: none;
    max-width: calc(( 100vh - 100px ) * 0.70707070707 );
}
body.smaller-than-a4 .pop-in-flipbook-container-mobile {
    height: calc( ( 100vw - 100px ) / 0.70707070707 );
    max-width: 100%;
}

.pop-in-flipbook-close {
    position: fixed;
    top: 0;
    right: 0;
    padding: 0;
    background-color: transparent;
    border: 0;
    height: 50px;
    width: 50px;
    cursor: pointer;
}
.pop-in-flipbook-close::before,
.pop-in-flipbook-close::after {
    content: "";
    width: 100%;
    position: absolute;
    top: 50%;
    left: 0;
    height: 4px;
    background-color: #ddd;
    transform: rotate(45deg);
}
.pop-in-flipbook-close::after {
    transform: rotate(-45deg);
}
.flipbook-container {
    height: 100%;
    width: 100%;
    background-color: #fff;
}
.flipbook-container iframe {
    width: 100%;
    height: 100%;
}
.flipbook-list {
    height: 100%;
}
.flipbook-list .page {
    background-size: cover;
}

.pop-in-flipbook-btn {
    position: absolute;
    top: 0;
    left: -50px;
    bottom: 0;
    border: none;
    padding: 0;
    background-color: transparent;
    opacity: 0.5;
    width: 50px;
    cursor: pointer;
    transition: all .3s ease-in-out;
}
.pop-in-flipbook-btn.next {
    left: auto;
    right: -50px;
}
.pop-in-flipbook-btn:hover {
    opacity: 1;
}
.pop-in-flipbook-btn::before {
    content: "";
    border-bottom: solid 1px #fff;
    border-left: solid 1px #fff;
    position: absolute;
    top: calc( 50% - 28px );
    left: 30%;
    width: 40px;
    height: 40px;
    transform: rotate( 45deg );
}
.pop-in-flipbook-btn.next::before {
    left: auto;
    right: 30%;
    transform: rotate( -135deg );
}



@media screen and ( max-width: 800px ) {
    
    .pop-in-flipbook-container {
        display: none;
    }
    
    .pop-in-flipbook-container-mobile {
        display: block;
        max-width: 100%;
    }
    
    .pop-in-flipbook {
        padding: 0;
    }
    .pop-in-flipbook-close {
        height: 30px;
        width: 30px;
    }
    .pop-in-flipbook-close::before,
    .pop-in-flipbook-close::after {
        background-color: #000;
    }
}