.ps-grid {
	display: grid;
	grid-template-columns: repeat(var(--ps-columns, 3), 1fr);
	gap: var(--ps-gap, 24px);
	margin: 24px 0;
}

.ps-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: #fff;
}

.ps-style-card .ps-card {
	border: var(--ps-border-width, 1px) solid var(--ps-border-color, #e5e5e5) !important;
	border-radius: var(--ps-border-radius, 0px) !important;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ps-style-card .ps-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.ps-style-minimal .ps-card {
	border: none !important;
	border-radius: 0 !important;
	box-shadow: none;
}

.ps-card__image {
	display: block;
	width: 100%;
	overflow: hidden;
	background: #f4f4f4;
}

.ps-card__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.ps-ratio-landscape .ps-card__image { aspect-ratio: 4 / 3; }
.ps-ratio-square .ps-card__image { aspect-ratio: 1 / 1; }
.ps-ratio-portrait .ps-card__image { aspect-ratio: 3 / 4; }
.ps-ratio-auto .ps-card__image { aspect-ratio: auto; }

.ps-card__body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 16px;
	flex: 1;
}

.ps-card__title {
	margin: 0;
	font-size: 18px;
	line-height: 1.3;
}

.ps-card__title a {
	color: inherit;
	text-decoration: none;
}

.ps-card__title a:hover {
	text-decoration: underline;
}

.ps-card__media-link {
	font-size: 13px;
	font-weight: 600;
	color: var(--ps-btn-bg, #1e6fd9);
	text-decoration: none;
}

.ps-card__media-link:hover {
	text-decoration: underline;
}

.ps-card__desc {
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
	color: #555;
}

.ps-card__desc p:first-child { margin-top: 0; }
.ps-card__desc p:last-child { margin-bottom: 0; }

.ps-card__button {
	display: inline-block;
	margin-top: auto;
	padding: 10px 18px;
	border-radius: 6px;
	background: var(--ps-btn-bg, #1e6fd9);
	color: var(--ps-btn-color, #fff);
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
	text-align: center;
	align-self: flex-start;
	transition: opacity 0.15s ease;
}

.ps-card__button:hover {
	opacity: 0.88;
	color: var(--ps-btn-color, #fff);
}

.ps-empty {
	padding: 16px;
	color: #777;
}
