.flipbook-container {
    width: 800px;

    aspect-ratio: 3579 / 2551;

    margin: 20px auto;
    position: relative;
    overflow: hidden;
    border: 1px solid #ddd;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flipbook {
    width: 100%;
    height: 100%;
    position: relative;
}

.flipbook-page {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 1;
}

.flipbook-page img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ✅ Fix: Ensure navigation buttons are visible */
.flipbook-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 24px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    z-index: 999;
    opacity: 0.8;
}

.flipbook-nav:hover {
    background-color: rgba(0, 0, 0, 0.7);
    opacity: 1;
}

.flipbook-prev {
    left: 10px;
}

.flipbook-next {
    right: 10px;
}

@media (max-width: 768px) {
    .flipbook-container {
        width: 90%;
        height: auto;
    }

    .flipbook-nav {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}
