/* =========================================
   GRM Latest Posts Front CSS START
========================================= */
.grm-latest-posts{
	box-sizing:border-box;
}

.grm-latest-posts *,
.grm-latest-posts *::before,
.grm-latest-posts *::after{
	box-sizing:border-box;
}

.grm-latest-posts a{
	color:inherit;
	text-decoration:none;
}

/* =========================================
   Label START
========================================= */
.grm-latest-posts .tableIcon{
	border-radius:999px;
	color:#fff;
	display:inline-flex;
	align-items:center;
	justify-content:center;
	font-size:12px;
	font-weight:700;
	line-height:1;
	min-height:24px;
	padding:6px 10px;
	vertical-align:middle;
}
/* =========================================
   Label END
========================================= */

/* =========================================
   Table Layout START
========================================= */
.grm-latest-posts-layout-table table{
	width:100%;
	border-collapse:collapse;
}

.grm-latest-posts-layout-table tr{
	transition:background .2s ease;
}

.grm-latest-posts-layout-table tr[data-href]{
	cursor:pointer;
}

.grm-latest-posts-layout-table tr:hover{
	background:#f6f7f7;
}

.grm-latest-posts-layout-table td{
	padding:16px 0;
	vertical-align:middle;
}

.grm-latest-posts-layout-table .tableLinkTd{
	display:flex;
	align-items:center;
	gap:16px;
	row-gap:2px;
	width:100%;
}


@media screen and (min-width:601px){

	.grm-latest-posts-layout-table .tableLinkTd{
		display:grid;
		grid-template-columns:88px 1fr;
		grid-template-areas:
			"thumb meta"
			"thumb title";
		align-items:center;
	}

	.grm-latest-posts-layout-table .tableLinkThumb{
		grid-area:thumb;
	}

	.grm-latest-posts-layout-table .tableLinkLeft{
		grid-area:meta;
		min-width:0;
	}

	.grm-latest-posts-layout-table .tableLinkRight{
		grid-area:title;
	}
}

.grm-latest-posts-layout-table .tableLinkThumb{
	flex:0 0 88px;
}

.grm-latest-posts-layout-table .tableLinkThumb img{
	display:block;
	width:88px;
	height:64px;
	object-fit:cover;
	border-radius:6px;
}

.grm-latest-posts-layout-table .tableLinkLeft{
	flex:0 0 auto;
	min-width:150px;
}

.grm-latest-posts-layout-table .infoDate{
	display:flex;
	align-items:center;
	gap:10px;
	margin:0;
	font-size:14px;
	line-height:1.6;
}

.grm-latest-posts-layout-table .tableLinkRight{
	flex:1 1 auto;
	font-size:16px;
	font-weight:600;
	line-height:1.7;
}

@media screen and (max-width:600px){

	.grm-latest-posts-layout-table .tableLinkTd{
		align-items:flex-start;
		flex-wrap:wrap;
	}

	.grm-latest-posts-layout-table .tableLinkLeft,
	.grm-latest-posts-layout-table .tableLinkRight{
		flex:0 0 100%;
		min-width:0;
	}

}
/* =========================================
   Table Layout END
========================================= */

/* =========================================
   Card Layout START
========================================= */
.grm-latest-posts-card-grid{
	display:grid;
	grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
	gap:24px;
}

.grm-latest-posts-card{
	background:#fff;
	border:1px solid #dcdcde;
	border-radius:10px;
	overflow:hidden;
	box-shadow:0 2px 8px rgba(0,0,0,.04);
	transition:transform .2s ease,box-shadow .2s ease;
}

.grm-latest-posts-card:hover{
	transform:translateY(-2px);
	box-shadow:0 10px 24px rgba(0,0,0,.08);
}

.grm-latest-posts-card-link{
	display:flex;
	flex-direction:column;
	height:100%;
}

.grm-latest-posts-card-thumb{
	background:#f6f7f7;
	aspect-ratio:4 / 3;
	overflow:hidden;
}

.grm-latest-posts-card-thumb img{
	display:block;
	width:100%;
	height:100%;
	object-fit:cover;
	transition:transform .25s ease;
}

.grm-latest-posts-card:hover .grm-latest-posts-card-thumb img{
	transform:scale(1.04);
}

.grm-latest-posts-card-body{
	display:flex;
	flex-direction:column;
	gap:10px;
	padding:18px;
	flex:1 1 auto;
}

.grm-latest-posts-card-meta{
	display:flex;
	align-items:center;
	flex-wrap:wrap;
	gap:8px;
	font-size:13px;
	line-height:1.6;
}

.grm-latest-posts-card-title{
	font-size:16px;
	font-weight:700;
	line-height:1.7;
	margin:0;
}
/* =========================================
   Card Layout END
========================================= */



/* =========================================
   Table Link START
========================================= */
.grm-latest-posts-table tr.clickable{
	cursor:pointer;
}
/* =========================================
   Table Link END
========================================= */

/* =========================================
   Swiper Layout START
========================================= */
.grm-latest-posts-swiper{
	position:relative;
	overflow:hidden;
	padding:0 0 42px;
}

.grm-latest-posts-swiper .grm-slider-viewport{
	overflow:hidden;
}

.grm-latest-posts-swiper .grm-latest-posts-swiper-slide{
	height:auto;
	background:#fff;
	border:1px solid #dcdcde;
	border-radius:10px;
	overflow:hidden;
	box-shadow:0 2px 8px rgba(0,0,0,.04);
}

.grm-latest-posts-swiper .grm-latest-posts-card-link{
	height:100%;
}

.grm-latest-posts-swiper .grm-slider-arrow{
	z-index:5;
}

.grm-latest-posts-swiper .grm-slider-dots{
	bottom:0;
}
/* =========================================
   Swiper Layout END
========================================= */
/* =========================================
   GRM Latest Posts Front CSS END
========================================= */
