.kylayhdistys-history-page {
	padding: clamp(28px, 5vw, 72px) 20px;
	color: #25342b;
	background: #f6f2e9;
}

.kylayhdistys-history-page__inner {
	width: min(1180px, 100%);
	margin: 0 auto;
}

.kylayhdistys-history-archive__header {
	max-width: 760px;
	margin-bottom: 34px;
}

.kylayhdistys-history-archive__header > p:first-child,
.kylayhdistys-history-entry__date {
	margin: 0 0 7px;
	color: #7a5128;
	font-size: .84rem;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.kylayhdistys-history-archive__header h1,
.kylayhdistys-history-entry h1 {
	margin: 0 0 12px;
	color: #24472f;
	font-family: Georgia, serif;
	font-size: clamp(2rem, 5vw, 3.7rem);
	line-height: 1.08;
}

.kylayhdistys-history-grid {
	display: grid;
	grid-template-columns: repeat(var(--history-columns, 3), minmax(0, 1fr));
	gap: 24px;
}

.kylayhdistys-history-card {
	overflow: hidden;
	border: 1px solid #d8d0bf;
	border-radius: 15px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(60, 47, 29, .08);
}

.kylayhdistys-history-card a {
	display: block;
	color: inherit;
	text-decoration: none;
}

.kylayhdistys-history-card__image {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #e8e2d6;
}

.kylayhdistys-history-card__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .25s ease;
}

.kylayhdistys-history-card a:hover img {
	transform: scale(1.025);
}

.kylayhdistys-history-card__body {
	display: grid;
	gap: 5px;
	padding: 18px 20px 21px;
}

.kylayhdistys-history-card__body small {
	color: #835b31;
	font-weight: 750;
}

.kylayhdistys-history-card__body strong {
	color: #24472f;
	font-family: Georgia, serif;
	font-size: 1.25rem;
}

.kylayhdistys-history-card__body > span:last-child {
	color: #687269;
}

.kylayhdistys-history-entry {
	max-width: 900px;
	margin: 0 auto;
}

.kylayhdistys-history-entry__back {
	margin-bottom: 30px;
}

.kylayhdistys-history-entry__location {
	color: #687269;
	font-size: 1.1rem;
}

.kylayhdistys-history-entry__figure {
	margin: 34px 0;
}

.kylayhdistys-history-entry__figure img {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: 780px;
	margin: 0 auto;
	border-radius: 8px;
}

.kylayhdistys-history-entry__figure figcaption {
	margin-top: 10px;
	color: #62675f;
	font-size: .84rem;
	line-height: 1.5;
}

.kylayhdistys-history-entry__content {
	font-size: 1.08rem;
	line-height: 1.75;
}

.kylayhdistys-history-entry__people,
.kylayhdistys-history-entry__topics {
	margin-top: 24px;
	padding-top: 16px;
	border-top: 1px solid #d8d0bf;
}

@media (max-width: 850px) {
	.kylayhdistys-history-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
	.kylayhdistys-history-grid { grid-template-columns: 1fr; }
}
