/* temporarily hide caption/htmlCaption/gallery */

.jsGallery .sliderWrap,
.jsGallery .galleryWrap .galleryNav{
	display: none;
}

.nopgbanner {
    clear: both;
    height: 8em;
}

/* prevent accidental selection of images while navigating the galleries */
.jsGallery img, .jsGallery picture {
	vertical-align: bottom;
   -moz-user-select: none;
   -khtml-user-select: none;
   -webkit-user-select: none;

   /*
     Introduced in IE 10.
     See http://ie.microsoft.com/testdrive/HTML5/msUserSelect/
   */
   -ms-user-select: none;
   user-select: none;
}

.jsGallery .galleryWrap {    
    -moz-box-sizing: border-box;
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
    margin: 0 0;
    position: relative;
    width: 100%;
}

.jsGallery .galleryWrap .slide {
	display:none;
}
.jsGallery .galleryWrap .slideWrap .slide:first-child {
	display:block;
}
.jsGallery .galleryWrap .slide > picture > img,
.jsGallery .galleryWrap .slide > a > picture > img {
    /* Boilerplate responsive images CSS */
	margin: auto;
    width: auto;
    max-width: 100%;
    height: auto;
	max-height:100%;
	vertical-align:bottom;
	position:absolute;
	top: 0;
	left:0;
	right:0;
	bottom:0;
	transition: top .1s;
}

.jsGallery .respGallery .slide picture {
	margin:0 auto;
}
 
.jsGallery .placeholder {
    /* Making it invisible lets the parent container adjust its size */
    visibility : hidden;
}
.jsGallery .placeholder img{
	width:100%;
}

/* captions */
.jsGallery .captionWrap {
	width: 90%;
	position:relative;
	list-style-type: none;
	padding: 0px;
	margin: 0 5%;
	transition: height .5s ease-out;
}	
.jsGallery .captionWrap li {
    color: #000000;
    display: none;
    font-size:1em;
    text-align: center;
	padding: .75em 0 .5em 0;
	margin:0;
	height: auto;	
}
.jsGallery .captionWrap li.activeSlide{
	display:block;
}

.jsGallery .captionWrap li h3{
	margin: 0;
}

.jsGallery .HTMLcaptionWrap {
    list-style-type: none;
    padding: 0;
    position: relative;
    width: 90%;
	margin: 0 5%;
	transition: height .5s;
	
}	
.jsGallery .HTMLcaptionWrap > li {
    color: #000000;
    display: none;
    padding: 1em 0;
    width: 100%;
}
.jsGallery .HTMLcaptionWrap > li.activeSlide {
	display: block;
}

.jsGallery .insetSmall{
	display: none;
}

/* Scrolling Gallery Styles */
.scrolling-gallery{
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
}

.scrolling-gallery > div{
	width: 100%;
	padding-top: 60%;
	display: block;
	background: #f4f4f4 center center no-repeat;
	box-sizing: border-box;
	margin: .5% 0;
	background-size:cover;
	cursor: zoom-in;
	top: 5em;
	position:relative;
	transition: top 1s;
}
.scrolling-gallery > div.scrolled-in{
	top: 0;
}

.scrolling-gallery div.dgPart{
	width: 66.1666%
}

.scrolling-gallery div.dgHalf{
	width: 49.5%;
}

.scrolling-gallery div.dgThird{
	width: 32.5333%;
}

@media (min-width: 600px) {
.scrolling-gallery.scrolling-gallery-dbl{
	justify-content: space-around;
	margin-left: -.25%;
	margin-right: -.25%;
}

.scrolling-gallery.scrolling-gallery-dbl div{
	width: 49.5%;
	padding-top: 30%;
	margin: .25% 0;
}

.scrolling-gallery.scrolling-gallery-dbl div.dgPart{
	width: 32.833%
}

.scrolling-gallery.scrolling-gallery-dbl div.dgHalf{
	width: 24.5%;
}

.scrolling-gallery.scrolling-gallery-dbl div.dgThird{
	width: 16.1666%;
}