html.gecol-gallery-lock,
body.gecol-gallery-lock {
    overflow: hidden !important;
    overscroll-behavior: none;
}

#gecol-fullscreen-gallery {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    z-index: 2147483646 !important;

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

    margin: 0 !important;
    padding: 0 !important;

    background:
        radial-gradient(
            circle at 50% 42%,
            rgba(35,35,35,.98) 0%,
            rgba(8,8,8,.99) 58%,
            #000 100%
        );

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

    overflow: hidden;
}

#gecol-fullscreen-gallery.is-open {
    display: flex !important;
}

#gecol-fullscreen-gallery .gecol-gallery-stage {
    position: absolute;
    inset: 0;

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

    padding:
        max(64px, env(safe-area-inset-top))
        76px
        max(70px, env(safe-area-inset-bottom));

    box-sizing: border-box;

    touch-action: none;
    user-select: none;
    -webkit-user-select: none;

    cursor: grab;
}

#gecol-fullscreen-gallery .gecol-gallery-stage.is-dragging {
    cursor: grabbing;
}

#gecol-fullscreen-gallery .gecol-gallery-image {
    display: block;

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

    max-width: 94vw !important;
    max-height: calc(100dvh - 132px) !important;

    object-fit: contain !important;

    border-radius: 4px;

    box-shadow:
        0 28px 90px rgba(0,0,0,.7);

    opacity: 1;

    transform: translateX(0);
    transition:
        opacity .16s ease,
        transform .16s ease;

    pointer-events: none;
}

#gecol-fullscreen-gallery .gecol-gallery-image.is-changing {
    opacity: .18;
    transform: scale(.985);
}

#gecol-fullscreen-gallery button {
    position: absolute;
    z-index: 20;

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

    width: 52px;
    height: 52px;

    margin: 0;
    padding: 0;

    border:
        1px solid rgba(205,169,86,.78);

    border-radius: 50%;

    background:
        rgba(17,17,17,.78);

    color: #fff;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-weight: 300;
    line-height: 1;

    cursor: pointer;

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

    transition:
        background .18s ease,
        border-color .18s ease,
        transform .18s ease;
}

#gecol-fullscreen-gallery button:hover,
#gecol-fullscreen-gallery button:focus-visible {
    background: #b9954c;
    border-color: #d8b567;
    outline: none;
}

#gecol-fullscreen-gallery .gecol-gallery-close {
    top:
        max(
            14px,
            env(safe-area-inset-top)
        );

    right:
        max(
            16px,
            env(safe-area-inset-right)
        );

    font-size: 31px;
}

#gecol-fullscreen-gallery .gecol-gallery-prev {
    left: 18px;
    top: 50%;

    transform: translateY(-50%);

    font-size: 35px;
}

#gecol-fullscreen-gallery .gecol-gallery-next {
    right: 18px;
    top: 50%;

    transform: translateY(-50%);

    font-size: 35px;
}

#gecol-fullscreen-gallery .gecol-gallery-prev:hover,
#gecol-fullscreen-gallery .gecol-gallery-prev:focus-visible,
#gecol-fullscreen-gallery .gecol-gallery-next:hover,
#gecol-fullscreen-gallery .gecol-gallery-next:focus-visible {
    transform:
        translateY(-50%)
        scale(1.06);
}

#gecol-fullscreen-gallery .gecol-gallery-info {
    position: absolute;

    left: 50%;

    bottom:
        max(
            18px,
            env(safe-area-inset-bottom)
        );

    z-index: 15;

    width: min(90vw, 1100px);

    transform: translateX(-50%);

    text-align: center;

    pointer-events: none;
}

#gecol-fullscreen-gallery .gecol-gallery-caption {
    margin-bottom: 7px;

    color:
        rgba(255,255,255,.84);

    font-size: 13px;
    line-height: 1.35;
}

#gecol-fullscreen-gallery .gecol-gallery-counter {
    color: #d4af5b;

    font-size: 13px;
    font-weight: 700;

    letter-spacing: .1em;
}

body img[data-gecol-fullscreen-photo] {
    cursor: zoom-in !important;
}

@media (max-width: 700px) {

    #gecol-fullscreen-gallery .gecol-gallery-stage {
        padding:
            max(55px, env(safe-area-inset-top))
            5px
            max(68px, env(safe-area-inset-bottom));
    }

    #gecol-fullscreen-gallery .gecol-gallery-image {
        max-width: 100vw !important;
        max-height:
            calc(
                100dvh -
                118px
            ) !important;

        border-radius: 0;
    }

    #gecol-fullscreen-gallery button {
        width: 44px;
        height: 44px;

        background:
            rgba(15,15,15,.68);
    }

    #gecol-fullscreen-gallery .gecol-gallery-close {
        top:
            max(
                8px,
                env(safe-area-inset-top)
            );

        right:
            max(
                8px,
                env(safe-area-inset-right)
            );

        font-size: 28px;
    }

    #gecol-fullscreen-gallery .gecol-gallery-prev {
        left: 5px;
        font-size: 30px;
    }

    #gecol-fullscreen-gallery .gecol-gallery-next {
        right: 5px;
        font-size: 30px;
    }

    #gecol-fullscreen-gallery .gecol-gallery-info {
        bottom:
            max(
                10px,
                env(safe-area-inset-bottom)
            );
    }

    #gecol-fullscreen-gallery .gecol-gallery-caption {
        display: none;
    }

    #gecol-fullscreen-gallery .gecol-gallery-counter {
        font-size: 12px;
    }
}
