.sp19-gallery-catalog {
	margin-top: 1.5rem;
}

.sp19-gallery-filter {
	padding: 1.25rem;
	margin-bottom: 1.25rem;
	background: #f4f7f8;
	border: 1px solid #dce5e9;
	border-radius: 4px;
}

.sp19-gallery-filter label {
	display: block;
	margin-bottom: .55rem;
	font-size: 1.05rem;
	font-weight: 700;
}

.sp19-gallery-filter__controls {
	display: flex;
	gap: .75rem;
	align-items: stretch;
}

.sp19-gallery-filter select {
	width: min(100%, 28rem);
	min-height: 44px;
	padding: .55rem .75rem;
	background: #fff;
	border: 1px solid #9daeb6;
	border-radius: 3px;
}

.sp19-gallery-filter button {
	min-height: 44px;
	padding: .55rem 1.15rem;
	color: #fff;
	font-weight: 700;
	background: #377e9f;
	border: 1px solid #377e9f;
	border-radius: 3px;
}

.sp19-gallery-filter button:hover,
.sp19-gallery-filter button:focus {
	background: #245f7b;
	border-color: #245f7b;
}

.sp19-gallery-summary {
	margin: 0 0 1rem;
	color: #4b5960;
}

.sp19-gallery-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.4rem;
}

.sp19-gallery-card {
	margin: 0;
	overflow: hidden;
	background: #fff;
	border: 1px solid #d8e0e4;
	border-radius: 4px;
	box-shadow: 0 2px 7px rgba(0, 0, 0, .08);
}

.sp19-gallery-card__link {
	display: block;
	height: 100%;
	color: #222;
	text-decoration: none;
}

.sp19-gallery-card__link:hover,
.sp19-gallery-card__link:focus {
	color: #245f7b;
	text-decoration: underline;
}

.sp19-gallery-card__media {
	display: flex;
	height: 180px;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background: #e9eef0;
}

.sp19-gallery-card__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sp19-gallery-card__placeholder {
	font-size: 3rem;
	opacity: .55;
}

.sp19-gallery-card__title {
	display: block;
	padding: 1rem;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.35;
}

.sp19-gallery-pagination {
	margin-top: 2rem;
}

.sp19-gallery-pagination .page-numbers {
	display: flex;
	flex-wrap: wrap;
	gap: .4rem;
	padding: 0;
	margin: 0;
	list-style: none;
}

.sp19-gallery-pagination a,
.sp19-gallery-pagination span {
	display: inline-flex;
	min-width: 42px;
	min-height: 42px;
	padding: .45rem .7rem;
	align-items: center;
	justify-content: center;
	border: 1px solid #9db1ba;
	border-radius: 3px;
}

.sp19-gallery-pagination .current {
	color: #fff;
	font-weight: 700;
	background: #377e9f;
	border-color: #377e9f;
}

@media (max-width: 800px) {
	.sp19-gallery-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 520px) {
	.sp19-gallery-filter__controls {
		flex-direction: column;
	}

	.sp19-gallery-filter select {
		width: 100%;
	}

	.sp19-gallery-grid {
		grid-template-columns: 1fr;
	}

	.sp19-gallery-card__media {
		height: 210px;
	}
}
