.page-template-template-gallery {
	position: relative;
	-ms-text-size-adjust: 100%;
	-webkit-text-size-adjust: 100%;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	line-height: 1.1;
	vertical-align: middle;
	padding: 0;
	margin: 0;
}
.page-template-template-gallery .grid-item {
	float: left;
	width: 17.9%;
	background: #e6e5e4;
	border: 4px solid #fff;
	border-radius: 9px;
}
.page-template-template-gallery .before-after-compare {
	display: flex;
	min-width: 600px;
	min-height: 300px;
	max-width: 100%;
	position: relative;
	overflow: hidden;
}

.page-template-template-gallery .before-after-compare img {
	max-width: 300px;
	min-height: 400px;
}
.page-template-template-gallery .fancybox-slide h2 {
	font-size: 1.875rem;
	line-height: 1.4em;
	margin-bottom: 1rem;
	font-weight: 500;
	margin-top: 0;
}
 .fancybox-content{
	padding: 23px;
}
.page-template-template-gallery .fancybox-slide--html .fancybox-close-small, .fancybox-slide--html .fancybox-close-small {
	padding: 6px;
	right: 5px;
	top: 5px;
	height: 30px;
	width: 30px;
	border-radius: 50px;
}
.page-template-template-gallery .gallery-block {
	display: inline-block;
	margin-bottom: 3rem!important;
	margin-top: 3rem!important;
	width: 100%;
}
.page-template-template-gallery .gallery-categories li:hover {
	color: #0064b4;
}
.page-template-template-gallery .gallery-item {
	background: #e6e5e4;
	border: 4px solid #fff;
	border-radius: 9px;
	width: 20%;
	float: left;
}

.page-template-template-gallery .gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 5px;
}
.page-template-template-gallery .text-md-left {
	text-align: left!important;
}
.page-template-template-gallery .text-center {
	text-align: center!important;
}
.page-template-template-gallery .align-items-start {
	-webkit-box-align: start!important;
	-ms-flex-align: start!important;
	align-items: flex-start!important;
}
.page-template-template-gallery .d-flex {
	display: -webkit-box!important;
	display: -ms-flexbox!important;
	display: flex!important;
}
.page-template-template-gallery .gallery-categories li.active {
	background: #102954;
	color: #fff;
}
.page-template-template-gallery .gallery-categories li{
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	padding: 1rem;
	color: #828282;
	font-weight: 700;
	border-radius: 10px;
	text-decoration: none;
	text-align: left;
	cursor: pointer;
}
.page-template-template-gallery .row {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	margin-right: -15px;
	margin-left: -15px;
}
.page-template-template-gallery .container {
	width: 100%;
	padding-right: 15px;
	padding-left: 15px;
	margin-right: auto;
	margin-left: auto;
}
.page-template-template-gallery img {
	max-width: 100%;
}
.page-template-template-gallery .col-md-3 {
	-webkit-box-flex: 0;
	-ms-flex: 0 0 25%;
	flex: 0 0 25%;
	max-width: 25%;
	padding: 0 15px
}
.page-template-template-gallery .col-md-9 {
	-webkit-box-flex: 0;
	-ms-flex: 0 0 75%;
	flex: 0 0 75%;
	max-width: 75%;
	padding: 0 15px
}

.page-template-template-gallery .twentytwenty-handle {
	height: 44px;
	width: 44px;
	position: absolute;
	left: 50%;
	top: 50%;
	margin-left: -22px;
	margin-top: -22px;
	border: 3px solid #fff;
	border-radius: 1000px;
	-webkit-box-shadow: 0 0 12px rgb(51 51 51 / 50%);
	box-shadow: 0 0 12px rgb(51 51 51 / 50%);
	z-index: 40;
	cursor: pointer;
}
.page-template-template-gallery .fancybox-slide--html .fancybox-close-small:hover, .fancybox-slide--html .fancybox-close-small:hover {
	color: #555;
	background: #eee;
}
.page-template-template-gallery .fancybox-slide--html .fancybox-close-small:focus, .fancybox-slide--html .fancybox-close-small:focus {
	outline: 1px dotted #888;
}
.page-template-template-gallery .twentytwenty-horizontal .twentytwenty-handle:after {
	top: 50%;
	margin-top: 22px;
	-webkit-box-shadow: 0 -3px 0 #fff, 0 0 12px rgb(51 51 51 / 50%);
	box-shadow: 0 -3px 0 #fff, 0 0 12px rgb(51 51 51 / 50%);
}
.page-template-template-gallery .twentytwenty-horizontal .twentytwenty-handle:before {
	bottom: 50%;
	margin-bottom: 22px;
	-webkit-box-shadow: 0 3px 0 #fff, 0 0 12px rgb(51 51 51 / 50%);
	box-shadow: 0 3px 0 #fff, 0 0 12px rgb(51 51 51 / 50%);
}
.page-template-template-gallery .twentytwenty-horizontal .twentytwenty-handle:before, .page-template-template-gallery .twentytwenty-horizontal .twentytwenty-handle:after {
	width: 3px;
	height: 9999px;
	left: 50%;
	margin-left: -1.5px;
}
.twentytwenty-horizontal .twentytwenty-handle:before, .twentytwenty-horizontal .twentytwenty-handle:after, 
.twentytwenty-vertical .twentytwenty-handle:before, .twentytwenty-vertical .twentytwenty-handle:after {
	content: " ";
	display: block;
	background: #fff;
	position: absolute;
	z-index: 30;
}
.page-template-template-gallery .twentytwenty-left-arrow, .twentytwenty-right-arrow {
	top: 50%;
	margin-top: -6px;
}
.page-template-template-gallery .twentytwenty-left-arrow, .page-template-template-gallery .twentytwenty-right-arrow, .twentytwenty-up-arrow, .page-template-template-gallery .twentytwenty-down-arrow {
	width: 0;
	height: 0;
	border: 6px inset transparent;
	position: absolute;
}

.page-template-template-gallery .twentytwenty-left-arrow {
	border-right: 6px solid #fff;
	left: 50%;
	margin-left: -17px;
}
.page-template-template-gallery .twentytwenty-right-arrow {
	border-left: 6px solid #fff;
	right: 50%;
	margin-right: -17px;
}

.slidercontent {width:  600px;}
.fancybox-caption {font-size: 18px;}
.page-template-template-gallery .fancybox-slide--html .fancybox-close-small, .fancybox-slide--html .fancybox-close-small { color: #555; background: #eee;}
.fancybox-content{
    background:#fff url("../images/loader.gif") no-repeat 50% 50% !important;
}

@media (min-width: 1200px){
	.page-template-template-gallery .container {
		max-width: 1140px;
	}
}


@media (min-width: 992px){
	.page-template-template-gallery .col-lg-3 {
		-webkit-box-flex: 0;
		-ms-flex: 0 0 25%;
		flex: 0 0 25%;
		max-width: 25%;
		padding-right: 15px;
		padding-left: 15px;
	}
	.page-template-template-gallery .col-lg-9 {
		-webkit-box-flex: 0;
		-ms-flex: 0 0 75%;
		flex: 0 0 75%;
		max-width: 75%;
		padding-right: 15px;
		padding-left: 15px;
	}
	.page-template-template-gallery .container {
		max-width: 1140px;
	}
}

@media(max-width: 1024px){
	.page-template-template-gallery .grid-item {
	    width: 22%;
	}
}

@media(max-width: 1024px){
	.page-template-template-gallery .grid-item {
	    width: 21%;
	}
}

@media(max-width: 767px){
	.page-template-template-gallery .grid-item {
	    width: 23.8%;
	}
	.page-template-template-gallery .gallery-block .container{
		padding:0;
	}
	.page-template-template-gallery .gallery-block .row{
		display: block !important;
	}
	.page-template-template-gallery .col-sm-12 {
		-webkit-box-flex: 0;
		-ms-flex: 0 0 100%;
		flex: 0 0 100%;
		max-width: 100%;
		padding: 0 15px
	}
}

@media(max-width: 670px){
	.page-template-template-gallery .grid-item {
	    width: 23.6%;
	}
}
@media(max-width:640px){
	.slidercontent {width:  400px;}
	.fancybox-caption {font-size: 16px;}
}
@media(max-width: 600px){
	.page-template-template-gallery .grid-item {
	    width: 23.5%;
	}
}
@media(max-width: 480px){
	.page-template-template-gallery .grid-item {
    width: 22.8%;
}
	.page-template-template-gallery .fancybox-navigation .fancybox-button {
		top: calc(50% - 45px);
	}	
	.slidercontent {width:  350px;}
}
@media(max-width:390px){
	.slidercontent {width:  330px;}
}
@media(max-width:375px){
	.page-template-template-gallery .grid-item {
    width: 22.5%;
}
	.slidercontent {width:  300px;}
}
@media(max-width:320px){
		.page-template-template-gallery .grid-item {
    width: 22%;
}
	.slidercontent {width:  260px;}
}
/* ---- .grid-item ---- */


.page-template-template-gallery ul.gallery-categories {
	padding: 0;
}

.page-template-template-gallery .twentytwenty-before-label {
	opacity: 0;
}
.page-template-template-gallery .twentytwenty-after-label {
	opacity: 0;
}
.page-template-template-gallery .twentytwenty-before-label:before, .page-template-template-gallery .twentytwenty-after-label:before {
	color: #fff;
	font-size: 13px;
	letter-spacing: .1em;
}
.page-template-template-gallery .twentytwenty-before-label:before, .page-template-template-gallery .twentytwenty-after-label:before {
	position: absolute;
	background: rgba(255,255,255,.2);
	line-height: 38px;
	padding: 0 20px;
	border-radius: 2px;
}
.page-template-template-gallery .twentytwenty-horizontal .twentytwenty-before-label:before {
	left: 10px;
}
.page-template-template-gallery .twentytwenty-before-label:before {
	content: attr(data-content);
}
.page-template-template-gallery .twentytwenty-horizontal .twentytwenty-after-label:before {
	right: 10px;
}
.page-template-template-gallery .twentytwenty-horizontal .twentytwenty-before-label:before, 
.page-template-template-gallery .twentytwenty-horizontal .twentytwenty-after-label:before {
	top: 50%;
	margin-top: -19px;
}
