.dm-grid {
	display: grid;
	grid-template-columns: repeat(var(--dm-cols, 3), minmax(0, 1fr));
	gap: 32px;
	margin: 0 0 40px;
}
@media (max-width: 900px) { .dm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .dm-grid { grid-template-columns: 1fr; } }

.dm-card {
	text-align: center;
	padding: 24px 20px;
	border: 1px solid rgba(0, 0, 0, .08);
	border-radius: 8px;
	background: #fff;
}
.dm-card-link { color: inherit; text-decoration: none; display: block; }
.dm-card-link:hover .dm-name { text-decoration: underline; }

.dm-photo {
	width: 160px;
	height: 160px;
	margin: 0 auto 16px;
	border-radius: 50%;
	overflow: hidden;
	background: #eef0f2;
}
.dm-photo img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(15%); }
.dm-photo-placeholder {
	display: flex; align-items: center; justify-content: center;
	width: 100%; height: 100%;
	font-size: 56px; color: #9aa3ab;
}

.dm-name { margin: 0 0 6px; font-size: 1.15em; line-height: 1.3; }
.dm-position { margin: 0 0 4px; font-weight: 600; opacity: .85; }
.dm-dates, .dm-since { margin: 0 0 4px; font-size: .92em; opacity: .7; }
.dm-excerpt { margin: 12px 0 0; font-size: .95em; }

/* Single tribute page */
.dm-single-header { display: flex; gap: 32px; align-items: flex-start; margin-bottom: 32px; flex-wrap: wrap; }
.dm-single-photo img { width: 260px; max-width: 100%; height: auto; border-radius: 8px; display: block; }
.dm-details { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 0; }
.dm-details dt { font-weight: 600; }
.dm-details dd { margin: 0; }
.dm-obit, .dm-back { margin-top: 24px; }
