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

/**********************************************************
// Post >> Excerpt
**********************************************************/
.Excerpt {
	vertical-align: top;
	flex-basis: 31%;
	min-width: 31%;
	font-size: 20px;
	margin: 0;
}

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

/* 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 {
	padding: 10px 10px 20px 10px;
	z-index: 120;
    position: relative;
	text-align: left;
}

.Excerpt-Title {
	padding: 0 !important;
	font-size: 1.3rem;
	line-height: 1.4em;
}

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

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

.Excerpt-Date {
	padding: 10px 0 0 !important;
	font-size: 13px;
	text-transform: uppercase;
	font-weight: bold;
	letter-spacing: 2px;
	line-height: 1.2em;
	display: block;
}

p.Excerpt-Category {
	font-size: 13px;
	text-transform: uppercase;
	font-weight: bold;
	letter-spacing: 2px;
	padding-bottom: 5px;
}

.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: #555;
	color: #FFF !important;
	display: inline-block;
}

.Excerpt-More:hover {
	background: #333;
}

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


/**********************************************************
// Post Nav
**********************************************************/


.Post-Nav .page-numbers {
	margin: 5px;
	width: 32px;
	height: 32px;
	line-height: 30px;
	border-radius: 100%;
	text-transform: uppercase;
	letter-spacing: 1px;
	font-weight: 600;
	font-size: 14px;
	display: inline-block;
	vertical-align: top;
	}

.Post-Nav a.page-numbers:hover,
.Post-Nav a.page-numbers:focus { color: var(--Teal); }
.Post-Nav .page-numbers {
	text-decoration: none;
	color: var(--Green);
	}

.Post-Nav .page-numbers.current {
	background: var(--Green);
	color: #FFF;
	}

.Post-Nav .next,
.Post-Nav .prev { width: auto; }
.Post-Nav .next { margin-left: 15px; }
.Post-Nav .prev { margin-right: 15px; }

.Post-Nav .next span,
.Post-Nav .next i,
.Post-Nav .prev span,
.Post-Nav .prev i {
	display: inline-block;
	vertical-align: middle;
	}

.Post-Nav .next i,
.Post-Nav .prev i {
	font-size: 20px;
	position: relative;
	top: -1px;
	}

.Post-Nav .next i { margin-left: 10px; }
.Post-Nav .prev i { margin-right: 10px; }

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

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

		}
}
