.gallery {
	margin-bottom: 10px;
  	overflow: hidden;
  	list-style: none !important;
}

.gallery-item {
	display: inline-block;
	padding: 0 !important;
	margin-right: 5px;
	margin-bottom: 5px; 
	text-align: center;
	vertical-align: top;
	width: 100%;

	.gallery-columns-2 & {
		width: calc(50% - 5px);
		max-width: 50%;
	}

	.gallery-columns-3 & {
		width: calc(33.33% - 5px);
		max-width: 33.33%;
	}

	.gallery-columns-4 & {
		width: calc(25% - 5px);
		max-width: 25%;
	}

	.gallery-columns-5 & {
		width: calc(20% - 5px);
		max-width: 20%;
	}

	.gallery-columns-6 & {
		width: calc(16.66% - 5px);
		max-width: 16.66%;
	}

	.gallery-columns-7 & {
		width: calc(14.28% - 5px);
		max-width: 14.28%;
	}

	.gallery-columns-8 & {
		width: calc(12.5% - 5px);
		max-width: 12.5%;
	}

	.gallery-columns-9 & {
		width: calc(11.11% - 5px);
		max-width: 11.11%;
	}
}

.gallery-caption {
	display: block;
}