#masonry-container {
	margin: 0 auto;
}

.box {
  margin: 5px;
  float: left;
  box-shadow: 0px 0px 3px #d0d0d0;
  background: #fff;
}

.box a.password-protected {
	position: relative;
	display: block;
}

.box img {
	width: 100%;
}

.box .password-protect-screen {
	font-weight: bold;
	font-size: 18px;
	color: #fff;
	background-color: #555;
	position: absolute;
	padding-top: 27%;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	right: 0;
}

.center {
	text-align: center;
}

.photo-details img {
	margin-bottom: 5px;
}

.photo-header {
	margin-bottom: 10px;
}

.photo-user-name {
	font-size: 120%;
	font-weight: bold;
	margin-left: 10px;
	margin-top: 12px;
	float: left;
}

.fancybox-title
{
	margin-top: 60px;
}

.thumbs {
	width: 76px;
	height: 76px;
}

.thumbs img {
	width: 76px;
	height: 76px;
}

.st-comments-count-masonry {
	text-align: right;
	cursor: pointer;
}

.box .photo-desc, .st-comments-count-masonry  {
	font-size: 11px;
	padding: 5px;
	color: #808080;
}

.box .photo-desc {
	border-bottom: 1px solid #f0f0f0;
}

#back-to-top {
	position: fixed;
	bottom: -60px;
	right: 100px;
	width: 70px;
	height: 60px;
	padding: 10px;
	background: #f9f9f9;
	text-align: center;
	font-weight: bold;
	box-shadow: 0 0 3px #808080;
	cursor: pointer;
}

.gallery-header {
	padding: 5px;
}

/* Large desktop */
@media (min-width: 1200px) {
	.box {
		width: 160px;
	}
}

/* Desktop */
@media (min-width: 992px) and (max-width: 1199px) {
	.box {
		width: 140px;
	}

}

/* Portrait tablet to landscape and desktop */
@media (min-width: 768px) and (max-width: 991px) {
	.box {
		width: 140px;
	}
}

/* Landscape phone to portrait tablet */
@media (max-width: 767px) {
	.box {
		width: 140px;
	}

	.photos-container {
		margin-right: 0px;
	}

	.main-body {
		padding:0px;
	}
}

#modalviewer .modalviewer-background,
#modalviewer .modalviewer-content  {
	position: absolute;
}

#modalviewer,
#modalviewer .modalviewer-background,
#modalviewer .modalviewer-content  {
	top: 0px;
	left: 0px;
	width: 100%;
	height: 100%;


}

#modalviewer {
	position: fixed;
	overflow-y: auto;
	z-index: 8000;
}

#modalviewer .modalviewer-background {
	background: #000;
	z-index: 8001;
}

#modalviewer .modalviewer-content {
	z-index: 8002;
}

#modalviewer .main {
	text-align: center;
	margin-right: 300px;
	position: absolute;
	height: 100%;
	width: 100%;
	padding-right: 300px;
}

#modalviewer .main > img.img-auto {
	display: none;
	min-height: 250px;
	min-width: 250px;
	max-width: 100%;
	max-height: 100%;
	vertical-align: middle;
}

#modalviewer .sidebar {
	background: #fff;
	position: absolute;
	height: 100%;
	right: 0;
	top: 0;
	width: 300px;
	overflow-y: auto;
	padding: 20px 30px;
}

#modalviewer .title {
	padding: 10px;
	color: #fff;
	position: fixed;
	top: 0px;
	width: 100%;
	padding-right: 300px;
	z-index: 8003;
}

#modalviewer .title > .close {
	position: relative;
	right: 13px;
	color: #fff !important;
	opacity: .7;
}

#modalviewer .title > .close:hover, #modalviewer .prev:hover, #modalviewer .next:hover {
	opacity: .9;
	cursor: pointer;
}

#modalviewer .prev, #modalviewer .next {
	font-size: 50px;
	opacity: .2;
	position: fixed;
	top: 50%;
	margin-top: -80px;
	padding: 50px 0px;
	color: #fff;
}

#modalviewer .prev {
	left: 10px;
}

#modalviewer .next {
	right: 310px;
}

#love-modal {
	z-index: 8005;
}

#fancybox-loading {
	margin-left: -172px !important;
}

.helper {
    display: inline-block;
    height: 100%;
    vertical-align: middle;
}

/* Landscape phone to portrait tablet */
@media (max-width: 767px) {
	#modalviewer .sidebar {
		position: relative;
		width: 100%;
	}

	#modalviewer .main {
		position: relative;
		width: 100%;
		padding-right: 0px;
	}

	#modalviewer .title {
		position: relative;
		width: 100%;
		padding-right: 0px;
	}

	#fancybox-loading {
		margin-left: -15px !important;
	}

	#modalviewer .prev, #modalviewer .next {
		position: absolute;
		top: auto;
		margin-top: 0;
		padding:75px 0px;
	}

	#modalviewer .next {
		right: 10px;
	}

	#modalviewer .main > img.img-auto {

	}
}
