.pbw-popup {
    box-sizing: border-box;
    width: calc(var(--pbw-width, 800px) + 24px);
    max-width: calc(100vw - 32px);
    max-height: 85vh;
    max-height: 85dvh;
    margin: auto;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: #fff;
    color: #17202a;
    box-shadow: 0 16px 64px rgb(0 0 0 / 30%);
    overflow: auto;
}
.pbw-popup:not([open]) { display: none !important; }
.pbw-popup::backdrop { background: rgb(0 0 0 / 65%); }
.pbw-popup .pbw-popup-header {
    display: flex;
    justify-content: flex-end;
    padding: 4px 8px 0;
}
.pbw-popup .pbw-popup-close {
    appearance: none;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #17202a;
    font: 32px/1 Arial, sans-serif;
    cursor: pointer;
}
.pbw-popup .pbw-popup-close:hover { background: #edf0f2; }
.pbw-popup .pbw-popup-close:focus-visible,
.pbw-popup .pbw-popup-link:focus-visible { outline: 3px solid #145fc4; outline-offset: -3px; }
.pbw-popup .pbw-popup-content { padding: 0 12px 12px; }
.pbw-popup .pbw-popup-link { display: block; text-decoration: none; }
.pbw-popup .pbw-popup-image {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: calc(85vh - 60px);
    max-height: calc(85dvh - 60px);
    margin: 0 auto;
    border: 0;
    object-fit: contain;
}
.pbw-popup .pbw-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
