.slmg-gallery {
	position: relative;
	display: block;
    height: 812.656px;
    margin: 50px 12% 25px;
	box-sizing: border-box;
}

/* Keep WPBakery wrappers from shrinking around the gallery. */
.vc_column-inner > .wpb_wrapper:has(.slmg-gallery),
.wpb_text_column:has(.slmg-gallery),
.wpb_text_column:has(.slmg-gallery) > .wpb_wrapper {
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
	flex: 1 1 100% !important;
	align-self: stretch !important;
}

/* Four-column layout */
.slmg-grid-sizer,
.slmg-item {
	width: 24.25%;
}

.slmg-gutter-sizer {
	width: 1%;
}

.slmg-item {
	margin-bottom: 1%;
	box-sizing: border-box;
}

.slmg-item.slmg-large {
	width: 49.5%;
}

.slmg-link,
.slmg-image {
	display: block;
	width: 100%;
	max-width: 100%;
}

.slmg-link {
	overflow: hidden;
	text-decoration: none;
}

.slmg-image {
	height: auto;
}

/* Three-column layout */
@media (max-width: 980px) {
	.slmg-grid-sizer,
	.slmg-item {
		width: 32.6667%;
	}

	.slmg-gutter-sizer {
		width: 1%;
	}

	.slmg-item.slmg-large {
		width: 66.3334%;
	}
}

/* Two-column layout */
@media (max-width: 680px) {
	.slmg-grid-sizer,
	.slmg-item {
		width: 49.5%;
	}

	.slmg-gutter-sizer {
		width: 1%;
	}

	.slmg-item.slmg-large {
		width: 100%;
	}
}

/* One-column layout */
@media (max-width: 420px) {
	.slmg-grid-sizer,
	.slmg-item,
	.slmg-item.slmg-large {
		width: 100%;
	}

	.slmg-gutter-sizer {
		width: 0;
	}

	.slmg-item {
		margin-bottom: 12px;
	}
}
