/* This stylesheet only ever loads on the front page and category archives
   (see wp_enqueue_scripts in pokeblog-home-grid.php), so it's safe to
   shrink <main>'s own side padding (AFFINGER theme default: 30px 50px)
   here without affecting any other page on the site — that padding was
   the main thing limiting how big the 3-column cards could get inside
   AFFINGER's ~640px content area. */
main {
	padding: 20px 20px !important;
}

.pbg-archive-title {
	font-size: 26px !important;
	line-height: 1.4 !important;
	font-weight: 700 !important;
	margin: 0 0 8px !important;
	padding: 0 !important;
	border: none !important;
	background: none !important;
}

.pbg-archive-title::before,
.pbg-archive-title::after {
	content: none !important;
}

.pbg-archive-desc {
	font-size: 14px;
	line-height: 1.7;
	color: #555;
	margin: 0 0 24px;
}

.pbg-wrap {
	max-width: 1200px;
	width: 100%;
	margin: 0 auto;
	padding: 8px 0 32px;
	box-sizing: border-box;
}

.pbg-wrap img {
	max-width: 100%;
	height: auto;
}

.pbg-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	width: 100%;
}

.pbg-grid,
.pbg-card {
	min-width: 0;
}

@media (max-width: 900px) {
	.pbg-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.pbg-grid {
		grid-template-columns: 1fr;
	}
}

.pbg-card {
	background: #fff;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .08);
	display: flex;
	flex-direction: column;
	transition: transform .15s ease, box-shadow .15s ease;
}

.pbg-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 6px 16px rgba(0, 0, 0, .12);
}

.pbg-card-thumb {
	display: block;
	aspect-ratio: 16 / 9;
	background: #f2f2f2;
	overflow: hidden;
}

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

.pbg-card-thumb-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #d32258;
	font-weight: bold;
	font-size: 20px;
	background: #fce9ef;
}

.pbg-card-body {
	padding: 12px 14px 14px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.pbg-card-title {
	font-size: 15px !important;
	line-height: 1.4 !important;
	margin: 0 !important;
	background: none !important;
}

.pbg-card-title a {
	color: #222;
	text-decoration: none;
}

.pbg-card-title a:hover {
	text-decoration: underline;
}

.pbg-pagination {
	margin-top: 32px;
	text-align: center;
}

.pbg-pagination .page-numbers {
	display: inline-block;
	margin: 0 4px;
	padding: 8px 14px;
	border-radius: 6px;
	background: #fff;
	border: 1px solid #ddd;
	color: #333;
	text-decoration: none;
	font-size: 14px;
}

.pbg-pagination .page-numbers.current {
	background: #d32258;
	color: #fff;
	border-color: #d32258;
}

.pbg-pagination .page-numbers:hover:not(.current) {
	background: #f7f7f7;
}
