html.sl-image-viewer-open,
body.sl-image-viewer-open { overflow: hidden !important; }

.sl-image-viewer {
    position: fixed;
    z-index: 2147483000;
    inset: 0;
    display: none;
    background: rgba(10, 12, 16, .96);
    color: #fff;
}

.sl-image-viewer.is-open { display: block; }
.sl-image-viewer__swiper { width: 100%; height: 100%; }
.sl-image-viewer .swiper-slide { display: flex; align-items: center; justify-content: center; }
.sl-image-viewer .swiper-zoom-container { width: 100%; height: 100%; }
.sl-image-viewer .swiper-zoom-container > img { display: block; width: 100%; height: 100%; object-fit: contain; }
.sl-image-viewer__close,
.sl-image-viewer__prev,
.sl-image-viewer__next {
    position: absolute;
    z-index: 2;
    display: grid;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    place-items: center;
    color: #fff;
    background: rgba(255,255,255,.14);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.sl-image-viewer__close { top: calc(16px + env(safe-area-inset-top, 0px)); right: calc(16px + env(safe-area-inset-right, 0px)); }
.sl-image-viewer__prev,
.sl-image-viewer__next { top: 50%; transform: translateY(-50%); }
.sl-image-viewer__prev { left: 18px; }
.sl-image-viewer__next { right: 18px; }
.sl-image-viewer__count {
    position: absolute;
    z-index: 2;
    top: calc(22px + env(safe-area-inset-top, 0px));
    left: 50%;
    min-width: 50px;
    padding: 6px 10px;
    border-radius: 99px;
    transform: translateX(-50%);
    color: rgba(255,255,255,.92);
    background: rgba(255,255,255,.14);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}
.sl-image-viewer__close svg { width: 21px; height: 21px; }
.sl-image-viewer__prev svg,
.sl-image-viewer__next svg { width: 25px; height: 25px; }
.sl-image-viewer__count svg { width: 14px; height: 14px; }
@media (max-width: 767px) {
    .sl-image-viewer__prev,
    .sl-image-viewer__next { display: none; }
    .sl-image-viewer__close { width: 38px; height: 38px; }
}
