.jhp-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    background: rgb(0 0 0 / var(--jhp-opacity, .7));
    touch-action: pan-y pinch-zoom;
}
dialog.jhp-dialog {
    position: fixed;
    inset: 50% auto auto 50%;
    z-index: 2147483001;
    box-sizing: border-box;
    width: max-content;
    max-width: min(90vw, var(--jhp-width, 700px));
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #171717;
    overflow: visible;
    transform: translate(-50%, -50%);
}
.jhp-dialog .jhp-content {
    border-radius: inherit;
    overflow: hidden;
    background: #fff;
}
.jhp-dialog .jhp-close {
    position: absolute;
    top: -10px;
    right: -14px;
    z-index: 1;
    isolation: isolate;
    display: block;
    box-sizing: border-box;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #111;
    font: 700 30px/44px Arial, sans-serif;
    text-align: center;
    text-decoration: none;
    box-shadow: none;
    cursor: pointer;
}
.jhp-dialog .jhp-close::before {
    position: absolute;
    inset: 6px;
    z-index: -1;
    border-radius: 50%;
    background: #fff;
    content: "";
}
.jhp-dialog .jhp-close:focus,
.jhp-dialog .jhp-close:focus-visible { outline: none; box-shadow: none; }
.jhp-dialog .jhp-content img {
    display: block;
    width: auto;
    height: auto;
    max-width: min(90vw, var(--jhp-width, 700px));
    max-height: min(90vh, calc(100vh - 48px));
    max-height: min(90dvh, calc(100dvh - 48px));
    object-fit: contain;
    margin: 0;
}
.jhp-content picture, .jhp-content a { display: block; }
