.previewmode {
	display:none;
}
.photos-viewmore {
	margin-top:10px;
}
.p_photo-gallery .galleryWrapper {
}
h1 {
	margin-bottom:0;
}
.galleryWrapper {
}
.residents-gallery .galleryWrapper, .residents-gallery .dynamic, .residents-gallery .bodymid .innerPages {
	display:block;
	width:auto;
}
.photoAlbumTitle {
    font-size: 15px;
    font-weight:normal;
    text-align:center;
}
.photoAlbumTitle h3 {
	font-size:14px;
	line-height:16px;
	text-align:center;
}
a.photoSlideshow {
    text-decoration:none;
}
.photoAlbumDate {
    margin-top:2px;
    text-align:center;
}
.editablePhoto {
	border:1px dashed red;text-align:center;
	width:220px;
}
.galleryGrid {
	display:flex;
	flex-wrap:wrap;
	justify-content:space-between;
}
.galleryGrid li {
	width:100%;
	padding:0;
	margin:0;
	display:flex;
	flex-wrap:wrap;
	justify-content:space-between;
}
.galleryGrid .galleryItem {
	background-size:cover;
	background-repeat:no-repeat;
	background-position:center center;
	margin-bottom:10px;
	position:relative;
}
.galleryWrapper .editButtons{
	position:absolute;
	top:0;
	left:0;
	z-index:10;
}
.galleryWrapper .editButtons .button {
	font-size:12px;
}
.galleryWrapper .editButtons .button a {
	position:static;
}
.galleryGrid .galleryItem .photoAlbumTitle {
	display:none;
	position:absolute;
	height:100%;
	width:100%;
	top:0;bottom:0;left:0;right:0;
	text-align:center;
	font-size: 24px;
	line-height:1;
	font-weight: 400;
	color: #ffffff;
    background-color: rgba(0,0,0,.55);
    cursor: pointer;
}
.galleryGrid .galleryItem .photoAlbumTitle span {
	display:block;
	position:relative;
	top:50%;
	transform:translateY(-50%);
}
.galleryGrid .galleryItem:hover .photoAlbumTitle {
	display:block;
}
.galleryItem::after {
	content:"";
	width:100%;
	display:block;
}
.galleryGrid .group1 {
	width:100%;
}
.galleryGrid .group2 {
	width:55.2%;
}
.galleryGrid .group3 {
	width:44%;
}
.galleryGrid .group1 .galleryItem:nth-child(5n+1) {
	width:100%;
}
.galleryGrid .group1 .galleryItem:nth-child(5n+1)::after {
	padding-top:36.6%;
}
.galleryGrid .group1 .galleryItem:nth-child(5n+2) {
	width:19%;
}
.galleryGrid .group1 .galleryItem:nth-child(5n+2)::after {
	padding-top:111%;
}
.galleryGrid .group1 .galleryItem:nth-child(5n+3) {
	width:32%;
}
.galleryGrid .group1 .galleryItem:nth-child(5n+4) {
	width:33%;
}
.galleryGrid .group1 .galleryItem:nth-child(5n+5) {
	width:14%;
}

.galleryGrid .group2 .galleryItem:nth-child(3n+1) {
	width:100%;
}
.galleryGrid .group2 .galleryItem:nth-child(3n+1)::after {
	padding-top:66.8%;
}
.galleryGrid .group2 .galleryItem:nth-child(3n+2) {
	width:55%;
}
.galleryGrid .group2 .galleryItem:nth-child(3n+2)::after {
	padding-top:66.7%;
}
.galleryGrid .group2 .galleryItem:nth-child(3n+3) {
	width:43.5%;
}
.galleryGrid .group2 .galleryItem:nth-child(3n+3)::after {
	padding-top:82.8%;
}

.galleryGrid .group3 .galleryItem:nth-child(2n+1) {
	width:100%;
}
.galleryGrid .group3 .galleryItem:nth-child(2n+1)::after {
	padding-top:55.8%;
}
.galleryGrid .group3 .galleryItem:nth-child(2n+2) {
	width:100%;
}
.galleryGrid .group3 .galleryItem:nth-child(2n+2)::after {
	padding-top:77%;
}

.galleryItem .photo {
    width:215px;
    height:150px;
    overflow:hidden;
}
ul.galleryGrid {
	margin:0px;
	padding:0px;
	margin-top:10px;
    list-style-type:none;
	width:100%;
	text-align:center;
}
body .hidden {
	display:none;
}
/*end for the photo album stuff*/

label {
	color:#000;
}
.miniAlbum {
    overflow: hidden;
    position: relative;
}
.miniAlbumControls {
	text-align:center;
	display:flex;
	align-items:center;
	justify-content:center;
	padding:5px;
}
.miniAlbumControls a {
	line-height:1;
}
.miniAlbumControls .counter {
	order:2;
	padding:0px 10px;
}
.miniAlbumControls .rslides_nav.next {
	order:3;
}
.miniAlbum .photo {
	width:100%;
	padding-top:111%;
	background-position:center center;
	background-size:cover;
	background-repeat:no-repeat;
	cursor:pointer;
}
.miniAlbum .photo:not(:first-child) {
	display:none;
}
/* Small Tablet + Mobile */
@media (max-width : 767px) {
	.bodymid .innerPages, .galleryWrapper, .dynamic {
		display:block;
		width:auto;
	}
	.galleryItem {
		float:none;
		margin:20px auto;
		width:auto;
	}
	.bodymid .dynamic {
		padding-top:15px;
	}
}
