/* WP Pixel Screen Effect */
.wp-pse-wrap {
    position: relative !important;
    display: inline-block !important;
    overflow: hidden !important;
    max-width: 100% !important;
    vertical-align: top !important;
}

.wp-pse-wrap img {
    display: block !important;
    max-width: 100% !important;
    height: auto;
}

/* soft wash, like old web preview images */
.wp-pse-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    background: rgba(255,255,255,.14);
}

/* dense tiny halftone/pixel screen */
.wp-pse-wrap::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 3;
    background-image: radial-gradient(circle, rgba(0,0,0,.65) var(--wp-pse-dot, .55px), transparent calc(var(--wp-pse-dot, .55px) + .15px));
    background-size: var(--wp-pse-gap, 3px) var(--wp-pse-gap, 3px);
    background-position: 0 0;
    opacity: var(--wp-pse-opacity, .42);
    mix-blend-mode: multiply;
}

/* Force full width when image already was block/full */
.wp-pse-wrap.wp-pse-block {
    display: block !important;
}

.wp-pse-wrap.wp-pse-block img {
    width: 100%;
}

/* Prevent double application */
.wp-pse-wrap .wp-pse-wrap::before,
.wp-pse-wrap .wp-pse-wrap::after {
    display: none;
}
