.uk-lightbox-page {
    overflow: hidden;
}

.uk-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100010;
    isolation: isolate;
    background: #101114;
    overflow: hidden;
    touch-action: pinch-zoom;
}

.uk-lightbox.uk-open {
    display: block;
}

.uk-lightbox > .uk-lightbox-items {
    position: absolute;
    inset: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.uk-lightbox > .uk-lightbox-items > li {
    display: none;
    position: absolute;
    inset: 0;
    align-items: center;
    justify-content: center;
    padding: max(56px, env(safe-area-inset-top)) 12px max(56px, env(safe-area-inset-bottom));
    color: #fff;
}

.uk-lightbox > .uk-lightbox-items > .uk-active {
    display: flex;
}

.uk-lightbox-items > li > img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.uk-lightbox .uk-lightbox-button,
.uk-lightbox .uk-lightbox-toolbar-icon {
    position: absolute;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #ffffff55;
    border-radius: 50%;
    background: #17191de8;
    color: #fff;
    opacity: 1;
    cursor: pointer;
}

.uk-lightbox .uk-lightbox-button[hidden],
.uk-lightbox .uk-lightbox-caption:empty {
    display: none;
}

.uk-lightbox .uk-lightbox-button svg,
.uk-lightbox .uk-lightbox-toolbar-icon svg {
    display: none;
}

.uk-lightbox .uk-lightbox-button::before {
    content: "";
    width: 10px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(-45deg);
}

.uk-lightbox .uk-position-center-left::before {
    transform: rotate(135deg);
}

.uk-lightbox .uk-lightbox-toolbar-icon::before,
.uk-lightbox .uk-lightbox-toolbar-icon::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 2px;
    background: #fff;
    transform: rotate(45deg);
}

.uk-lightbox .uk-lightbox-toolbar-icon::after {
    transform: rotate(-45deg);
}

.uk-lightbox .uk-lightbox-toolbar-icon {
    top: calc(8px + env(safe-area-inset-top));
    right: calc(12px + env(safe-area-inset-right));
}

.uk-lightbox .uk-lightbox-button {
    top: 50%;
    transform: translateY(-50%);
}

.uk-lightbox .uk-position-center-left {
    left: calc(8px + env(safe-area-inset-left));
}

.uk-lightbox .uk-position-center-right {
    right: calc(8px + env(safe-area-inset-right));
}

.uk-lightbox .uk-lightbox-caption:not(:empty) {
    position: absolute;
    inset: auto 0 env(safe-area-inset-bottom) 0;
    padding: 8px 16px;
    color: #fff;
    text-align: center;
}

.sl-feed-image-slideshow .uk-slideshow-items {
    position: relative;
    aspect-ratio: 4 / 3;
}

.sl-feed-image-slideshow .uk-slideshow-items a,
.sl-feed-image-single a {
    display: block;
}

.sl-feed-image-slideshow .uk-slideshow-items a,
.sl-feed-image-slideshow img {
    width: 100%;
    height: 100%;
}

.sl-feed-image-slideshow img {
    object-fit: cover;
}

.sl-feed-image-single img {
    display: block;
    width: 100%;
    max-height: 500px;
    object-fit: contain;
}

.sl-feed-image-prev,
.sl-feed-image-next {
    position: absolute;
    top: 50%;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #17191de8;
    color: #fff;
    transform: translateY(-50%);
}

.sl-feed-image-prev { left: 12px; }
.sl-feed-image-next { right: 12px; }

.sl-feed-image-prev::before,
.sl-feed-image-next::before {
    content: "";
    width: 10px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(-45deg);
}

.sl-feed-image-prev::before { transform: rotate(135deg); }
