.spgp-wrapper {
	width: 100%;
}

.spgp-grid {
	display: grid;
	grid-template-columns: repeat(var(--spgp-columns, 3), 1fr);
	width: 100%;
	align-items: start;
}

.spgp-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid #e8e8e6;
}

.spgp-card-image {
	overflow: hidden;
	margin: -1px -1px 0 -1px;
}

.spgp-card-image a {
	display: block;
	height: 100%;
}

.spgp-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.spgp-card-content {
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1;
}

.spgp-eyebrow {
	text-transform: capitalize;
	font-weight: 600;
	letter-spacing: 0.02em;
}

.spgp-title {
	margin: 0;
	font-weight: 700;
	line-height: 1.3;
}

.spgp-meta {
	margin: -4px 0 0;
}

.spgp-excerpt {
	margin: 0;
	line-height: 1.6;
}

.spgp-readmore {
	margin-top: auto;
	padding-top: 8px;
	display: inline-block;
	width: fit-content;
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--spgp-btn-color, #1a1a1a);
}

.spgp-readmore--text {
	padding-bottom: 2px;
}

.spgp-readmore--filled {
	background: var(--spgp-btn-color, #1a1a1a);
	color: #fff;
	padding: 10px 18px;
	border-radius: 4px;
}

.spgp-readmore--outline {
	border: 1.5px solid var(--spgp-btn-color, #1a1a1a);
	padding: 9px 18px;
	border-radius: 4px;
}

.spgp-no-posts {
	opacity: 0.7;
	font-style: italic;
}

/* ============================================================
   CARD STYLE 2 — image with hover-reveal title overlay
   ============================================================ */

.spgp-card--style2 {
	position: relative;
	overflow: hidden;
	cursor: pointer;
	border: none;
	flex-shrink: 0;
}

.spgp-s2-link {
	display: block;
	width: 100%;
	height: 100%;
	position: absolute;
	inset: 0;
	text-decoration: none;
}

.spgp-s2-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
	will-change: transform;
}

.spgp-s2-img--placeholder {
	background: #2a2a2a;
}

.spgp-card--style2:hover .spgp-s2-img {
	transform: scale(1.06);
}

/* Dark gradient overlay — slides up on hover */
.spgp-s2-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: flex-end;
	padding: 0;
	/* Clip the overlay so only the bottom strip is visible initially */
	clip-path: inset(calc(100% - 0px) 0 0 0);
	transition: clip-path 0.42s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.spgp-card--style2:hover .spgp-s2-overlay {
	clip-path: inset(0 0 0 0);
}

/* Gradient behind the title text */
.spgp-s2-overlay::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to top,
		var(--spgp-overlay-bg, rgba(0, 0, 0, 0.62)) 0%,
		rgba(0, 0, 0, 0.28) 55%,
		rgba(0, 0, 0, 0) 100%
	);
}

.spgp-s2-title {
	position: relative;
	z-index: 1;
	width: 100%;
	padding: 20px 16px 16px;
	font-weight: 600;
	line-height: 1.35;
	transform: translateY(12px);
	opacity: 0;
	transition:
		transform 0.42s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.04s,
		opacity 0.38s ease 0.04s;
}

.spgp-card--style2:hover .spgp-s2-title {
	transform: translateY(0);
	opacity: 1;
}

