body{font-family:Raleway,sans-serif;color:beige;}.flipbook{position:relative;width:800px;height:560px;perspective:2000px;margin:10px auto}.flipbook .page { position: absolute; overflow: hidden; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); display: flex; width: 100%; height: 100%; padding: 5px; box-sizing: border-box; background: red; border: 1px solid #ccc; transform-style: preserve-3d; transition: transform 0.6s ease; transform-origin: left; backface-visibility: visible; box-shadow: 2px 3px; cursor: pointer; object-fit: cover; flex-direction: column; justify-content: center; align-items: center; } .flipbook .page::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(120deg, rgba(255,255,255,0.2), rgba(255,255,255,0)); opacity: 0; transition: opacity 0.4s ease-in-out; pointer-events: none; } .flipbook .page:hover::after { opacity: 1; } @keyframes glowPulse { 0% { opacity: 0; } 50% { opacity: 0.3; } 100% { opacity: 0; } } .page-img{width:calc(100% - 10px);height:calc(100% - 10px);object-fit:contain; display: inline-flex;}.page.back .left-photo+h2,.page.back .left-photo+h2~*{display:none}.page.flipped{transform:rotateY(-180deg)}.page:nth-child(1){z-index:14}.page:nth-child(2){z-index:13}.page:nth-child(3){z-index:12}.page:nth-child(4){z-index:11}.page:nth-child(5){z-index:10}.page:nth-child(6){z-index:9}.page:nth-child(7){z-index:8}.page:nth-child(8){z-index:7}.page:nth-child(9){z-index:6}.page:nth-child(10){z-index:5}.page:nth-child(11){z-index:4}.page:nth-child(12){z-index:3}.page:nth-child(13){z-index:2}.page:nth-child(14){z-index:1}.controls{text-align:center;margin-top:20px}.controls button{padding:8px 16px;margin:0 5px}