/*Latest Posts block*/

.g-latest-posts {
	display: flex;
	align-content: center;
	flex-direction: column;
}

/* full-width container width */
.g-latest-posts.full-width-container-width .block-size {
	width: 100% !important;
}

/* tablet-range: 48rem–59.938rem */
@media (min-width: 48rem) and (max-width: 59.938rem) {
	.g-latest-posts.full-width-container-width .block-size {
		width: calc(100% - (#{$content-margin * 2 + $content-padding * 2}));
	}
}

/* mobile-only: max-width 47.938rem */
@media (max-width: 47.938rem) {
	.g-latest-posts.full-width-container-width .block-size {
		width: calc(100% - (#{$content-margin * 2 + $content-padding * 2}));
	}
}

/* background */
.g-latest-posts .block-margin-padding {
	position: relative;
}

/* posts container */
.g-latest-posts .g-latest-posts-container {
	list-style: none;
	padding: 0;
	margin: 0;
	
}
.g-latest-posts .g-latest-posts-container .g-block-container {
	    display: flex;
    flex-direction: column;
}

.g-latest-posts ul.g-latest-posts-container {
	margin: 3.125rem 0 0 0;
}

/* each post item */
.g-latest-posts .g-latest-posts-container .g-latest-posts-item {
	margin-bottom: 3.125rem;
	padding-bottom: 0;
	border-bottom: none;
}

.g-latest-posts .g-latest-posts-container .g-latest-posts-item:last-child {
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom: none;
}

/* item structure */
.g-latest-posts .g-latest-posts-item .g-latest-posts-item-container {
	display: flex;
	gap: 1rem;
}


@media (max-width: 30rem) {
	.g-latest-posts .g-latest-posts-item .g-latest-posts-item-container {
		flex-direction: column;
		gap: 1rem;
	}
}

/* thumbnail */
.g-latest-posts .g-latest-posts-item figure {
	position: relative;
	width: 30%;
	margin: 0;
	max-width: 30%;
	display: block;
	height: auto;
	background: url(https://matthewsopera2026.tdgwebhost.com/wp-content/uploads/2026/04/news-logo.png) #45496F center center no-repeat;
}
.g-latest-posts .g-latest-posts-item figure a {
	width: 100%;
	height: 100%;
	display: block;
	position: relative;
}
.g-latest-posts .g-latest-posts-item figure a:before {
	content: '';
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
	background-color: var(--red);
	opacity: 0;
	z-index: 2;
	transition: all 0.2s;
}
.g-latest-posts .g-latest-posts-item figure:hover a:before {
	opacity: .5;
}
.g-latest-posts .g-latest-posts-item figure a:after {
	content: '\f055';
	font-family: "Font Awesome 7 Pro";
	position: absolute;
	right: 0;
	left: 0;
	margin: 0 auto;
	top: 50%;
	transform: translateY(-20%);
	opacity: 0;
	transition: all 0.2s;
	font-size: 3rem;
	z-index: 3;
	color: #fff;
	width: 4rem;
	display: block;
	font-weight: 900;
	text-align: center;
}
.g-latest-posts .g-latest-posts-item figure:hover a:after {
	opacity: 1;
	transform: translateY(-50%);
}
.g-latest-posts .g-latest-posts-item figure img {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	width: 100%;
	max-height: 100%;
	object-position: top;
	margin: auto;
	object-fit: cover;
	height: 100%;
	z-index: 1;
}
.g-latest-posts .g-latest-posts-content {
	width: 70%;
}
@media (max-width: 47.938rem) {
	.g-latest-posts .g-latest-posts-item figure, .g-latest-posts .g-latest-posts-content {
		width: 100%;
		max-width: 100%;
	}
	.g-latest-posts .g-latest-posts-item figure {
		height: 15rem;
	}
}

/* content area */
.post-cat-holder {
	display: flex;
}
.g-latest-posts .g-latest-posts-content a h3 {
	font-weight: 900;
	margin: 0;
	color: var(--contrast);
	text-transform: uppercase;
	display: inline-block;
	border: none;
	font-size: 1.25rem;
	border-bottom: 1px solid transparent;
	transition: all 0.2s ease 0s;
}

.g-latest-posts .g-latest-posts-content a:hover h3 {
	border-color: var(--red);
	color: var(--red);
}

.g-latest-posts .g-latest-posts-content .post-date {
	display: block;
	font-weight: 700;
	font-size: 0.875rem;
	line-height: 1.2;
	text-transform: uppercase;
	margin-bottom: 5px;
}
.g-latest-posts .cats-list {
	display: block;
	font-weight: 700;
	font-size: 0.875rem;
	line-height: 1.2;
	text-transform: uppercase;
	margin-bottom: 5px;
}
.g-latest-posts .post-cat-divider {
	display: block;
	font-weight: 700;
	font-size: 0.875rem;
	line-height: 1.2;
	text-transform: uppercase;
	padding: 0 5px;
}
.g-latest-posts .g-action-link {
	margin-top: 3.125rem;
}
.g-latest-posts .g-latest-posts-content p {
	margin-bottom: 0;
}

/* bottom action link */
.g-latest-posts .g-bottom-action-link {
	margin: 3.125rem 0 0 0;
	position: relative;
}
