.stm-materials {
	margin: 24px 0;
}

.stm-material-section {
	margin: 0 0 24px;
}

.stm-material-section h2 {
	margin: 0 0 16px;
}

.stm-material-grid {
	display: grid;
	gap: 18px;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.stm-material-card {
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
	padding: 16px;
	text-align: center;
}

.stm-material-image {
	align-items: center;
	display: flex;
	justify-content: center;
	margin: 0 auto 12px;
	min-height: 120px;
}

.stm-material-image img {
	display: block;
	height: auto;
	max-height: 120px;
	max-width: 120px;
	object-fit: contain;
	width: auto;
}

.stm-material-placeholder {
	align-items: center;
	background: #f6f7f7;
	border: 1px dashed #c3c4c7;
	border-radius: 8px;
	color: #50575e;
	display: flex;
	font-size: 14px;
	font-weight: 700;
	height: 120px;
	justify-content: center;
	width: 120px;
}

.stm-material-card h3 {
	font-size: 17px;
	line-height: 1.25;
	margin: 0 0 8px;
	overflow-wrap: anywhere;
}

.stm-material-meta {
	color: #53606f;
	font-size: 13px;
	margin: 0 0 12px;
}

.stm-material-actions {
	margin: 12px 0 0;
}

.stm-download-button,
.stm-button {
	display: inline-block;
	margin: 4px 3px;
	text-decoration: none;
}

.stm-download-button {
	background: #f6f7f7;
	border: 1px solid #c3c4c7;
	border-radius: 3px;
	color: #2271b1;
	font-size: 13px;
	font-weight: 700;
	line-height: 2.15384615;
	min-height: 30px;
	padding: 0 10px;
}

.stm-button {
	background: #f6f7f7;
	border: 1px solid #c3c4c7;
	border-radius: 3px;
	color: #2271b1;
	font-size: 13px;
	line-height: 2.15384615;
	min-height: 30px;
	padding: 0 10px;
}

.stm-download-button:hover,
.stm-download-button:focus,
.stm-button:hover,
.stm-button:focus {
	background: #f0f0f1;
	border-color: #8c8f94;
	color: #135e96;
}

.stm-empty,
.stm-login-required {
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
	padding: 14px 16px;
}

@media (max-width: 520px) {
	.stm-material-grid {
		grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	}
}
