.gallery-intro {
	padding: 0 0 1em 0;
	text-align: center;
}
.gallery .gallery--content {
	display: flex;
	flex-wrap: wrap;
	align-items: center;

	gap: 1rem;
}
.gallery .gallery--content .gallery--item {
	opacity: 0;
	transform: scale(0);
	transition: transform 0.25s ease;
	flex: 0;
	overflow: hidden;
}
.gallery .gallery--content .gallery--item.gallery--item__active {
	opacity: 1;
	transform: scale(1);
	flex: 1 1 100%;
}
.gallery .gallery--content .gallery--item .item--image img {
	width: 100%;
	max-width: 100%;
	height: auto;
	box-shadow: 0 2px 6px -2px #bebebe;
	object-fit: cover;
	aspect-ratio: 5/3;
	overflow: hidden;
	transition: transform 0.25s ease;
}
.gallery .gallery--content .gallery--item.gallery--item__active:hover {
	transform: scale(1.05);
}
.gallery
	.gallery--content
	.gallery--item.gallery--item__active:hover
	.item--image
	img {
	transform: scale(1.1);
}

/* ----- Fancybox Overrides -----*/
.fancybox-container {
	z-index: 9999999 !important;
}
.fanybox-button::before {
	display: none !important;
}
.fancybox-caption__body strong {
	font-size: 1.3em;
}
.compensate-for-scrollbar {
	margin-right: 0 !important;
}

@media screen and (min-width: 500px) {
	.gallery .gallery--content .gallery--item.gallery--item__active {
		flex: 0 1 calc(50% - 0.5rem);
	}
}

@media screen and (min-width: 700px) {
	.gallery
		.gallery--content[columns='2']
		.gallery--item.gallery--item__active {
		flex: 0 1 calc(50% - 0.5rem);
	}
	.gallery
		.gallery--content[columns='3']
		.gallery--item.gallery--item__active {
		flex: 0 1 calc(50% - 0.667rem);
	}
	.gallery
		.gallery--content[columns='4']
		.gallery--item.gallery--item__active {
		flex: 0 1 calc(33.33% - 0.75rem);
	}
}

@media screen and (min-width: 900px) {
	.gallery
		.gallery--content[columns='3']
		.gallery--item.gallery--item__active {
		flex: 0 1 calc(33.33% - 0.667rem);
	}
	.gallery
		.gallery--content[columns='4']
		.gallery--item.gallery--item__active {
		flex: 0 1 calc(25% - 0.75rem);
	}
}
