.flipbook-trigger-fc2797e0 {
    display: inline-block;
    cursor: pointer;
    text-decoration: underline;
    font-weight: 500;
}

.flipbook-modal-fc2797e0 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

/* Floating Zoom Controls - Global (including mobile) */
.flipbook-modal-controls-fc2797e0 {
    position: fixed; /* Changed from absolute to fixed for iOS Safari */
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 2147483647; /* Max z-index to ensure it sits above everything */
    background: rgba(0, 0, 0, 0.7); /* Slightly darker for better contrast */
    padding: 10px 20px;
    border-radius: 30px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px); /* Safari support */
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.flipbook-modal-controls-fc2797e0 button {
    width: 44px; /* Slightly larger for easier tapping on mobile */
    height: 44px;
    background: transparent;
    border: none;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.flipbook-modal-controls-fc2797e0 button:hover,
.flipbook-modal-controls-fc2797e0 button:active {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.flipbook-modal-controls-fc2797e0 button svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.flipbook-modal-close-fc2797e0 {
    position: fixed; /* Changed to fixed */
    top: 25px;
    right: 25px;
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    cursor: pointer;
    z-index: 2147483647;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.flipbook-modal-close-fc2797e0:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.flipbook-modal-close-fc2797e0 svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.flipbook-mobile-legend-fc2797e0 {
    display: none;
    color: #fff;
    background: rgba(0,0,0,0.6);
    padding: 10px 20px;
    border-radius: 20px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
    z-index: 15;
    position: absolute;
    top: 80px;
}

@media (max-width: 767px) {
    .flipbook-mobile-legend-fc2797e0 {
        display: block;
    }
    
    /* Ensure controls are prominently placed above bottom edge on mobile */
    .flipbook-modal-controls-fc2797e0 {
        bottom: 80px; /* Moved up to avoid iOS Safari bottom navigation bar */
        padding: 10px 20px;
        gap: 15px;
    }
    
    .flipbook-modal-close-fc2797e0 {
        top: 20px;
        right: 20px;
    }
}

@media (max-width: 767px) and (orientation: landscape) {
    .flipbook-mobile-legend-fc2797e0 {
        display: none;
    }
    .flipbook-modal-controls-fc2797e0 {
        bottom: 20px; /* Less padding needed in landscape */
    }
}

.flipbook-modal-content-fc2797e0 {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: auto;
}

.flipbook-loader-fc2797e0 {
    color: #fff;
    font-size: 20px;
    position: absolute;
    z-index: 5;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.flipbook-wrapper-fc2797e0 {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: visible; 
}

.flipbook-book-fc2797e0 {
    background: transparent;
    margin: 0 auto !important;
}

.flipbook-book-fc2797e0 .page {
    background-color: #fff;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0,0,0,0.3);
}

.flipbook-book-fc2797e0 canvas {
    width: 100%;
    height: 100%;
    object-fit: contain;
}