/*
 * AC Gedenken — same grid/card structure as ac-team.css (grid-template-columns via
 * Elementor control, square photo, card body), deliberately toned down: muted
 * neutrals instead of bright white + heavy shadow, no hover-lift bounce, a quiet
 * accent-colored top rule instead of an energetic hover animation.
 */

.ac-mem-grid {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 240px, 1fr ) );
	gap: 30px;
}

.ac-mem-card {
	background-color: #f5f7f6;
	border-radius: 8px;
	border-top: 3px solid var( --ac-accent, #2e6741 );
	overflow: hidden;
	text-align: center;
	font-family: 'Amiko', sans-serif;
	transition: box-shadow 0.3s ease;
}

.ac-mem-card:hover {
	box-shadow: 0 6px 20px rgba( 28, 36, 33, 0.1 );
}

.ac-mem-photo {
	width: calc( 100% - 48px );
	aspect-ratio: 1 / 1;
	margin: 24px auto 0;
	background-color: #e0e4e2;
	border-radius: 50%;
	border-style: solid;
	border-color: #2e6741;
	border-width: 3px;
	overflow: hidden;
}

.ac-mem-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	filter: grayscale( 1 );
}

.ac-mem-body {
	padding: 20px 24px 28px;
}

.ac-mem-name {
	font-family: 'Montserrat', sans-serif;
	font-size: 1.15rem;
	font-weight: 600;
	color: #1c2421;
	margin: 0 0 4px;
}

.ac-mem-position {
	font-family: 'Montserrat', sans-serif;
	font-size: 0.8rem;
	font-weight: 600;
	color: #5b6660;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	margin-bottom: 10px;
}

.ac-mem-dates {
	font-size: 0.9rem;
	font-variant-numeric: tabular-nums;
	color: #5b6660;
	letter-spacing: 0.2px;
	margin-bottom: 14px;
}

.ac-mem-link {
	display: inline-block;
	font-family: 'Montserrat', sans-serif;
	font-size: 0.82rem;
	font-weight: 600;
	color: var( --ac-accent, #2e6741 );
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: border-color 0.25s ease, opacity 0.25s ease;
}

.ac-mem-link:hover,
.ac-mem-link:focus-visible {
	border-bottom-color: var( --ac-accent, #2e6741 );
	opacity: 0.85;
}

@media ( prefers-reduced-motion: reduce ) {
	.ac-mem-card {
		transition: none;
	}
}
