/*
Theme Name:   Astra Child
Description:  Astra Child Theme with Local Fonts
Template:     astra
Version:      1.0.0
*/

/* Keep article-card images in full color. The image overlay remains a transparent link target. */
.ue-grid-item-image-overlay,
.ue-grid-item-image-overlay:hover {
    background-color: transparent !important;
    opacity: 0 !important;
}

.ue-grid-item-image img {
    filter: none !important;
    opacity: 1 !important;
    mix-blend-mode: normal !important;
}

/* Keep WordPress lazy-loaded images visible. Elementor header CSS hides them,
   but no site script adds the expected .loaded class. */
img[loading="lazy"] {
    opacity: 1 !important;
}

/* Read More cards: preserve square product images without inconsistent cropping. */
[id^="uc_post_blocks_elementor_"] .ue_post_blocks_image {
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

[id^="uc_post_blocks_elementor_"] .ue_post_blocks_image > a {
    display: block;
    width: 100%;
    height: 100%;
}

[id^="uc_post_blocks_elementor_"] .ue_post_blocks_image img {
    display: block;
    width: 100%;
    height: 100% !important;
    padding: 0 !important;
    object-fit: cover;
    object-position: center center;
}
