/* Custom blog grid — matched to TPG grid-layout1 + Elementor kit 8 / page 11. */

.plywood-blog-grid {
	--pbg-color-primary: var(--e-global-color-primary, #88715B);
	--pbg-color-text: var(--e-global-color-text, #614B38);
	--pbg-color-accent: var(--e-global-color-accent, #C8BFAE);
	--pbg-color-white: var(--e-global-color-28e5d19, #FFFFFF);
	--pbg-color-meta: #646464;
	font-family: "Lato", Sans-serif;
}

.plywood-blog-grid *,
.plywood-blog-grid *::before,
.plywood-blog-grid *::after {
	box-sizing: border-box;
}

.plywood-blog-grid__row {
	display: grid;
	grid-template-columns: 1fr;
	column-gap: 30px;
	row-gap: 30px;
}

@media (min-width: 768px) {
	.plywood-blog-grid__row {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 992px) {
	.plywood-blog-grid__row {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.plywood-blog-card {
	min-height: 1px;
	margin: 0;
}

.plywood-blog-card__inner {
	background: #fff;
	box-shadow: 0 0 2px 0 rgba(0, 0, 0, 0.3);
	height: 100%;
	display: flex;
	flex-direction: column;
}

.plywood-blog-card__media {
	overflow: hidden;
	position: relative;
	line-height: 0;
}

.plywood-blog-card__media a {
	display: block;
}

.plywood-blog-card__image {
	display: block;
	width: 100%;
	height: auto;
	max-width: 100%;
	transition: transform 0.4s ease-in-out;
}

.plywood-blog-card__image--placeholder {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #f3f0eb;
}

.plywood-blog-card__inner:hover .plywood-blog-card__image:not(.plywood-blog-card__image--placeholder) {
	transform: scale(1.1);
}

.plywood-blog-card__body {
	padding: 15px 15px 0;
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
}

.plywood-blog-card .entry-title-wrapper {
	margin-bottom: 15px;
}

.plywood-blog-card .entry-title {
	font-family: "Lato", Sans-serif;
	font-size: 22px;
	font-weight: 600;
	line-height: 1.3;
	margin: 0 0 18px;
	padding-bottom: 2px;
	color: var(--pbg-color-primary);
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	display: -webkit-box;
	overflow: hidden;
	text-overflow: ellipsis;
}

@media (max-width: 767px) {
	.plywood-blog-card .entry-title {
		font-size: 20px;
		margin: 0 0 15px;
	}
}

.plywood-blog-card .entry-title a {
	color: inherit !important;
	font-size: inherit !important;
	font-weight: inherit !important;
	text-decoration: none;
	transition: color 0.31s ease;
}

.plywood-blog-card .entry-title a:hover,
.plywood-blog-card .entry-title:hover,
.plywood-blog-card .tpg-post-holder .entry-title:hover {
	color: var(--pbg-color-text);
}

.plywood-blog-card__meta {
	align-content: baseline;
	color: var(--pbg-color-meta);
	display: inline-flex;
	flex-wrap: wrap;
	font-size: 15px;
	line-height: 1;
	margin-bottom: 13px;
	padding: 0;
}

.plywood-blog-card__meta > span {
	align-items: center;
	display: inline-flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 3px;
	padding-right: 10px;
}

.plywood-blog-card__date-icon {
	display: block;
	flex-shrink: 0;
	width: 14px;
	height: 14px;
}

.plywood-blog-card__excerpt {
	margin-top: -5px;
	margin-bottom: 10px;
	color: var(--pbg-color-text);
	font-size: 18px;
	font-weight: 400;
	line-height: 1.5;
}

.plywood-blog-card__excerpt .tpg-excerpt-inner {
	word-break: break-word;
}

.plywood-blog-card .post-footer {
	margin-bottom: 15px;
	margin-top: auto;
}

.plywood-blog-card .read-more a {
	align-items: center;
	background-color: var(--pbg-color-accent);
	border: 1px solid var(--pbg-color-accent);
	border-radius: 0;
	color: var(--pbg-color-text);
	display: inline-flex;
	flex-direction: row;
	font-size: 15px;
	justify-content: left;
	line-height: 1.8;
	overflow: hidden;
	padding: 6px 20px;
	text-decoration: none;
	transition: color 0.31s ease, background-color 0.31s ease, border-color 0.31s ease;
}

.plywood-blog-card .read-more a:hover,
.plywood-blog-card .read-more a:focus {
	color: var(--pbg-color-white);
	background-color: var(--pbg-color-text);
	border-color: var(--pbg-color-text);
}

.plywood-blog-grid__footer {
	min-height: 1px;
}

.plywood-blog-grid__loader {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px 0 8px;
}

.plywood-blog-grid__loader[hidden] {
	display: none;
}

.plywood-blog-grid__spinner {
	width: 28px;
	height: 28px;
	border: 3px solid var(--pbg-color-accent);
	border-top-color: var(--pbg-color-text);
	border-radius: 50%;
	animation: plywood-blog-spin 0.8s linear infinite;
}

.plywood-blog-grid__sentinel {
	height: 1px;
	width: 100%;
}

.plywood-blog-grid .plywood-blog-search {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 10px;
	margin: 0 0 24px;
}

.plywood-blog-grid .plywood-blog-search__field {
	position: relative;
	flex: 1 1 220px;
	min-width: 0;
}

.plywood-blog-grid .plywood-blog-search__input {
	width: 100%;
	margin: 0;
	padding: 10px 36px 10px 14px;
	border: 1px solid #d6d0c6;
	border-radius: 0;
	background: #fff;
	color: var(--pbg-color-text);
	font-family: "Lato", Sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
}

.plywood-blog-grid .plywood-blog-search__input::-webkit-search-decoration,
.plywood-blog-grid .plywood-blog-search__input::-webkit-search-cancel-button,
.plywood-blog-grid .plywood-blog-search__input::-webkit-search-results-button,
.plywood-blog-grid .plywood-blog-search__input::-webkit-search-results-decoration {
	-webkit-appearance: none;
	appearance: none;
	display: none;
}

.plywood-blog-grid .plywood-blog-search__input:focus {
	outline: none;
	border-color: var(--pbg-color-text);
}

.plywood-blog-grid .plywood-blog-search__reset {
	position: absolute;
	top: 50%;
	right: 8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #767676;
	color: #fff;
	cursor: pointer;
	transform: translateY(-50%);
}

.plywood-blog-grid .plywood-blog-search__reset[hidden] {
	display: none;
}

.plywood-blog-grid .plywood-blog-search__reset:hover,
.plywood-blog-grid .plywood-blog-search__reset:focus {
	background: #4b4b4b;
}

.plywood-blog-grid .plywood-blog-search__submit {
	background-color: var(--pbg-color-accent);
	border: 1px solid var(--pbg-color-accent);
	border-radius: 0;
	color: var(--pbg-color-text);
	cursor: pointer;
	font-family: "Lato", Sans-serif;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.8;
	padding: 10px 22px;
	text-decoration: none;
	transition: color 0.31s ease, background-color 0.31s ease, border-color 0.31s ease;
}

.plywood-blog-grid .plywood-blog-search__submit:hover,
.plywood-blog-grid .plywood-blog-search__submit:focus {
	background-color: var(--pbg-color-text);
	border-color: var(--pbg-color-text);
	color: var(--pbg-color-white);
}

.plywood-blog-search__status {
	margin: -8px 0 20px;
	color: var(--pbg-color-meta);
	font-size: 15px;
	line-height: 1.4;
}

.plywood-blog-search__status[hidden],
.plywood-blog-grid__row[hidden],
.plywood-blog-grid__empty[hidden] {
	display: none;
}

.plywood-blog-grid__empty {
	margin: 0 0 10px;
	color: var(--pbg-color-text);
	font-size: 18px;
}

@keyframes plywood-blog-spin {
	to {
		transform: rotate(360deg);
	}
}

.plywood-search-page {
	padding: 40px 15px 100px;
}

.plywood-search-page__inner {
	max-width: 1440px;
	margin: 0 auto;
}

.plywood-search-page__header {
	margin-bottom: 24px;
}

.plywood-search-page__header .entry-title {
	font-family: "Lato", Sans-serif;
	font-size: 28px;
	font-weight: 700;
	line-height: 1.3;
	margin: 0;
	color: var(--e-global-color-text, #614B38);
}

.plywood-search-page__header .entry-title span {
	color: var(--e-global-color-primary, #88715B);
}

@media (max-width: 767px) {
	.plywood-search-page {
		padding: 40px 15px;
	}

	.plywood-search-page__header .entry-title {
		font-size: 22px;
	}
}
