.galleryItem, .galleryItem * {box-sizing:border-box}
.galleryItem .galleryBack {display:block;margin:0 0 1em 0}

.galleryItemImages {padding:0;list-style:none;overflow:hidden}
.galleryItemImages li {float:left;margin:0 2% 2% 0}
.galleryItemImages li.separator {width:100%!important;margin:0;height:1px;display:none}
.galleryItemImages a {display:block;text-align:center;margin:2%}
.galleryItemImages img {max-width:100%}

.galleryItemImages.rowItems1 li {width:100%;margin-right:0}

.galleryItemImages.rowItems2 li {width:49%}
.galleryItemImages.rowItems2 li:nth-child(4n-1) {margin-right:0}
.galleryItemImages.rowItems2 li:nth-child(4n) {display:block}

.galleryItemImages.rowItems3 li {width:32%}
.galleryItemImages.rowItems3 li:nth-child(6n-1) {margin-right:0}
.galleryItemImages.rowItems3 li:nth-child(6n) {display:block}

.galleryItemImages.rowItems4 li {width:23.5%}
.galleryItemImages.rowItems4 li:nth-child(8n-1) {margin-right:0}
.galleryItemImages.rowItems4 li:nth-child(8n) {display:block}

.galleryItemImages.rowItems5 li {width:18.4%}
.galleryItemImages.rowItems5 li:nth-child(10n-1) {margin-right:0}
.galleryItemImages.rowItems5 li:nth-child(10n) {display:block}

.galleryItemImages.rowItems6 li {width:15%}
.galleryItemImages.rowItems6 li:nth-child(12n-1) {margin-right:0}
.galleryItemImages.rowItems6 li:nth-child(12n) {display:block}
//responsive
@media screen and (max-width: 960px) {
.galleryItemImages.rowItems4 li {width:31% !important}
}
@media screen and (max-width: 640px) {
.galleryItemImages.rowItems4 li {width:48% !important}
}
@media screen and (max-width: 460px) {
.galleryItemImages.rowItems4 li {width:100% !important}
}