.mgl-gallery.mgl-square {
	margin: -7.5px -7.5px 7.5px !important;
	width: calc(100% + 15px) !important;
}

.mgl-gallery.mgl-square .mgl-item {
	width: 20% !important;
	padding-bottom: 20% !important;
	padding-bottom: round(down, 20%, 1px) !important;
}

.mgl-gallery.mgl-square .mgl-item:nth-child(5n + 1) {
	width: round(down, 20%, 1px) !important;
}

.mgl-gallery.mgl-square .mgl-item:nth-child(5n + 2) {
	width: calc(round(down, 40%, 1px) - round(down, 20%, 1px)) !important;
}

.mgl-gallery.mgl-square .mgl-item:nth-child(5n + 3) {
	width: calc(round(down, 60%, 1px) - round(down, 40%, 1px)) !important;
}

.mgl-gallery.mgl-square .mgl-item:nth-child(5n + 4) {
	width: calc(round(down, 80%, 1px) - round(down, 60%, 1px)) !important;
}

.mgl-gallery.mgl-square .mgl-item:nth-child(5n + 5) {
	width: calc(round(down, 100%, 1px) - round(down, 80%, 1px)) !important;
}

.mgl-gallery.mgl-square .mgl-item .mgl-icon {
	padding: 7.5px !important;
}

@media screen and (max-width: 1199px) {
	.mgl-gallery.mgl-square .mgl-item {
		width: 25% !important;
		padding-bottom: 25% !important;
		padding-bottom: round(down, 25%, 1px) !important;
	}

	.mgl-gallery.mgl-square .mgl-item:nth-child(4n + 1) {
		width: round(down, 25%, 1px) !important;
	}

	.mgl-gallery.mgl-square .mgl-item:nth-child(4n + 2) {
		width: calc(round(down, 50%, 1px) - round(down, 25%, 1px)) !important;
	}

	.mgl-gallery.mgl-square .mgl-item:nth-child(4n + 3) {
		width: calc(round(down, 75%, 1px) - round(down, 50%, 1px)) !important;
	}

	.mgl-gallery.mgl-square .mgl-item:nth-child(4n + 4) {
		width: calc(round(down, 100%, 1px) - round(down, 75%, 1px)) !important;
	}
}

@media screen and (max-width: 991px) {
	.mgl-gallery.mgl-square .mgl-item {
		width: 33.3333% !important;
		padding-bottom: 33.3333% !important;
		padding-bottom: round(down, 33.3333%, 1px) !important;
	}

	.mgl-gallery.mgl-square .mgl-item:nth-child(3n + 1) {
		width: round(down, 33.3333%, 1px) !important;
	}

	.mgl-gallery.mgl-square .mgl-item:nth-child(3n + 2) {
		width: calc(round(down, 66.6667%, 1px) - round(down, 33.3333%, 1px)) !important;
	}

	.mgl-gallery.mgl-square .mgl-item:nth-child(3n + 3) {
		width: calc(round(down, 100%, 1px) - round(down, 66.6667%, 1px)) !important;
	}
}

@media screen and (max-width: 552px) {
	.mgl-gallery.mgl-square .mgl-item {
		width: 50% !important;
		padding-bottom: 50% !important;
		padding-bottom: round(down, 50%, 1px) !important;
	}

	.mgl-gallery.mgl-square .mgl-item:nth-child(2n + 1) {
		width: round(down, 50%, 1px) !important;
	}

	.mgl-gallery.mgl-square .mgl-item:nth-child(2n + 2) {
		width: calc(round(down, 100%, 1px) - round(down, 50%, 1px)) !important;
	}
}

@media screen and (max-width: 287px) {
	.mgl-gallery.mgl-square .mgl-item {
		width: 100% !important;
		padding-bottom: 100% !important;
		padding-bottom: round(down, 100%, 1px) !important;
	}

	.mgl-gallery.mgl-square .mgl-item:nth-child(1n + 1) {
		width: round(down, 100%, 1px) !important;
	}
}

.mgl-gallery.mgl-square .mgl-item .mgl-icon img {
	position: absolute !important;
	left: 7.5px !important;
	bottom: 7.5px !important;
	width: calc(100% - 15px) !important;
	height: auto !important;
	aspect-ratio: 1 !important;
	object-fit: cover !important;
}
