.gallery-photos-wrapper {
	text-align:center;
	padding-top:30px;
}
body.gallery-photos .ContentBlockWrapper .contentBlock.empty:first-child{
	padding:0 !important;
}
.gallery-photos-wrapper .breadcrumbs {
	text-align:left;
	margin-bottom:20px;
}


ul.galleryGrid {
	display: grid;
    grid-template-columns: auto auto auto;
    grid-gap: 10px;
    padding-bottom: 50px;
	list-style:none;
	padding-left:0;
	display:block;
	column-count:3;
	gap:10px;
}
.galleryGrid .galleryItem {
	position:relative;
	background-repeat:no-repeat;
	background-position:center center;
	background-size:cover;
	position:relative;
	cursor:pointer;
	margin-bottom:10px;
}
.galleryGrid .galleryItem img {
	display:block;
	margin:0;
}
.galleryGrid .galleryItem > a {
	position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 10;
}
/*
.galleryGrid .galleryItem::after {
    padding-top: 65%;
    width: 100%;
    content: '';
    display: block;
}
*/
.galleryGrid .galleryItem:nth-child(12n+4), 
.galleryGrid .galleryItem:nth-child(12n+11) {
    grid-row: span 2;
    grid-column: span 2;
}
.photoAlbumTitle h5 {
	padding:0px 10px;
	position:relative;
	font-size:18px;
	display:none;
	text-align:center;
	color:#fff;
	text-transform:uppercase;
	top:50%;
	transform:translateY(-50%);
	line-height:1;
	margin:0;
}
.photoAlbumTitle h5 a {
	color:inherit;
}
.galleryItem:hover .photoAlbumTitle {
	background-color:rgba(0,0,0,.55);
	cursor:pointer;
}
.galleryItem:hover .photoAlbumTitle h5 {
	display:block;
}
a.photoSlideshow {
    text-decoration:none;
}
.photoAlbumDate {
    margin-top:2px;
    text-align:center;
}
.editablePhoto {
	border:1px dashed red;text-align:center;
	width:135px;
}
.galleryItem .photo {
    width:135px;
    height:110px;
    overflow:hidden;
}
.innerPages li.galleryItem:before {
	display:none;
}

/*end for the photo album stuff*/

label {
	color:#000;
}

.sortBox {
    border:1px solid #000;
}
li.photoBox {
	display:inline-block;
	width:20%;
	vertical-align:top;
	position:relative;
}
.editGallery li.photoBox {
	padding-bottom:20px;
	border-bottom:1px solid #ccc;
	margin-bottom:30px;
}
.sortable .handle {
	position:absolute;
	z-index:300;
	width:100%;
	height:auto;
	left:0;
    background-color:#000;
    color:#fff !Important;
    padding:3px 0px;
    font-size:10px;
    text-align:center;
    display:none;
    cursor:move;
}
.gallery .status {
    position:fixed;
	top:40%;
	left:0;
	z-index:30000;
    background-color:#990000;
    width:100px;
    padding:3px;
    color:#fff;
    right:0px;
    word-wrap: break-word;
}
.gallery .sortable-placeholder {
	background:#ccc;
	border:1px dashed #333;
}
.hidden {
    display:none;
}
.editButtons {
	position:absolute;
	top:30px;
	z-index:200;
	text-align:center;
}
.editButtons .button {
	font-size:10px;
	margin:0px 5px 5px 0px;
}
.editButtons .button a {
	padding:6px 10px;
}
/* Mobile */
@media (max-width : 767px) {
	ul.galleryGrid {
		grid-template-columns: auto auto;
		column-count:2;
	}
	ul.galleryGrid .galleryItem:nth-child(12n+4), 
	ul.galleryGrid .galleryItem:nth-child(12n+11) {
		grid-row: span 1;
	    grid-column: span 1;
	}
	ul.galleryGrid .galleryItem:nth-child(12n+5), 
	ul.galleryGrid .galleryItem:nth-child(12n+10) {
		grid-row: span 2;
	    grid-column: span 2;
	}
	.gallery-photos-wrapper {
		padding-top:0;
	}
	.gallery-photos-wrapper .breadcrumbs .button {
		display:inline-block !important;
		position:relative;
		top:-15px;
	}

}


/* IE 11 Only */
@media all and (-ms-high-contrast:none){
	*::-ms-backdrop, ul.galleryGrid { display: block;height:auto !important; } /* IE11 */
	*::-ms-backdrop, ul.galleryGrid li.galleryItem { display: inline-block;width:22%; } /* IE11 */
	*::-ms-backdrop, .galleryGrid .galleryItem:after {
		content:"";
		display:block;
		width:100%;
		padding-top:100%;
	}
}

