.scene h3 {
    font-size: 1.5em;
    position: absolute;
    top: 2%;
}

.scene {
    position: relative;
    width: 50%;
    min-height: 90%;
    /*margin: 0 5% 5% auto;*/

    perspective: 1000px;
}

.scene .book {
    position: relative;
    width: 100%;
    height: 600px;

    transform-style: preserve-3d;
}

.scene .page {
    position: absolute;
    color: black;
    width: 100%;
    height: 100%;
    padding: 0;

    transition: 1.5s transform;
    transform: translateZ(-1px);
    transform-style: preserve-3d;
    transform-origin: left center;
}

.scene .front,
.scene .back {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    overflow: hidden;

    backface-visibility: hidden;
    background: -webkit-gradient(linear, 0% 0%, 100% 100%, from(#FFFFFF), to(#CCCCCC));
    background: linear-gradient(to bottom right, #fff, #ccc);
}

.scene .back {
    transform: rotateY(180deg);
}

.scene .page.flipped .front .portfolio-info {
    z-index: 0;
}

.scene .portfolio-img {
    max-width: 500px;
    max-height: 500px;
    text-align: center;
    margin: 0 20px;
}

.scene .portfolio-img img.landscape {
    width: 100%;
    height: auto;
}

.scene .portfolio-img img.portrait {
    width: auto;
    height: 100%;
}

.scene .portfolio-item:hover .portfolio-img img {
    transform: none;
}

.scene .page.active {
    z-index: 1;
    transform: translateZ(0);
}

.scene .page.flipped {
    transform: translateZ(0) rotateY(-180deg);
}

.scene .page.flipped:last-of-type {
    z-index: 1;
}

.scene .page .cover-image {
    width: 40%;
    height: auto;
}

.scene .page .cover-image img {
    width: 100%;
    height: auto;
}

.scene .page .front .curl {
    right: 0;
    --page-curl-angle: 225deg;
}.scene .page .back .curl {
     left: 0;
     --page-curl-angle: 135deg;
 }
.scene .page .curl {
    width: 40px;
    height: 40px;
    position: absolute;
    top: 0;
    cursor: pointer;
    background: linear-gradient(
            var(--page-curl-angle),
            #fff,
            #f3f3f3 45%,
            #ddd 50%,
            #aaa 50%,
            #bbb 56%,
            #ccc 62%,
            #f3f3f3 80%,
            #fff 100%
    );
    box-shadow: 0 0 10px rgba(0, 0, 0, .5);
    transition: all .5s ease;
}
.scene .page .curl:before,
.scene .page .curl:after {
    content: '';
    position: absolute;
    z-index: -1;
    left: 12.5%;
    bottom: 5.8%;
    width: 70%;
    max-width: 300px;
    max-height: 100px;
    height: 55%;
    box-shadow: 0 12px 15px rgba(0, 0, 0, .3);
    transform: skew(-10deg) rotate(-6deg);
}
.scene .page .curl:after {
    left: auto;
    right: 5.8%;
    bottom: auto;
    top: 14.16%;
    transform: skew(-15deg) rotate(-84deg);
}
.scene .page:hover .curl {
    width: 50px;
    height: 50px;
}
.scene .page:hover .curl:before,
.scene .page:hover .curl:after {
    box-shadow: 0 24px 30px rgba(0, 0, 0, .3);
}

.scene p {
    margin: 0 0 0.1em;
    text-indent: 1em;
}
