/* Standardize post card image aspect ratios */
.elementor-post__thumbnail img,
.post-thumbnail img,
.wp-block-post-featured-image img,
.entry-thumbnail img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
    width: 100%;
    height: auto;
    display: block;
}

/* Fallback background for cards without an image */
.elementor-post__thumbnail:empty,
.post-thumbnail:empty,
.wp-block-post-featured-image:empty,
.entry-thumbnail:empty {
    aspect-ratio: 16 / 9;
    background-color: #e5e7eb;
    width: 100%;
    display: block;
}

/* Wrapper constraints for mixed media */
.elementor-post__thumbnail,
.post-thumbnail,
.wp-block-post-featured-image,
.entry-thumbnail {
    overflow: hidden;
    position: relative;
}
