/*
Theme Name: HVSC Nex Child
Author: 
Author URI: 
Template: hvscnex
*/



/*

put your child theme styles here


you don't need any @import rules

*/
.thumbnail .wp-post-image {
    max-height: 200px !important; /* Forces thumbnails to a consistent max-height */
    width: auto !important;       /* Maintains aspect ratio */
    object-fit: contain;          /* Ensures the image isn't stretched */
}

/* Target the specific thumbnail class used in the loop */
.thumbnail img.attachment-vamtam-loop-3,
.post-media img.attachment-vamtam-loop-3 {
    height: auto !important;          /* Force browser to recalculate height */
    max-height: 250px !important;     /* Keep thumbnails within a consistent size */
    width: 100% !important;           /* Ensure it fills its container width */
    max-width: 100% !important;       /* Prevent it from overflowing */
    object-fit: cover !important;     /* Crops nicely if aspect ratios differ */
    display: block !important;        /* Prevents extra spacing at the bottom */
}

/* Fix for the parent container if it's forcing a large height */
.thumbnail a, 
.post-media a {
    display: block !important;
    height: auto !important;
    overflow: hidden;
}