#fancybox-overlay {
	z-index: 10000 !important;
}
#fancybox-wrap {
	z-index: 10001 !important;
}
#fancybox-outer {
	z-index: 10002 !important;
}
#fancybox-loading,
#fancybox-loading div,
#fancybox-overlay,
#fancybox-tmp,
#fancybox-wrap,
#fancybox-outer,
#fancybox-content {
	box-sizing: content-box;
}
#fancybox-title-inside,
#fancybox-title-over {
	word-break: break-all !important;
	word-break: break-word !important; /* Non-standard for webkit */
	-ms-word-break: break-all !important;
	-o-word-break: break-all !important;
	-webkit-hyphens: auto !important;
	-moz-hyphens: auto !important;
	-o-hypens: auto !important;
	hyphens: auto !important;
	line-height: 1.5em !important;
}
.mg-container {
	margin: 20px 0px 20px 0px !important;
}
.mg-container .mg-title {
	font-size: 1.75em !important;
	padding-bottom: 10px !important;
}
.mg-image-tiles {
	width: 100% !important;
	box-sizing: border-box !important;
	-moz-box-sizing: border-box !important;
	-webkit-box-sizing: border-box !important;
}
.mg-image-tiles .clear {
	clear: both !important;
}
.mg-image-tiles img {
	height: auto !important;
	width: 100% !important;
	display: block !important;
	-ms-interpolation-mode: bicubic !important;
	border-radius: 0px !important;
	-moz-border-radius: 0px !important;
	-webkit-border-radius: 0px !important;
}
.mg-image-tiles p.mg-description {
	line-height: 1.5em !important;
}
.mg-image-tiles .mg-thumbs {
	margin-top: 10px !important;
	margin-bottom: 10px !important;
}
.mg-image-tiles .mg-thumbs .caption {
	word-break: normal !important;
	word-break: normal !important; /* Non-standard for webkit */
	-ms-word-break: normal !important;
	-o-word-break: normal !important;
	-webkit-hyphens: auto !important;
	-moz-hyphens: auto !important;
	-o-hypens: auto !important;
	hyphens: auto !important;
}
.mg-image-tiles .mg-thumbs ul {
	list-style: none !important;
	margin: 0 auto !important;
	padding: 0 !important;
	display: block !important;
}
.mg-image-tiles .mg-thumbs ul li {
	vertical-align: top !important;
	display: inline-block !important;
	position: relative !important;
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}
.mg-image-tiles .mg-thumbs.mg-onecol ul li {
	width: 100% !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}
.mg-image-tiles .mg-thumbs.mg-twocol ul li {
	width: 48.5% !important;
	margin-left: 0 !important;
	margin-right: 3% !important;
}
.mg-image-tiles .mg-thumbs.mg-twocol ul li:nth-child(2n) {
	margin-left: 0 !important;
	margin-right: 0 !important;
}
.mg-image-tiles .mg-thumbs.mg-threecol ul li {
	width: 31.333333% !important;
	margin-left: 0 !important;
	margin-right: 3% !important;
}
.mg-image-tiles .mg-thumbs.mg-threecol ul li:nth-child(3n) {
	margin-left: 0 !important;
	margin-right: 0 !important;
}
.mg-image-tiles .mg-thumbs.mg-fourcol ul li {
	width: 22.75% !important;
	margin-left: 0 !important;
	margin-right: 3% !important;
}
.mg-image-tiles .mg-thumbs.mg-fourcol ul li:nth-child(4n) {
	margin-left: 0 !important;
	margin-right: 0 !important;
}
.mg-image-tiles .mg-thumbs.mg-fivecol ul li {
	width: 18.4% !important;
	margin-left: 0 !important;
	margin-right: 2% !important;
}
.mg-image-tiles .mg-thumbs.mg-fivecol ul li:nth-child(5n) {
	margin-left: 0 !important;
	margin-right: 0 !important;
}
.mg-image-tiles .mg-thumbs.mg-sixcol ul li {
	width: 15% !important;
	margin-left: 0 !important;
	margin-right: 2% !important;
}
.mg-image-tiles .mg-thumbs.mg-sixcol ul li:nth-child(6n) {
	margin-left: 0 !important;
	margin-right: 0 !important;
}
.mg-image-tiles .mg-thumbs.mg-sevencol ul li {
	width: 13% !important;
	margin-left: 0 !important;
	margin-right: 1.5% !important;
}
.mg-image-tiles .mg-thumbs.mg-sevencol ul li:nth-child(7n) {
	margin-left: 0 !important;
	margin-right: 0 !important;
}
.mg-image-tiles .mg-thumbs.mg-eightcol ul li {
	width: 11.1875% !important;
	margin-left: 0 !important;
	margin-right: 1.5% !important;
}
.mg-image-tiles .mg-thumbs.mg-eightcol ul li:nth-child(8n) {
	margin-left: 0 !important;
	margin-right: 0 !important;
}
.mg-image-tiles .mg-thumbs.mg-ninecol ul li {
	width: 10.222222% !important;
	margin-left: 0 !important;
	margin-right: 1% !important;
}
.mg-image-tiles .mg-thumbs.mg-ninecol ul li:nth-child(9n) {
	margin-left: 0 !important;
	margin-right: 0 !important;
}
.mg-image-tiles .mg-thumbs.mg-tencol ul li {
	width: 9.1% !important;
	margin-left: 0 !important;
	margin-right: 1% !important;
}
.mg-image-tiles .mg-thumbs.mg-tencol ul li:nth-child(10n) {
	margin-left: 0 !important;
	margin-right: 0 !important;
}
.mg-pagination .mg-page-next {
  float:right;
}
.mg-pagination .mg-page-previous {
  float:left;
}  
@media handheld, screen and (max-width: 800px) {
	/*----------------------------------------------------------
	At this device size, 8 columns is about right in terms of 
	thumbnail size, so we turn all galleries of column size 9
	or greater into a gallery of 8 columns.
	----------------------------------------------------------*/
	.mg-image-tiles .mg-thumbs.mg-ninecol ul li,
	.mg-image-tiles .mg-thumbs.mg-tencol ul li {
		width: 11.1875% !important;
		margin-left: 0 !important;
		margin-right: 1.5% !important;
	}
	.mg-image-tiles .mg-thumbs.mg-ninecol ul li:nth-child(9n),
	.mg-image-tiles .mg-thumbs.mg-tencol ul li:nth-child(10n) {
		margin-left: 0 !important;
		margin-right: 1.5% !important;
	}
	.mg-image-tiles .mg-thumbs.mg-ninecol ul li:nth-child(8n),
	.mg-image-tiles .mg-thumbs.mg-tencol ul li:nth-child(8n) {
		margin-left: 0 !important;
		margin-right: 0 !important;
	}
}
@media handheld, screen and (max-width: 768px) {
	/*----------------------------------------------------------
	At this device size, 7 columns is about right in terms of 
	thumbnail size, so we turn all galleries of column size 8
	or greater into a gallery of 7 columns.
	----------------------------------------------------------*/
	.mg-image-tiles .mg-thumbs.mg-eightcol ul li,
	.mg-image-tiles .mg-thumbs.mg-ninecol ul li,
	.mg-image-tiles .mg-thumbs.mg-tencol ul li {
		width: 13% !important;
		margin-left: 0 !important;
		margin-right: 1.5% !important;
	}
	.mg-image-tiles .mg-thumbs.mg-eightcol ul li:nth-child(8n),
	.mg-image-tiles .mg-thumbs.mg-ninecol ul li:nth-child(9n),
	.mg-image-tiles .mg-thumbs.mg-tencol ul li:nth-child(10n) {
		margin-left: 0 !important;
		margin-right: 1.5% !important;
	}
	.mg-image-tiles .mg-thumbs.mg-eightcol ul li:nth-child(7n),
	.mg-image-tiles .mg-thumbs.mg-ninecol ul li:nth-child(7n),
	.mg-image-tiles .mg-thumbs.mg-tencol ul li:nth-child(7n) {
		margin-left: 0 !important;
		margin-right: 0 !important;
	}
	/* Resets from above device sizes */
	.mg-image-tiles .mg-thumbs.mg-ninecol ul li:nth-child(8n),
	.mg-image-tiles .mg-thumbs.mg-tencol ul li:nth-child(8n) {
		margin-left: 0 !important;
		margin-right: 1.5% !important;
	}
}
@media handheld, screen and (max-width: 600px) {
	/*----------------------------------------------------------
	Starting at this size, the captions get in the way of the
	thumbnail images, so we don't show them.
	----------------------------------------------------------*/
	.mg-image-tiles .mg-thumbs .caption.above,
	.mg-image-tiles .mg-thumbs .caption.below,
	.mg-image-tiles .mg-thumbs .caption.bottom {
		display: none !important;
	}
	
	/*----------------------------------------------------------
	At this device size, 6 columns is about right in terms of 
	thumbnail size, so we turn all galleries of column size 7
	or greater into a gallery of 6 columns.
	----------------------------------------------------------*/
	.mg-image-tiles .mg-thumbs.mg-sevencol ul li,
	.mg-image-tiles .mg-thumbs.mg-eightcol ul li,
	.mg-image-tiles .mg-thumbs.mg-ninecol ul li,
	.mg-image-tiles .mg-thumbs.mg-tencol ul li {
		width: 15% !important;
		margin-left: 0 !important;
		margin-right: 2% !important;
	}
	.mg-image-tiles .mg-thumbs.mg-sevencol ul li:nth-child(7n),
	.mg-image-tiles .mg-thumbs.mg-eightcol ul li:nth-child(8n),
	.mg-image-tiles .mg-thumbs.mg-ninecol ul li:nth-child(9n),
	.mg-image-tiles .mg-thumbs.mg-tencol ul li:nth-child(10n) {
		margin-left: 0 !important;
		margin-right: 2% !important;
	}
	.mg-image-tiles .mg-thumbs.mg-sevencol ul li:nth-child(6n),
	.mg-image-tiles .mg-thumbs.mg-eightcol ul li:nth-child(6n),
	.mg-image-tiles .mg-thumbs.mg-ninecol ul li:nth-child(6n),
	.mg-image-tiles .mg-thumbs.mg-tencol ul li:nth-child(6n) {
		margin-left: 0 !important;
		margin-right: 0 !important;
	}
	/* Resets from above device sizes */
	.mg-image-tiles .mg-thumbs.mg-eightcol ul li:nth-child(7n),
	.mg-image-tiles .mg-thumbs.mg-ninecol ul li:nth-child(7n),
	.mg-image-tiles .mg-thumbs.mg-ninecol ul li:nth-child(8n),
	.mg-image-tiles .mg-thumbs.mg-tencol ul li:nth-child(7n),
	.mg-image-tiles .mg-thumbs.mg-tencol ul li:nth-child(8n) {
		margin-left: 0 !important;
		margin-right: 2% !important;
	}
}
@media handheld, screen and (max-width: 480px) {
	/*----------------------------------------------------------
	At this device size, 5 columns is about right in terms of 
	thumbnail size, so we turn all galleries of column size 6
	or greater into a gallery of 5 columns.
	----------------------------------------------------------*/
	.mg-image-tiles .mg-thumbs.mg-sixcol ul li,
	.mg-image-tiles .mg-thumbs.mg-sevencol ul li,
	.mg-image-tiles .mg-thumbs.mg-eightcol ul li,
	.mg-image-tiles .mg-thumbs.mg-ninecol ul li,
	.mg-image-tiles .mg-thumbs.mg-tencol ul li {
		width: 18.4% !important;
		margin-left: 0 !important;
		margin-right: 2% !important;
	}
	.mg-image-tiles .mg-thumbs.mg-sixcol ul li:nth-child(6n),
	.mg-image-tiles .mg-thumbs.mg-sevencol ul li:nth-child(7n),
	.mg-image-tiles .mg-thumbs.mg-eightcol ul li:nth-child(8n),
	.mg-image-tiles .mg-thumbs.mg-ninecol ul li:nth-child(9n),
	.mg-image-tiles .mg-thumbs.mg-tencol ul li:nth-child(10n) {
		margin-left: 0 !important;
		margin-right: 2% !important;
	}
	.mg-image-tiles .mg-thumbs.mg-sixcol ul li:nth-child(5n),
	.mg-image-tiles .mg-thumbs.mg-sevencol ul li:nth-child(5n),
	.mg-image-tiles .mg-thumbs.mg-eightcol ul li:nth-child(5n),
	.mg-image-tiles .mg-thumbs.mg-ninecol ul li:nth-child(5n),
	.mg-image-tiles .mg-thumbs.mg-tencol ul li:nth-child(5n) {
		margin-left: 0 !important;
		margin-right: 0 !important;
	}
	/* Resets from above device sizes */
	.mg-image-tiles .mg-thumbs.mg-sevencol ul li:nth-child(6n),
	.mg-image-tiles .mg-thumbs.mg-eightcol ul li:nth-child(6n),
	.mg-image-tiles .mg-thumbs.mg-ninecol ul li:nth-child(6n),
	.mg-image-tiles .mg-thumbs.mg-tencol ul li:nth-child(6n) {
		margin-left: 0 !important;
		margin-right: 2% !important;
	}
}
@media handheld, screen and (max-width: 320px) {
	/*----------------------------------------------------------
	At this device size, 3 columns is about right in terms of 
	thumbnail size, so we turn all galleries of column size 4
	or greater into a gallery of 3 columns.
	----------------------------------------------------------*/
	.mg-image-tiles .mg-thumbs.mg-fourcol ul li,
	.mg-image-tiles .mg-thumbs.mg-fivecol ul li,
	.mg-image-tiles .mg-thumbs.mg-sixcol ul li,
	.mg-image-tiles .mg-thumbs.mg-sevencol ul li,
	.mg-image-tiles .mg-thumbs.mg-eightcol ul li,
	.mg-image-tiles .mg-thumbs.mg-ninecol ul li,
	.mg-image-tiles .mg-thumbs.mg-tencol ul li {
		width: 31.333333% !important;
		margin-left: 0 !important;
		margin-right: 3% !important;
	}
	.mg-image-tiles .mg-thumbs.mg-fourcol ul li:nth-child(4n),
	.mg-image-tiles .mg-thumbs.mg-fivecol ul li:nth-child(5n),
	.mg-image-tiles .mg-thumbs.mg-sixcol ul li:nth-child(6n),
	.mg-image-tiles .mg-thumbs.mg-sevencol ul li:nth-child(7n),
	.mg-image-tiles .mg-thumbs.mg-eightcol ul li:nth-child(8n),
	.mg-image-tiles .mg-thumbs.mg-ninecol ul li:nth-child(9n),
	.mg-image-tiles .mg-thumbs.mg-tencol ul li:nth-child(10n) {
		margin-left: 0 !important;
		margin-right: 3% !important;
	}
	.mg-image-tiles .mg-thumbs.mg-fourcol ul li:nth-child(3n),
	.mg-image-tiles .mg-thumbs.mg-fivecol ul li:nth-child(3n),
	.mg-image-tiles .mg-thumbs.mg-sixcol ul li:nth-child(3n),
	.mg-image-tiles .mg-thumbs.mg-sevencol ul li:nth-child(3n),
	.mg-image-tiles .mg-thumbs.mg-eightcol ul li:nth-child(3n),
	.mg-image-tiles .mg-thumbs.mg-ninecol ul li:nth-child(3n),
	.mg-image-tiles .mg-thumbs.mg-tencol ul li:nth-child(3n) {
		margin-left: 0 !important;
		margin-right: 0 !important;
	}
	/* Resets from above device sizes */
	.mg-image-tiles .mg-thumbs.mg-sixcol ul li:nth-child(5n),
	.mg-image-tiles .mg-thumbs.mg-sevencol ul li:nth-child(5n),
	.mg-image-tiles .mg-thumbs.mg-eightcol ul li:nth-child(5n),
	.mg-image-tiles .mg-thumbs.mg-eightcol ul li:nth-child(7n),
	.mg-image-tiles .mg-thumbs.mg-ninecol ul li:nth-child(5n),
	.mg-image-tiles .mg-thumbs.mg-ninecol ul li:nth-child(7n),
	.mg-image-tiles .mg-thumbs.mg-ninecol ul li:nth-child(8n),
	.mg-image-tiles .mg-thumbs.mg-tencol ul li:nth-child(5n),
	.mg-image-tiles .mg-thumbs.mg-tencol ul li:nth-child(7n),
	.mg-image-tiles .mg-thumbs.mg-tencol ul li:nth-child(8n) {
		margin-left: 0 !important;
		margin-right: 3% !important;
	}
}

p.caption.above {
	margin-bottom: 0;
	min-height: 24px;
}

p.caption.above,
p.caption.below {
  text-align: center;
}

.mg-thumbs li:before
{
  content:none!important;
}
.mg-thumbs li
{
  margin:0!important;
  padding-left:0!important;
}

.mg-image-tiles .mg-thumbs li .ns-border .st-none {
    border-style: none !important;
}
.mg-image-tiles  .mg-thumbs li .ns-border{
    overflow: hidden;
}

.mg-image-tiles  .mg-thumbs li .ns-border .b-sz-1 img {
    border: 1px solid;
}

.mg-image-tiles  .mg-thumbs li .ns-border .b-sz-3 img {
    border: 3px solid;
}

.mg-image-tiles .mg-thumbs li .ns-border .b-sz-5 img {
    border: 5px solid;
}

.mg-image-tiles .mg-thumbs li .ns-border .b-sz-7 img {
    border: 7px solid;
}

.mg-image-tiles  .mg-thumbs li .ns-border .b-sz-10 img {
    border: 10px solid;
}

.mg-image-tiles  .mg-thumbs ul li .ns-border .b-sz-10 img {
    border: 10px solid;
}

.mg-image-tiles  .mg-thumbs ul li .ns-border .b-sz-15 img {
    border: 15px solid;
}

 .mg-image-tiles  .mg-thumbs ul li .mg-test-color img {
	border-color: red;
}

.mg-image-tiles .mg-thumbs ul li p.caption.middle {
	overflow: hidden;
	position: relative;
}

.mg-image-tiles .mg-thumbs ul li p.caption.middle {
	background-color: #ffffff;
	bottom: 0;
	height: 42px;
	left: 0;
	margin: auto;
	padding: 10px 0;
	position: absolute;
	right: 0;
	text-align: center;
	top: 0;
	width: 100%;
}

#wpadminbar + .topbox_overlay {
  margin-top: 40px;
}

.topbox_prev,
.topbox_next,
.topbox_close {
  color: #C9C9C9;
}
