/* Emergency fix for article images that are too large */
.article-detail .article-image,
.article-image {
    max-width: 100% !important;
    max-height: 350px !important;
    height: 350px !important;
    width: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    margin: 0 auto 20px auto !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
    overflow: hidden !important;
    position: relative !important;
    z-index: 1 !important;
}

/* Responsive fixes */
@media (max-width: 768px) {
    .article-detail .article-image,
    .article-image {
        max-height: 220px !important;
        height: 220px !important;
        margin-bottom: 15px !important;
    }
}

@media (max-width: 480px) {
    .article-detail .article-image,
    .article-image {
        max-height: 180px !important;
        height: 180px !important;
        margin-bottom: 12px !important;
    }
}

/* Ensure content below image has proper spacing */
.article-content {
    margin-top: 20px !important;
    position: relative !important;
    z-index: 2 !important;
}

/* Prevent image from overlapping text */
.article-detail .article-image + * {
    margin-top: 25px !important;
}

/* Bootstrap img-fluid override */
.img-fluid.article-image {
    max-height: 350px !important;
    height: 350px !important;
    object-fit: cover !important;
}
