/* PeeweePaw – Catégories en photos (widget) : photos carrées, titre dans un bandeau blanc en bas avec la vague du diaporama.
   4 colonnes sur ordinateur (même largeur que le contenu de la page), 2 sur téléphone. */
.pwcat {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	width: 100%;
	margin: 0;
}

.pwcat a {
	position: relative;
	display: block;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: 12px;
	background: #f2f6ef;
	text-decoration: none;
}

/* La photo remplit le carré ; le point de cadrage choisi dans le widget arrive en style="object-position:…" */
.pwcat img.pwcat-photo {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	transition: transform .5s ease;
}

.pwcat a:hover img.pwcat-photo,
.pwcat a:focus img.pwcat-photo {
	transform: scale(1.05);
}

.pwcat .pwcat-box {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 12px 10px 10px;
	background: rgba(255, 255, 255, .9);
	text-align: center;
}

.pwcat .pwcat-t {
	display: block;
	font-family: "Playfair Display", Georgia, serif;
	font-size: 18px;
	font-weight: 400;
	line-height: 1.2;
	color: #666;
}

.pwcat img.pwcat-w {
	display: block;
	width: 56px;
	height: auto;
	margin: 5px auto 0;
}

@media (max-width: 767px) {
	.pwcat {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}

	.pwcat .pwcat-box {
		padding: 8px 6px 7px;
	}

	.pwcat .pwcat-t {
		font-size: 15px;
	}

	.pwcat img.pwcat-w {
		width: 44px;
		margin-top: 4px;
	}
}
