/* GoMinneriya Mobile Gallery Lightbox Fix */
html.gm-mobile-gallery-lock,
body.gm-mobile-gallery-lock {
    overflow: hidden !important;
    touch-action: none;
}

.gm-mobile-gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(5, 14, 31, 0.92);
    opacity: 0;
    visibility: hidden;
    transition: opacity .22s ease, visibility .22s ease;
    -webkit-tap-highlight-color: transparent;
}

.gm-mobile-gallery-lightbox.is-open {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.gm-mobile-gallery-lightbox__stage {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 58px 18px 82px;
    box-sizing: border-box;
}

.gm-mobile-gallery-lightbox__image {
    display: block;
    max-width: 94vw;
    max-height: 78vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 14px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .45);
    background: rgba(255, 255, 255, .04);
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

.gm-mobile-gallery-lightbox__topbar {
    position: absolute;
    top: calc(env(safe-area-inset-top, 0px) + 14px);
    left: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
}

.gm-mobile-gallery-lightbox__count {
    color: #fff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .02em;
    opacity: .86;
    pointer-events: none;
}

.gm-mobile-gallery-lightbox__close,
.gm-mobile-gallery-lightbox__arrow {
    border: 0;
    outline: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(255, 255, 255, .16);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .22);
    transition: background .2s ease, transform .2s ease;
    pointer-events: auto;
    -webkit-tap-highlight-color: transparent;
}

.gm-mobile-gallery-lightbox__close {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    font-size: 28px;
    line-height: 1;
    padding-bottom: 3px;
}

.gm-mobile-gallery-lightbox__arrow {
    position: absolute;
    top: 50%;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    transform: translateY(-50%);
}

.gm-mobile-gallery-lightbox__arrow svg {
    width: 18px;
    height: 18px;
    display: block;
}

.gm-mobile-gallery-lightbox__arrow--prev {
    left: 12px;
}

.gm-mobile-gallery-lightbox__arrow--next {
    right: 12px;
}

.gm-mobile-gallery-lightbox__close:active,
.gm-mobile-gallery-lightbox__arrow:active {
    transform: scale(.96);
}

.gm-mobile-gallery-lightbox__arrow:active {
    transform: translateY(-50%) scale(.96);
}

.gm-mobile-gallery-lightbox__caption {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 24px);
    color: #fff;
    text-align: center;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.45;
    opacity: .9;
    display: none;
}

.gm-mobile-gallery-lightbox__caption.has-caption {
    display: block;
}

@media (min-width: 1025px) {
    .gm-mobile-gallery-lightbox {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .gm-mobile-gallery-lightbox__stage {
        padding-left: 12px;
        padding-right: 12px;
    }

    .gm-mobile-gallery-lightbox__image {
        max-width: 94vw;
        max-height: 74vh;
        border-radius: 12px;
    }

    .gm-mobile-gallery-lightbox__arrow {
        width: 40px;
        height: 40px;
        background: rgba(255,255,255,.20);
    }

    .gm-mobile-gallery-lightbox__arrow--prev {
        left: 8px;
    }

    .gm-mobile-gallery-lightbox__arrow--next {
        right: 8px;
    }
}
