.gallery {
	position: relative;
	display: flex;
	flex-wrap: nowrap;
	overflow-x: scroll;
	overflow-y: hidden;
	width: 100%;
	
	padding-top: .5em;
	padding-bottom: .5em;
	
	background-color: rgba(0, 0, 0, .5);
	color: var(--text-color-background);
}

.galleryPreview {
	position: relative;
	display: flex;
	white-space: nowrap;
	margin-left: .5em;
	margin-right: .5em;
	
	transition: filter .3s;
	cursor: pointer;
	
	/* making them not look like buttons */
	font-family: inherit;
	font-size: inherit;
	border: none;
	background-color: transparent;
	padding: 0;
	color: inherit;
}

.galleryPreview:last-of-type {
	margin-right: 0;
}

.galleryPreviewImage:hover, .galleryPreviewImage:focus {
	filter: brightness(1.3);
}

.galleryPreviewImage {
	height: 15em;
	outline: 2px solid white;
	transition: filter .3s;
}

.galleryTitle {
	position: absolute;
	left: .2em;
	
	font-size: 1.5em;
	text-shadow: 2px 2px 3px black;
	pointer-events: none;
}

/* adds space to the end of the gallery to combat collapsing margins */
.gallery::after {
	min-width: 0.5em;
	content: "";
}