@charset "UTF-8";
/* inner-peace-flipbook.css */

/* ===== Layout wrapper ===== */
.ip-flipbook-section {
    max-width: 1400px;
    margin: 60px auto;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ip-flipbook-section h2 {
    color: #6B7A99;
    margin-bottom: 30px;
    text-align: center;
    width: 100%;
}

/* ===== Scaling wrapper ===== */
.ip-flipbook-scale-wrap {
    width: 700px;
    height: 438px;
    transform-origin: top center;
    position: relative;
    z-index: 200;
}

.ip-flipbook-outer {
    width: 700px;
    overflow: visible;
    position: relative;
    z-index: 200;
}

/* ===== Flipbook container ===== */
#ip-flipbook-container {
    width: 700px;
    height: 438px;
    position: relative;
    z-index: 200;
}

#ip-flipbook-container,
#ip-flipbook-container canvas,
.ip-page,
.ip-page img {
    outline: none;
    border: none;
}

/* ===== Page styling ===== */
.ip-page {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: transparent;
}

.ip-page img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ===== Navigation ===== */
.ip-flipbook-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding: 0 20px;
    gap: 20px;
    width: 700px;
    position: relative;
    z-index: 100;
}

.ip-flipbook-scrubber {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    border-radius: 2px;
    background: #454758;
    outline: none;
    cursor: pointer;
}

.ip-flipbook-scrubber::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #6B7A99;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
    transition: background 0.2s, transform 0.2s;
}

.ip-flipbook-scrubber::-webkit-slider-thumb:hover {
    background: #2F3858;
    transform: scale(1.2);
}

.ip-flipbook-scrubber::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #6B7A99;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

/* ===== Nav buttons ===== */
.nav-btn {
    background-color: #2F3858;
    color: #8D99BB;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    flex-shrink: 0;
}

.nav-btn:hover:not(:disabled) { background-color: #6B7A99; color: #1a1c1f; transform: scale(1.1); }
.nav-btn:disabled { background-color: #454758; cursor: not-allowed; opacity: 0.5; }

.ip-page-counter {
    color: #6B7A99;
    font-size: 18px;
    margin-top: 12px;
    position: relative;
    z-index: 100;
}

/* ===== Zoom button ===== */
.ip-zoom-btn {
    background: none;
    border: none;
    color: #6B7A99;
    font-size: 22px;
    cursor: pointer;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0.85;
    transition: opacity 0.2s;
    position: relative;
    z-index: 100;
}

.ip-zoom-btn:hover { opacity: 1; }
.ip-zoom-btn span { font-size: 14px; font-family: inherit; }

/* ===== Lightbox ===== */
.ip-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26,28,31,0.98);
    z-index: 9999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    overflow-y: auto;
}

.ip-lightbox.open { display: flex; }

.ip-lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    background: none;
    border: none;
    color: #6B7A99;
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
    z-index: 10000;
}

@media (max-width: 767px) {
    .ip-lightbox {
        overflow-x: hidden;
    }
    .ip-lightbox-close {
        top: 18px;
        right: 25px;
        font-size: 36px;
    }
}

/* ===== Lightbox flipbook ===== */
.ip-lb-scale-wrap { transform-origin: top center; }

.ip-lb-flipbook-outer {
    width: 700px;
    overflow: visible;
}

#ip-lb-flipbook-container {
    width: 700px;
    height: 438px;
    background: transparent;
}

.ip-lb-page {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: transparent;
}

.ip-lb-page img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ip-lb-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding: 0 20px;
    gap: 20px;
    width: 700px;
}

.ip-lb-scrubber {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    border-radius: 2px;
    background: #454758;
    outline: none;
    cursor: pointer;
}

.ip-lb-scrubber::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #6B7A99;
    cursor: pointer;
}

.ip-lb-scrubber::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #6B7A99;
    cursor: pointer;
    border: none;
}

.ip-lb-counter {
    color: #6B7A99;
    font-size: 15px;
    margin-top: 10px;
}

/* ===== Tablet (matches style.css 1199px) ===== */
@media (max-width: 1199px) {
    .ip-flipbook-section {
        padding: 0 20px;
    }
}

/* ===== Mobile (matches style.css 767px) ===== */
@media (max-width: 767px) {
    .ip-flipbook-section {
        padding: 0 20px;
        margin: 40px auto;
    }

    .ip-flipbook-scale-wrap {
        width: 700px;
        height: 438px;
        transform-origin: top center;
    }

    .ip-flipbook-outer {
        width: 700px;
    }

    .ip-flipbook-nav {
        max-width: calc(100vw - 40px);
        width: 100%;
        padding: 0 8px;
        margin-top: 20px;
    }

    .ip-page-counter {
        font-size: 15px;
    }

    .ip-zoom-btn {
        font-size: 18px;
    }
}

/* ===== Small mobile (matches style.css 540px) ===== */
@media (max-width: 540px) {
    .ip-flipbook-section {
        padding: 0 16px;
        margin: 30px auto;
    }

    .ip-flipbook-nav {
        max-width: calc(100vw - 32px);
        gap: 10px;
        padding: 0 4px;
    }
}

@media (max-width: 400px) {
    .ip-page-counter { font-size: 14px; }
}

/* ===== Full-spread page 1 split (16x10 single image shown as two halves) ===== */
.ip-page.ip-page-spread-left img,
.ip-lb-page.ip-page-spread-left img {
    object-fit: cover;
    object-position: left center;
    width: 200%;
    max-width: 200%;
}

.ip-page.ip-page-spread-right img,
.ip-lb-page.ip-page-spread-right img {
    object-fit: cover;
    object-position: right center;
    width: 200%;
    max-width: 200%;
    margin-left: -100%;
}