/**
 * Truckerhaus Past Events — Styles
 *
 * Karte-Raster vergangener EventPress-Events (Post Type mep_events),
 * im Stil der Startseiten-Liste ([em_list]): Bild oben, Details darunter.
 * 4 Spalten → 3 / 2 / 1 bei den vorhandenen Theme-Breakpoints.
 * Komplett Schwarz-Weiß, Bilder in Graustufen, keine Links.
 * Version: 2.1.0
 */

.pe-list {
	width: 100%;
	margin: 0 auto;
	color: #000;
}

/* das Raster: vier Karten pro Zeile (Breakpoints unten) */
.pe-list__items {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	justify-content: space-between;
	column-gap: 2%;
	max-width: 1140px;
	margin: auto;
	padding: 0;
	list-style: none;
}

.pe-list__item {
	display: flex;
	flex-direction: column;
	margin: 0;
	margin-top: 40px;
	padding: 0;
}

/* Bild — immer Graustufen (Schwarz-Weiß) */
.pe-list__image {
	width: 100%;
}

.pe-list__image img {
	width: 100%;
	height: 200px;
	object-fit: cover;
	object-position: center center;
	border-radius: 20px;
	-webkit-filter: grayscale(1);
	filter: grayscale(1);
	transition: height 0.2s ease-out, margin-top 0.2s ease-out;
}

.pe-list__item:hover .pe-list__image img {
	height: 220px;
	margin-top: -20px;
}

/* Karten-Details */
.pe-list__details {
	flex: 1 1 auto;
}

.pe-list__datetime {
	margin-top: 10px;
	color: #000;
	font-size: 110%;
}

h3.pe-list__title {
	margin: 8px 0 0 0;
	font-size: 150%;
	font-weight: normal;
	line-height: 110%;
	color: #000;
}

.pe-list__cats {
	color: #000;
	margin-top: 8px;
	font-size: 100%;
}

/* Pagination */
.pe-list__nav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 24px;
	flex-wrap: wrap;
	max-width: 1140px;
	margin: 40px auto 0 auto;
	padding-top: 16px;
	border-top: 1px solid #000;
}

.pe-list__nav a,
.pe-list__nav a:visited,
.pe-list__nav a:hover,
.pe-list__nav a:focus {
	color: #000;
	text-decoration: underline;
}

.pe-list__nav-info {
	color: #000;
}

/* Breakpoints wie die Startseiten-Liste ([em_list]) */
@media only screen and (max-width: 1200px) {
	.pe-list__items {
		grid-template-columns: repeat(3, 1fr);
	}

	.pe-list__image img {
		height: 270px;
	}

	.pe-list__item:hover .pe-list__image img {
		height: 290px;
	}
}

@media only screen and (max-width: 960px) {
	.pe-list__items {
		grid-template-columns: repeat(2, 1fr);
	}

	.pe-list__datetime {
		font-size: 110%;
	}
}

@media only screen and (max-width: 700px) {
	.pe-list__image img {
		height: 250px;
	}

	.pe-list__item:hover .pe-list__image img {
		height: 270px;
	}
}

@media only screen and (max-width: 600px) {
	.pe-list__items {
		grid-template-columns: 1fr;
	}
}
