.ng-image-viewer[hidden] {
    display: none;
}

.ng-image-viewer {
    position: fixed;
    z-index: 1200;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #000000;
}

.ng-image-viewer__stage {
    position: relative;
    display: grid;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    place-items: center;
    overflow: hidden;
}

.ng-image-viewer__image {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    object-fit: contain;
    object-position: center center;
    user-select: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
}

.ng-image-viewer__close {
    position: absolute;
    z-index: 2;
    top: max(10px, env(safe-area-inset-top, 0px));
    right: max(10px, env(safe-area-inset-right, 0px));
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: #000000;
    cursor: pointer;
    font-size: 32px;
    font-weight: 500;
    line-height: 1;
}

.ng-image-viewer__close:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 2px;
}

body.ng-image-viewer-open {
    overflow: hidden;
    overscroll-behavior: none;
}

/* Full-size image copy/download deterrence. */
.ng-image-viewer,
.ng-image-viewer__stage,
.ng-image-viewer__image {
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

.ng-image-viewer__image {
    pointer-events: none;
    -webkit-user-drag: none;
    user-drag: none;
}

