.pcg-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
}

.pcg-card {
	position: relative;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	overflow: hidden;
	background: #fff;
	border: 1px solid #eee;
	border-radius: 8px;
	color: inherit;
	text-decoration: none;
	transition: transform .3s ease, box-shadow .3s ease, background-color .3s ease, border-color .3s ease;
}
.pcg-card:hover,
.pcg-card:focus {
	text-decoration: none;
}

.pcg-image {
	position: relative;
	overflow: hidden;
	aspect-ratio: 1 / 1;
	background: #f4f4f4;
}
.pcg-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .5s ease;
}

.pcg-content {
	box-sizing: border-box;
	padding: 16px;
	text-align: center;
}
.pcg-name {
	margin: 0 0 4px;
	color: #222;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.3;
	transition: color .3s ease;
}
.pcg-count {
	display: block;
	color: #777;
	font-size: 14px;
	transition: color .3s ease;
}

/* Overlay layout */
.pcg-layout-overlay {
	background: none;
}
.pcg-layout-overlay .pcg-content {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 2;
	background: rgba(0, 0, 0, .5);
}
.pcg-layout-overlay .pcg-name,
.pcg-layout-overlay .pcg-count {
	color: #fff;
}

.pcg-empty {
	padding: 20px;
	text-align: center;
	border: 1px dashed #ccc;
}
