/* "Алея пам'яті" — home-page memorial band. Card values copied verbatim from the
   Claude Design source "Алея памяті (вертикальні картки).dc.html": a full-bleed
   4:5 portrait above a left-aligned name / gold rule / life-years footer. Laid out
   four to a row here (the design used an auto-fill grid). */

.memorial_alley {
	/* Full-width band, flush under the orange .page_heading. It lives outside the
	   centred 1000px container, so it spans the viewport; .ma_inner re-centres it. */
	padding: 34px 0 36px;
	background: #23262b;
	color: #e6e6e6;
	font-family: 'PT Sans', sans-serif;
}

.memorial_alley .ma_inner {
	max-width: 1000px;
	margin: 0 auto;
	padding: 0 20px;
	box-sizing: border-box;
}

.memorial_alley .ma_header {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
	margin-bottom: 5px;
}

.memorial_alley .ma_rule {
	height: 1px;
	width: 72px;
}

.memorial_alley .ma_rule_left {
	background: linear-gradient(90deg, transparent, #5a5e66);
}

.memorial_alley .ma_rule_right {
	background: linear-gradient(90deg, #5a5e66, transparent);
}

.memorial_alley .ma_title {
	margin: 0;
	padding: 0;
	font-family: 'Comfortaa', sans-serif;
	font-weight: 700;
	font-size: 27px;
	letter-spacing: 1px;
	color: #f1ede6;
	text-transform: none;
}

.memorial_alley .ma_subtitle {
	text-align: center;
	color: #9aa0a8;
	font-size: 18px;
	margin-bottom: 28px;
}

.memorial_alley .ma_grid {
	/* Flex (not grid) so a partial last row remains centred. */
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 20px;
}

.memorial_alley .ma_card {
	display: block;
	flex: 0 0 calc((100% - 3 * 20px) / 4);
	min-width: 0;
	box-sizing: border-box;
	background: #2c3036;
	border: 1px solid #353a41;
	border-radius: 6px;
	overflow: hidden;
	text-decoration: none;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

.memorial_alley .ma_card:hover {
	border-color: #434851;
	background: #31363f;
}

.memorial_alley .ma_card:focus-visible {
	outline: 2px solid #caa64a;
	outline-offset: 2px;
}

.memorial_alley .ma_portrait {
	display: block;
	aspect-ratio: 4 / 5;
	background: #1c1f24;
}

.memorial_alley .ma_portrait img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.memorial_alley .ma_meta {
	display: block;
	padding: 15px 17px 17px;
}

.memorial_alley .ma_name {
	display: block;
	font-family: 'PT Serif', serif;
	font-weight: 700;
	font-size: 18px;
	line-height: 1.25;
	color: #f1ede6;
}

.memorial_alley .ma_gold {
	display: block;
	width: 36px;
	height: 2px;
	margin: 10px 0;
	background: #caa64a;
	transition: width 0.2s ease;
}

.memorial_alley .ma_card:hover .ma_gold {
	width: 56px;
}

.memorial_alley .ma_years {
	display: block;
	font-size: 13.5px;
	color: #9aa0a8;
}

@media (max-width: 970px) {
	.memorial_alley .ma_card {
		flex-basis: calc((100% - 2 * 20px) / 3);
	}
}

@media (max-width: 750px) {
	.memorial_alley .ma_card {
		flex-basis: calc((100% - 20px) / 2);
	}
}

@media (max-width: 480px) {
	.memorial_alley .ma_card {
		flex-basis: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.memorial_alley .ma_card,
	.memorial_alley .ma_gold {
		transition: none;
	}
}
