/* Custom grid card fixes za blog post grid (parts/content-item.php) */

/* 1) Kartica prati visinu sadržaja umjesto fiksnih 640px */
@media screen and (min-width: 40em) {
	.entry-wrap article {
		height: auto;
	}
}

/* 2) Prikaži cijeli naslov umjesto rezanja s "..." */
.post-item .entry-title,
.listing-item .entry-title,
.post-search .entry-title,
.item-single-featured .entry-title {
	white-space: normal;
	overflow: visible;
	text-overflow: unset;
}

/* 3) Makni max-height i fade gradient na excerptu (sad je i tako kraći) */
.post-item .subheader,
.item-single-featured .subheader {
	max-height: none;
}

.post-item .subheader:after,
.item-single-featured .subheader:after {
	display: none;
}

/* Custom grid card fixes for blog post grid (parts/content-item.php)
   This file is auto-loaded by ClassiPress if it exists, and will NOT
   be overwritten by theme updates. */

/* 1) Let the card height follow its content instead of a fixed 640px box */
@media screen and (min-width: 40em) {
	.entry-wrap article {
		height: auto;
	}
}

/* 2) Show the full post title instead of cutting it off with "..." */
.post-item .entry-title,
.listing-item .entry-title,
.post-search .entry-title,
.item-single-featured .entry-title {
	white-space: normal;
	overflow: visible;
	text-overflow: unset;
}

/* 3) Remove the max-height clamp + fade-out gradient on the excerpt,
      since the excerpt length is already controlled in parts/content-item.php */
.post-item .subheader,
.item-single-featured .subheader {
	max-height: none;
}

.post-item .subheader:after,
.item-single-featured .subheader:after {
	display: none;
}

/* 4) Give the cover photo a real, fixed height instead of letting
      padding decide it — otherwise it's a thin strip on mobile */
.post-item .entry-cover {
	padding: 0;
	height: 180px;
}

@media screen and (min-width: 40em) {
	.post-item .entry-cover {
		height: 220px;
	}
}