/**********************************************************
// Global Variable
**********************************************************/
:root {
	--excerpt-thumb-ratio: 100%; /* Adjust this value to change image aspect ratio (e.g., 150% for portrait) */
}

/**********************************************************
// Post >> Excerpt
**********************************************************/
.Excerpt {
	vertical-align: top;
	flex-basis: 49%;
	font-size: 17px;
	margin: 0;
	background: var(--LightBG);
	padding: 30px 20px;
	text-align: left;
}

.has-cream-background-color .Excerpt { background: #fff; }

.Excerpt-Flex {
	display: flex;
	gap: 1em;
}

.Excerpt-Thumb {
	width: 100%;
	position: relative;
	overflow: hidden;
	max-width: 25%;
}

/* New container for aspect ratio */
.Excerpt-Thumb-Ratio {
	display: block;
	width: 100%;
	position: relative;
	padding-bottom: var(--excerpt-thumb-ratio);
}

/* Force picture and img to absolutely fill the ratio box */
.Excerpt-Thumb-Ratio picture,
.Excerpt-Thumb-Ratio source,
.Excerpt-Thumb-Ratio img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
}

/* Link and screen reader text */
.Excerpt-Thumb a {
	display: block;
	width: 100%;
	height: 100%;
	text-decoration: none;
}

.Excerpt-Thumb:hover img {
	opacity: 0.7;
}

.Excerpt-Header {
	text-align: left;
}

.Excerpt-Title {
	padding: 0 !important;
	font-size: clamp(1.2rem, 2.7vw, 1.5rem);
	line-height: 1.3em;
	text-transform: none;
}

.Excerpt-Title a {
	color: var(--Dark);
}

.Excerpt-Title a:hover {
	color: var(--Links);
}

.Excerpt-Date {
	padding: 0 !important;
	font-size: 13px;
	text-transform: uppercase;
	font-weight: 900;
	letter-spacing: 1px;
	font-family: var(--Title-Font);
	margin: 10px 0 10px;
	display: block;
	line-height: 1.3em;
	color: var(--Links);
}

.Excerpt-Date a:hover { color: var(--Alt); }
.Excerpt-Date a { color: var(--Links); }

.Excerpt-Text p {
	padding: 0 !important;
}

.Excerpt-Text {
	font-size: 14px;
	line-height: 1.5em;
}

.Excerpt-More {
	margin: 20px auto 0 auto;
	padding: 10px 20px !important;
	letter-spacing: 1px;
	line-height: 1.5em;
	text-transform: uppercase;
	font-size: 14px;
	background: var(--Links);
	color: #FFF !important;
	display: inline-block;
}

.Excerpt-More:hover {
	background: var(--Alt);
}

.Excerpt-Mobile-Excerpt { display: none; }

.Excerpt-Read-More {
	font-weight: 700;
	text-transform: uppercase;
	font-size: 15px;
	letter-spacing: 1px;
}

/**********************************************************
// Product >> SM
**********************************************************/
.Product-SM {
	margin: 0 1%;
	width: 31.3%;
	max-width: 400px;
	display: inline-block;
	vertical-align: top;
	}

.Product-SM-Thumb {
	width: 100%;
	height: 400px;
	position: relative;
	overflow: hidden;
	}

.Product-SM-Thumb > span,
.Product-SM-Thumb > a {
	position: absolute;
	bottom: 0;
	right: 0;
	left: 0;
	top: 0;
	}

.Product-SM-Thumb > a { z-index: 200; }
.Product-SM-Thumb:hover > span { opacity: 0.7; }
.Product-SM-Thumb > span {
	background-color: #F8F8F8;
	z-index: 100;
	}

.Product-SM-Thumb > span:after {
    padding-bottom: 150%;
    content: '';
    display: block;
	}

.Product-SM-Thumb > span img {
	object-fit: cover;
    object-position: top center;
    height: 100%;
	}

.Product-SM-Main { padding: 15px; }
.Product-SM-Title {
	padding: 0 !important;
	text-transform: initial;
	font-style: italic;
	font-weight: 400;
	font-size: 22px;
	}

.Product-SM-Title a { color: #000; }
.Product-SM-Title a:hover { color: #555; }

/**********************************************************
// Media Queries
**********************************************************/
@media
all and (max-width: 1024px),
all and (max-device-width: 1024px)
{
	.Excerpt,
	.Product-SM {
		flex-basis: 49%;
	}
}

@media
all and (max-width: 768px),
all and (max-device-width: 768px)
{
	.Excerpt,
	.Product-SM {
		flex-basis: 100%;
		}
	
}

@media
all and (max-width: 500px),
all and (max-device-width: 500px)
{
	.Excerpt-Mobile-Excerpt { display: block; }
	.Excerpt-Desktop-Excerpt { display: none; }
}