/* The photos page: a grid of photo cards filling the panel, which scrolls
   on its own. */

.photos-section {
	display: flex;
	flex: 1 1 auto;
	min-height: 0;
	min-width: 0;
}

.photos-section > .photos-wrap {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-height: 0;
	min-width: 0;
}

.photos-wrap .block-text {
	align-self: flex-start;
}

.photos-scroller {
	flex: 1 1 auto;
	min-height: 0;
	min-width: 0;
	overflow: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
}

#photo-grid {
	display: grid;
	gap: var(--s5);
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 210px));
	justify-content: start;
	align-content: start;
}

#photo-grid .card {
	grid-column: auto;
}

#photo-grid .card:hover {
	transform: none;
}

#photo-grid .card-body {
	text-align: center;
}

#photo-grid .card-body .card-title,
#photo-grid .card-body .meta {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
