/* lookatme-flipbook.css */

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

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

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

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

#flipbook-container {
    width: 700px;
    height: 453px;
}

.page {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #fff;
}

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

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

.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; }

.flipbook-scrubber {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    border-radius: 2px;
    background: #454758;
    outline: none;
    cursor: pointer;
}
.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;
}
.flipbook-scrubber::-webkit-slider-thumb:hover { background: #2F3858; transform: scale(1.2); }
.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);
}

.page-counter {
    color: #6B7A99;
    font-size: 18px;
    margin-top: 12px;
}

/* ── Zoom button ── */
.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;
}
.zoom-btn:hover { opacity: 1; }
.zoom-btn span { font-size: 14px; font-family: inherit; }

/* ── Lightbox ── */
.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;
}
.lightbox.open { display: flex; }

.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) {
    .lightbox-close {
        top: 16px;
        right: 16px;
    }
}

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

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

#lb-flipbook-container {
    width: 350px;
    height: 453px;
    background: transparent;
    transform: none !important;
}

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

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

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

.lb-scrubber {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    border-radius: 2px;
    background: #454758;
    outline: none;
    cursor: pointer;
}
.lb-scrubber::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #6B7A99;
    cursor: pointer;
}
.lb-scrubber::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #6B7A99;
    cursor: pointer;
    border: none;
}

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

/* ── Mobile ── */
@media (max-width: 768px) {
    .flipbook-section { padding: 0 24px; }
}

@media (max-width: 400px) {
    .nav-btn { width: 40px; height: 40px; font-size: 18px; }
}