/* FGenio Journal Fullscreen Media Viewer */

.journal-media-open {
    cursor: zoom-in;
}

.journal-media-viewer {
    position: fixed;
    inset: 0;
    z-index: 999999;

    display: none;
    align-items: center;
    justify-content: center;

    width: 100vw;
    height: 100dvh;
}

.journal-media-viewer.is-open {
    display: flex;
}

.journal-media-viewer-backdrop {
    position: absolute;
    inset: 0;

    background: rgba(3, 13, 28, .76);

    backdrop-filter: blur(18px) saturate(135%);
    -webkit-backdrop-filter: blur(18px) saturate(135%);
}

.journal-media-viewer-swiper {
    position: relative;
    z-index: 2;

    width: 100vw;
    height: 100dvh;
}

.journal-media-viewer .swiper-wrapper,
.journal-media-viewer .swiper-slide {
    width: 100%;
    height: 100%;
}

.journal-media-viewer .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 24px 72px;
    box-sizing: border-box;
}

.journal-media-viewer-image {
    display: block;

    width: auto !important;
    height: auto !important;

    max-width: 100% !important;
    max-height: calc(100dvh - 48px) !important;

    object-fit: contain !important;
    object-position: center center !important;

    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;

    background: transparent !important;
}

.journal-media-viewer-close,
.journal-media-viewer-prev,
.journal-media-viewer-next {
    position: absolute;
    z-index: 4;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 6px;

    background: rgba(3, 13, 28, .58);
    color: #fff;

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    cursor: pointer;
}

.journal-media-viewer-close {
    top: 14px;
    right: 18px;

    width: 38px;
    height: 38px;

    font-size: 24px;
}

.journal-media-viewer-prev,
.journal-media-viewer-next {
    top: 50%;
    transform: translateY(-50%);

    width: 42px;
    height: 48px;

    font-size: 28px;
}

.journal-media-viewer-prev {
    left: 24px;
}

.journal-media-viewer-next {
    right: 24px;
}

body.journal-media-viewer-open {
    overflow: hidden !important;
}

@media (max-width: 767.98px) {
    .journal-media-viewer .swiper-slide {
        padding:
            max(12px, env(safe-area-inset-top))
            10px
            max(12px, env(safe-area-inset-bottom));
    }

    .journal-media-viewer-image {
        max-width: 100% !important;
        max-height: calc(100dvh - 24px) !important;
    }

    .journal-media-viewer-prev,
    .journal-media-viewer-next {
        display: none;
    }

    .journal-media-viewer-close {
        top: max(10px, env(safe-area-inset-top));
        right: 10px;
    }
}
