
/* === mask gallery === */
#mask-gallery {
	z-index: 9998;
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: #fff;
}

#mask-gallery .close {
	z-index: 9999;
	float: none;
	position: absolute;
	top: 36px;
	right: 36px;
	padding: 12px 14px 8px;
	background-color: #fff;
	font-size: 28px;
	line-height: 1;
	color:  #329c32;
	text-shadow: none;
	opacity: 1;
	cursor: pointer;
}
@media (max-width: 991px) {
	#mask-gallery .close {
		top: 25px;
		right: 20px;
		font-size: 25px;
	}
}
@media (max-width: 767px) {
	#mask-gallery .close {
		right: 35px;
	}
}

.gallerylb {
	position: relative;
	width: 100%;
	height: 100vh;
	padding: 0 140px;
}
@media (max-width: 1599px) {
	.gallerylb {
		padding: 0 100px;
	}
}
@media (max-width: 1199px) {
	.gallerylb {
		padding: 0 36px;
	}
}
@media (max-width: 991px) {
	.gallerylb {
		padding: 25px 20px;
	}
}
@media (max-width: 767px) {
	.gallerylb {
		padding: 80px 35px 20px;
	}
}
@media (max-width: 767px) and (orientation: landscape) {
	.gallerylb {
		padding: 25px 35px 0;
	}
}

.gallerylb-inner {
	position: relative;
	top: 50%;
	-webkit-transform: translateY(-50%);
	-moz-transform: translateY(-50%);
	-ms-transform: translateY(-50%);
	-o-transform: translateY(-50%);
	transform: translateY(-50%);
}

.gallerylb-inner-image {
	width: 100%;
	height: calc(100vh - 315px);
	background-repeat: no-repeat;
	background-position: center;
	/* background-size: cover; AVP */
	background-size: auto 100%;
}
.gallerylb-inner-image.pages {
	height: calc(100vh - 200px);
}
@media (max-width: 991px) {
	.gallerylb-inner-image {
		height: calc(100vh - 290px);
	}
	.gallerylb-inner-image.pages {
		height: calc(100vh - 180px);
	}
}
@media (max-width: 767px) {
	.gallerylb-inner-image {
		height: calc(100vh - 195px);
	}
	.gallerylb-inner-image.pages {
		height: calc(100vh - 150px);
	}
}
@media (max-width: 767px) and (orientation: landscape) {
	.gallerylb-inner-image {
		height: calc(100vh - 85px);
	}
	.gallerylb-inner-image.pages {
		height: calc(100vh - 115px);
	}
}
@media (min-width: 768px) and (max-height: 640px) {
	.gallerylb-inner-image {
		height: calc(100vh - 150px);
	}
}
@media (min-width: 768px) and (max-height: 480px) {
	.gallerylb-inner-image {
		height: calc(100vh - 100px);
	}
}

.gallerylb-inner-image::before {
	z-index: -1;
	display: block;
	position: relative;
	top: 50%;
	margin: 0 auto; 
	width: 64px;
	height: 64px;
	content: '';
	-webkit-transform: translateY(-50%);
	-moz-transform: translateY(-50%);
	-ms-transform: translateY(-50%);
	-o-transform: translateY(-50%);
	transform: translateY(-50%);
	background: url('../images/preload.gif') center no-repeat;
	background-size: cover;
}
@media (max-width: 767px) {
	.gallerylb-inner-image::before {
		display: none;
	}
}

.gallerylb-info {
	padding: 20px 3px 0; 
}
@media (max-width: 767px) {
	.gallerylb-info {
		padding: 10px 3px 23px; 
	}
}
@media (max-width: 767px) and (orientation: landscape) {
	.gallerylb-info {
		padding: 20px 3px; 
	}
}

.gallerylb-info .gallerylb-title {
	float: none;
	display: block;
	font-size: 18px;
	line-height: 1;
	text-align: center;
}
@media (max-width: 767px) {
	.gallerylb-info .gallerylb-title {
		position: static;
		top: auto;
		left: auto;
		font-size: 16px;
	}
}
@media (max-width: 767px) and (orientation: landscape) {
	.gallerylb-info .gallerylb-title {
		display: none;
	}
}

.gallerylb-info .gallerylb-count {
	float: none;
	display: block;
	margin-top: 5px;
	font-size: 18px;
	line-height: 1;
	color:  #329c32;
	text-align: center;
}
@media (max-width: 767px) {
	.gallerylb-info .gallerylb-count {
		float: none;
		display: table;
		margin: 5px auto 0; 
	}
}


#gallery-content .gallery-item a {
	width: 260px;
	height: 178px;
}
#gallery-content .gallery-item img {
	display: block;
	width: 100%;
}


/* === gallery into gallerylist === */
#mask-gallery .gallery-container-main {
	position: static;
	max-height: 178px;
}
@media (max-width: 767px) {
	#mask-gallery .gallery-container-main {
		top: -35px;
	}
}

@media (max-width: 767px) {
	#mask-gallery .gallery-container-main .carousel {
		display: none;
		max-height: 40px;
	}
}
@media (max-width: 767px) and (orientation: landscape) {
	#mask-gallery .gallery-container-main .carousel {
		max-height: 100px;
	}
}

#mask-gallery .gallery-container-main .item .item-content .col-sm-2 {
	padding: 0; 
}

#mask-gallery .gallery-container-main .gallery-img-mask {
	position: absolute;
	left: calc(15px/2);
	width: calc(100% - 15px);
	height: 100%;
	background-color: rgba(0,33,110,0.85);
	cursor: pointer;
	-webkit-transition: background-color .5s;
	-moz-transition: background-color .5s;
	-ms-transition: background-color .5s;
	-o-transition: background-color .5s;
	transition: background-color .5s;
}
#mask-gallery .gallery-container-main .gallery-img-mask.active,
#mask-gallery .gallery-container-main .gallery-img-mask:hover {
	background-color: transparent;
}
@media (max-width: 767px) {
	#mask-gallery .gallery-container-main .gallery-img-mask {
		display: none;
	}
}

#mask-gallery .gallery-container-main .gallery-img {
	margin: 0 auto;
	width: calc(100% - 15px);
	/* width: 260px; */
	height: 178px;
	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
}
@media (max-width: 767px) {
	#mask-gallery .gallery-container-main .gallery-img {
		width: 100%;
	}
}

#mask-gallery .carousel-control.left,
#mask-gallery .carousel-control.right {
	top: 50%;
	margin-top: -12px;
	width: 24px;
	height: 24px;
	background-image: none;
	background-color: transparent;
	opacity: 1;
}
@media (max-width: 767px) {
	#mask-gallery .carousel-control.left,
	#mask-gallery .carousel-control.right {
		margin-top: 0;
	}
}
	
#mask-gallery .carousel-control.left,
#mask-gallery .carousel-control.right {
	/* display: none; */
}

#mask-gallery .carousel-control.left {
	left: -15px;
}
#mask-gallery .carousel-control.right {
	right: -13px;
}

#mask-gallery .glyphicon-chevron-right {
	margin-top: -16px;
	margin-right: -32px;
}
@media (max-width: 1199px) {
	#mask-gallery .glyphicon-chevron-right {
		margin-top: -22px;
		margin-right: -20px;
	}
}
@media (max-width: 991px) {
	#mask-gallery .glyphicon-chevron-right {
		margin-right: -20px;
	}
}
#mask-gallery .glyphicon-chevron-right:before {
	display: inline-block;
	content: '';
	width: 32px;
	height: 32px;
	border-top: 2px solid #329c32;
	border-right: 2px solid #329c32;
	-webkit-transform: rotate(45deg);
	-moz-transform: rotate(45deg);
	-o-transform: rotate(45deg);
	-ms-transform: rotate(45deg);
	transform: rotate(45deg);
}
@media (max-width: 1199px) {
	#mask-gallery .glyphicon-chevron-right:before {
		width: 15px;
		height: 15px;
	}
}
#mask-gallery .glyphicon-chevron-left {
	margin-top: -16px;
	margin-left: -32px;
}
@media (max-width: 1199px) {
	#mask-gallery .glyphicon-chevron-left {
		margin-top: -22px;
		margin-left: -20px;
	}
}
@media (max-width: 991px) {
	#mask-gallery .glyphicon-chevron-left {
		margin-left: -20px;
	}
}
#mask-gallery .glyphicon-chevron-left::before {
	display: inline-block;
	content: '';
	width: 32px;
	height: 32px;
	border-bottom: 2px solid #329c32;
	border-left: 2px solid #329c32;
	-webkit-transform: rotate(45deg);
	-moz-transform: rotate(45deg);
	-o-transform: rotate(45deg);
	-ms-transform: rotate(45deg);
	transform: rotate(45deg);
}
@media (max-width: 1199px) {
	#mask-gallery .glyphicon-chevron-left::before {
		width: 15px;
		height: 15px;
	}
}

