/*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;
}

.g-latest-posts .block-margin-padding .g-background-color {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	opacity: 1;
}

/* block title */
.g-latest-posts .g-block-container h2.g-block-title {
/*	color: #333;*/
/*	font-size: 2rem;*/
	font-weight: 800;
/*	font-family: $font-family-oswald;*/
	margin-bottom: 0;
	position: relative;
	text-transform: none;
	letter-spacing: 1px;
	text-align: center;
}

/* no-desktop: max-width 59.938rem */
@media (max-width: 59.938rem) {
	.g-latest-posts .g-block-container h2.g-block-title {
/*		font-size: $h3-font-size;*/
	}
}

.g-latest-posts .g-block-container h2.g-block-title::selection {
	color: #fff;
	background: #333;
}

/* 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;
    gap: 24px;
}

/* each post item */
.g-latest-posts .g-latest-posts-container .g-latest-posts-item {
	margin-bottom: 1rem;
	padding-bottom: 1rem;
	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;
	align-items: flex-start;
	gap: 48px;
}
@media (max-width: 47.9375rem) {
	.g-latest-posts .g-latest-posts-item .g-latest-posts-item-container {
		flex-direction: column;
	}
}

/* thumbnail */
.g-latest-posts .g-latest-posts-item figure {
	position: relative;
	width: 30%;
	margin: 0;
/*	padding-top: 56.25%;*/
	max-width: 30%;
	display: flex;
	justify-content: center;
	align-items: center;
	height: auto;
	aspect-ratio: 3 / 2;
	border: 1px solid #dddddd;
}
@media (max-width: 47.9375rem) {
	.g-latest-posts .g-latest-posts-item figure {
		aspect-ratio: 16 / 9;
	}
}

.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%;
}
.g-latest-posts .g-latest-posts-content {
	width: 70%;
}
@media (max-width: 47.9375rem) {
	.g-latest-posts .g-latest-posts-item figure, .g-latest-posts .g-latest-posts-content {
		width: 100%;
		max-width: 100%;
	}
}

/* content area */
.g-latest-posts .g-latest-posts-content a{
	border: none;
}
.g-latest-posts .g-latest-posts-content a:hover {
	border: none;
	color: var(--accent-2)!important;
}
.g-latest-posts .g-latest-posts-content a h3 {
	font-weight: bold;
	margin: 0;
	color: inherit;
	font-family: "Barlow Condensed";
	color: var(--accent);
	display: inline-block;
	border: none;
	font-size: 1.5rem;
	line-height: 1.1;
}

.g-latest-posts .g-latest-posts-content a:hover h3 {
	text-decoration: underline;
	color: var(--accent-2)!important;
	display: inline-block;
}

.g-latest-posts .g-latest-posts-content .post-date {
	font-weight: 600;
	display: block;
}
.g-latest-posts .cats-list {
	font-size: 0.9rem;
    line-height: 1;
    font-weight: 800;
    text-transform: uppercase;
	color: var(--accent-3);
	display: block;

}

.g-latest-posts .g-latest-posts-content p {
	margin-bottom: 0;
}

/* bottom action link */
.g-latest-posts .g-bottom-action-link {
	text-align: center;
	margin: 4rem 1rem 0rem;
	position: relative;
}

/* no-desktop */
@media (max-width: 59.938rem) {
	.g-latest-posts .g-bottom-action-link {
		width: 100%;
		max-width: 100%;
		margin: 0;
	}
	.g-latest-posts .g-bottom-action-link .button {
		margin-bottom: 0;
		margin-top: 0;
	}
}

/* dark theme */
.g-latest-posts.g-dark-theme .g-block-container > h2 {
	color: #fff;
}
.g-latest-posts.g-dark-theme .g-latest-posts-content a {
	color: #fff;
} 

.g-latest-posts.g-dark-theme .g-bottom-action-link a {
	color: #fff !important;
}

.g-latest-posts.g-dark-theme .g-bottom-action-link a:hover {
	color: #fff !important;
	text-decoration: none;
}
