/* CSS structure for Editorial Post Grid */

.epg-139c2c14-grid {
	display: grid;
	width: 100%;
	box-sizing: border-box;
}

/* Base Card structure (Equal Height CSS Flexbox) */
.epg-139c2c14-card {
	display: flex;
	flex-direction: column;
	text-decoration: none !important;
	color: inherit;
	background-color: #ffffff;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	overflow: hidden;
	height: 100%;
	box-sizing: border-box;
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Image zoom effect and fixed proportions */
.epg-139c2c14-img-wrapper {
	position: relative;
	width: 100%;
	height: 240px;
	overflow: hidden;
	box-sizing: border-box;
}

.epg-139c2c14-img-wrapper img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
	display: block;
}

.epg-139c2c14-card:hover .epg-139c2c14-img-wrapper img {
	transform: scale(1.03);
}

/* Card body content layout */
.epg-139c2c14-content {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	padding: 20px;
	box-sizing: border-box;
}

.epg-139c2c14-category {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: 8px;
}

.epg-139c2c14-title {
	font-size: 1.25rem;
	margin: 0 0 10px 0;
	line-height: 1.4;
	font-weight: 600;
	/* Limit title to 3 lines */
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.epg-139c2c14-excerpt {
	font-size: 0.9rem;
	margin: 0 0 16px 0;
	line-height: 1.5;
	/* Limit excerpt to 3 lines */
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Metadata alignment at the very bottom */
.epg-139c2c14-meta {
	margin-top: auto;
	font-size: 0.8rem;
	display: flex;
	align-items: center;
	gap: 6px;
}

.epg-139c2c14-separator {
	opacity: 0.6;
}

.epg-139c2c14-empty {
	text-align: center;
	padding: 40px;
	color: #666;
	font-size: 1.1rem;
}

/* Desktop Columns */
@media (min-width: 1025px) {
	.epg-139c2c14-grid.d-col-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
	.epg-139c2c14-grid.d-col-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.epg-139c2c14-grid.d-col-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.epg-139c2c14-grid.d-col-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.epg-139c2c14-grid.d-col-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
	.epg-139c2c14-grid.d-col-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* Tablet Columns */
@media (min-width: 768px) and (max-width: 1024px) {
	.epg-139c2c14-grid.t-col-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
	.epg-139c2c14-grid.t-col-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.epg-139c2c14-grid.t-col-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.epg-139c2c14-grid.t-col-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.epg-139c2c14-grid.t-col-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
	.epg-139c2c14-grid.t-col-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* Mobile Columns */
@media (max-width: 767px) {
	.epg-139c2c14-grid.m-col-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
	.epg-139c2c14-grid.m-col-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.epg-139c2c14-grid.m-col-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.epg-139c2c14-grid.m-col-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.epg-139c2c14-grid.m-col-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
	.epg-139c2c14-grid.m-col-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
