/*!
 * File: wp-content/uploads/dharti/homepage-fixes.css
 * Dharti — homepage layout fixes (image-less squish, narrow columns, sidebar length).
 * @version 1.0.0
 * Changelog:
 *   1.0.0 (2026-06-29) — Initial. ~73/77 homepage items render `.no_thumbnail` (image
 *     files do not resolve), and side-by-side / grid JNews skins still reserve the empty
 *     image box, crushing titles into 1-2 words per line. Collapse empty thumb boxes and
 *     give text full width; stack narrow grid columns on small screens; tame sidebar list.
 *     Presentation-only; load-bearing JNews markup untouched. Responsive 320/768/1280.
 */

/* ---- Defect 1: image-less items squished in narrow columns ---- */
.jeg_post .thumbnail-container.no_thumbnail { display: none !important; }
.jeg_post:has(.thumbnail-container.no_thumbnail) .jeg_thumb { display: none !important; }
.jeg_post:has(.thumbnail-container.no_thumbnail) .jeg_postblock_content {
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
}
.jeg_post:has(.thumbnail-container.no_thumbnail) .jeg_post_title {
	white-space: normal !important;
	word-break: normal !important;
	overflow-wrap: anywhere;
}
/* small side-by-side skins: never let the title box go below a readable width */
.jeg_pl_sm .jeg_postblock_content,
.jeg_pl_md_box .jeg_postblock_content { min-width: 0; }

/* ---- Defect 3: keep the headlines/list sidebar block tidy ---- */
.dharti-headlines__list { margin: 0; padding: 0; }
.dharti-headlines__item { padding: 8px 0; }

/* ---- Responsive: stack narrow grid columns so text gets full width ---- */
@media (max-width: 1280px) {
	.jeg_post:has(.thumbnail-container.no_thumbnail) .jeg_post_title { line-height: 1.5; }
}
@media (max-width: 768px) {
	.jeg_postblock .jeg_col_1o3,
	.jeg_postblock .jeg_col_2o3 { width: 100% !important; float: none !important; }
	.jeg_postblock_carousel_2 .jeg_post_title { font-size: 14px; }
}
@media (max-width: 320px) {
	.jeg_post_title { font-size: 14px; line-height: 1.5; }
}
