.oxygen-pdf-shortcodes-embed {
    max-width: 100%;
}

.oxygen-pdf-shortcodes-embed__frame {
    align-items: center;
    background: transparent;
    cursor: zoom-in;
    display: flex;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.oxygen-pdf-shortcodes-embed__page {
    background: transparent;
    height: auto;
    max-height: min(var(--oxygen-pdf-embed-height, 720px), 90vh);
    max-width: 100%;
}

.oxygen-pdf-shortcodes-embed__status {
    color: #1d2327;
    left: 50%;
    position: absolute;
    text-align: center;
    top: 50%;
    transform: translate(-50%, -50%);
}

.oxygen-pdf-book {
    --oxygen-pdf-book-height: 720px;
    color: #1d2327;
    max-width: 100%;
}

.oxygen-pdf-book__stage {
    align-items: center;
    background: #eef0f2;
    display: grid;
    gap: 12px;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    min-height: min(var(--oxygen-pdf-book-height), 90vh);
    overflow: hidden;
    padding: 16px;
    perspective: 1400px;
}

.oxygen-pdf-book__page-wrap {
    align-items: center;
    cursor: zoom-in;
    display: flex;
    justify-content: center;
    min-width: 0;
    transform-origin: left center;
    transition: transform 280ms ease, opacity 280ms ease;
}

.oxygen-pdf-book__page-wrap.is-turning-next {
    opacity: 0.55;
    transform: rotateY(-24deg) translateX(12px);
}

.oxygen-pdf-book__page-wrap.is-turning-prev {
    opacity: 0.55;
    transform: rotateY(24deg) translateX(-12px);
}

.oxygen-pdf-book__page {
    background: #fff;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
    height: auto;
    max-height: calc(min(var(--oxygen-pdf-book-height), 90vh) - 48px);
    max-width: 100%;
}

.oxygen-pdf-book__nav,
.oxygen-pdf-book__button {
    cursor: pointer;
}

.oxygen-pdf-book__nav {
    align-items: center;
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 999px;
    color: #1d2327;
    display: flex;
    font-size: 34px;
    height: 44px;
    justify-content: center;
    line-height: 1;
    width: 44px;
}

.oxygen-pdf-book__nav:disabled,
.oxygen-pdf-book__button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.oxygen-pdf-book__toolbar {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    padding: 12px 0 0;
}

.oxygen-pdf-book__button {
    background: #1d2327;
    border: 0;
    border-radius: 4px;
    color: #fff;
    padding: 8px 14px;
}

.oxygen-pdf-book__status {
    min-width: 110px;
    text-align: center;
}

.oxygen-pdf-book__status--hidden {
    border: 0;
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.oxygen-pdf-book-lightbox-is-open {
    overflow: hidden;
}

.oxygen-pdf-book-lightbox {
    align-items: center;
    background: rgba(8, 12, 16, 0.92);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 28px;
    position: fixed;
    z-index: 999999;
}

.oxygen-pdf-book-lightbox__close {
    align-items: center;
    background: #fff;
    border: 0;
    border-radius: 999px;
    color: #1d2327;
    cursor: pointer;
    display: flex;
    font-size: 32px;
    height: 44px;
    justify-content: center;
    line-height: 1;
    position: absolute;
    right: 18px;
    top: 18px;
    width: 44px;
}

.oxygen-pdf-book--lightbox {
    max-height: 100%;
    max-width: 100%;
    width: 100%;
}

.oxygen-pdf-book--lightbox .oxygen-pdf-book__stage {
    background: transparent;
    grid-template-columns: 54px minmax(0, 1fr) 54px;
    height: calc(100vh - 56px);
    min-height: 0;
    padding: 0 44px;
}

.oxygen-pdf-book--lightbox .oxygen-pdf-book__page-wrap {
    cursor: default;
}

.oxygen-pdf-book--lightbox .oxygen-pdf-book__page {
    max-height: calc(100vh - 72px);
}

.oxygen-pdf-book--lightbox .oxygen-pdf-book__nav {
    height: 54px;
    width: 54px;
}

.oxygen-pdf-shortcodes-embed__stage {
    align-items: center;
    display: grid;
    gap: 18px;
    grid-template-columns: 54px minmax(0, 1fr) 54px;
    width: 100%;
}

.oxygen-pdf-shortcodes-embed--lightbox {
    max-width: 100%;
    width: 100%;
}

.oxygen-pdf-shortcodes-embed--lightbox .oxygen-pdf-shortcodes-embed__frame {
    cursor: default;
    min-height: calc(100vh - 72px);
}

.oxygen-pdf-shortcodes-embed--lightbox .oxygen-pdf-shortcodes-embed__page {
    max-height: calc(100vh - 72px);
}

@media (max-width: 640px) {
    .oxygen-pdf-book__stage {
        gap: 8px;
        grid-template-columns: 36px minmax(0, 1fr) 36px;
        padding: 10px;
    }

    .oxygen-pdf-book__nav {
        font-size: 28px;
        height: 36px;
        width: 36px;
    }

    .oxygen-pdf-book-lightbox {
        padding: 12px;
    }

    .oxygen-pdf-book-lightbox__close {
        height: 38px;
        right: 10px;
        top: 10px;
        width: 38px;
    }

    .oxygen-pdf-book--lightbox .oxygen-pdf-book__stage {
        grid-template-columns: 38px minmax(0, 1fr) 38px;
        height: calc(100vh - 24px);
        padding: 0;
    }

    .oxygen-pdf-book--lightbox .oxygen-pdf-book__page {
        max-height: calc(100vh - 36px);
    }

    .oxygen-pdf-shortcodes-embed__stage {
        gap: 8px;
        grid-template-columns: 38px minmax(0, 1fr) 38px;
    }

    .oxygen-pdf-shortcodes-embed--lightbox .oxygen-pdf-shortcodes-embed__frame {
        min-height: calc(100vh - 36px);
    }

    .oxygen-pdf-shortcodes-embed--lightbox .oxygen-pdf-shortcodes-embed__page {
        max-height: calc(100vh - 36px);
    }
}
