/* Poster fit for Randers popup 853 only. Theme 797 keeps its original frame and close button. */
#pum-853 #popmake-853.pum-container {
    width: fit-content;
    max-width: min(640px, calc(100vw - 40px)) !important;
}
#pum-853 #popmake-853 .pum-content,
#pum-853 #popmake-853 .pum-content > p {
    margin: 0;
    padding: 0;
}
#pum-853 #popmake-853 .pum-content img.wp-image-46030 {
    display: block;
    width: auto;
    height: auto;
    max-width: min(588px, calc(100vw - 92px));
    max-height: calc(100vh - 176px);
    max-height: calc(100dvh - 176px);
    margin: 0 auto;
    object-fit: contain;
}
/* Popup Maker adds 32px to its configured 100px top offset for logged-in admins. */
body.admin-bar #pum-853 #popmake-853 .pum-content img.wp-image-46030 {
    max-height: calc(100vh - 208px);
    max-height: calc(100dvh - 208px);
}
