/* Wallpaper Minimal Helper: only the plugin's core/image size-wmh_post on wallpaper singles.
   Source image, attachment metadata and download files are unaffected. */
body.wmh-wallpaper-single.wmh-post-image-limits-on figure.wp-block-image.size-wmh_post {
    box-sizing:border-box;
    margin-left:auto;
    margin-right:auto;
}
body.wmh-wallpaper-single.wmh-post-image-limits-on figure.wp-block-image.size-wmh_post img {
    display:block;
    height:auto !important;
    object-fit:contain;
}
body.wmh-wallpaper-single.wmh-post-image-limits-on.wmh-post-image-align-left figure.wp-block-image.size-wmh_post,
body.wmh-wallpaper-single.wmh-post-image-limits-on.wmh-post-image-align-left figure.wp-block-image.size-wmh_post img {margin-left:0;margin-right:auto}
body.wmh-wallpaper-single.wmh-post-image-limits-on.wmh-post-image-align-right figure.wp-block-image.size-wmh_post,
body.wmh-wallpaper-single.wmh-post-image-limits-on.wmh-post-image-align-right figure.wp-block-image.size-wmh_post img {margin-left:auto;margin-right:0}
body.wmh-wallpaper-single.wmh-post-image-limits-on.wmh-post-image-align-center figure.wp-block-image.size-wmh_post,
body.wmh-wallpaper-single.wmh-post-image-limits-on.wmh-post-image-align-center figure.wp-block-image.size-wmh_post img {margin-left:auto;margin-right:auto}
/* Landscape is kept inside the specified container width; no enlargement beyond the preview asset. */
body.wmh-wallpaper-single.wmh-post-image-limits-on figure.wp-block-image.size-wmh_post.wmh-image-landscape {
    max-width:min(100%,var(--wmh-landscape-max-width,1200px));
}
body.wmh-wallpaper-single.wmh-post-image-limits-on figure.wp-block-image.size-wmh_post.wmh-image-landscape img {
    width:var(--wmh-landscape-width,100%) !important;
    max-width:100% !important;
}
body.wmh-wallpaper-single.wmh-post-image-limits-on.wmh-portrait-limits-on figure.wp-block-image.size-wmh_post.wmh-image-portrait {
    max-width:min(100%,var(--wmh-portrait-max-width,750px));
}
body.wmh-wallpaper-single.wmh-post-image-limits-on.wmh-portrait-limits-on figure.wp-block-image.size-wmh_post.wmh-image-portrait img {
    width:auto !important;
    max-width:100% !important;
    max-height:var(--wmh-portrait-max-height,900px) !important;
}
body.wmh-wallpaper-single.wmh-post-image-limits-on.wmh-square-limits-on figure.wp-block-image.size-wmh_post.wmh-image-square {
    max-width:min(100%,var(--wmh-square-max-width,900px));
}
body.wmh-wallpaper-single.wmh-post-image-limits-on.wmh-square-limits-on figure.wp-block-image.size-wmh_post.wmh-image-square img {
    width:auto !important;
    max-width:100% !important;
    max-height:var(--wmh-square-max-height,900px) !important;
}
@media(max-width:768px) {
    body.wmh-wallpaper-single.wmh-post-image-limits-on.wmh-mobile-height-limits-on.wmh-portrait-limits-on figure.wp-block-image.size-wmh_post.wmh-image-portrait img,
    body.wmh-wallpaper-single.wmh-post-image-limits-on.wmh-mobile-height-limits-on.wmh-square-limits-on figure.wp-block-image.size-wmh_post.wmh-image-square img {
        width:auto !important;
        max-width:100% !important;
        max-height:var(--wmh-mobile-max-height,75vh) !important;
    }
}
