/* Fallback styles for expired posts */
.post-expired .wp-post-image,
.post-expired .attachment-post-thumbnail,
.post-expired img[class*="wp-image-"],
.post-expired .post-thumbnail img,
.post-expired .featured-image img,
.post-expired .entry-image img,
.post-expired .post-media img {
    filter: grayscale(100%) !important;
    -webkit-filter: grayscale(100%) !important;
}

.post-expired .post-thumbnail,
.post-expired .featured-image,
.post-expired .entry-image,
.post-expired .post-media {
    position: relative !important;
    display: block !important;
}

.post-expired .post-thumbnail::after,
.post-expired .featured-image::after,
.post-expired .entry-image::after,
.post-expired .post-media::after {
    content: 'EXPIRED';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: red;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.7);
    padding: 5px 10px;
    z-index: 10;
}