/* ----------------------------------------------------------------
	Custom CSS

	Add all your Custom Styled CSS here for New Styles or
	Overwriting Default Theme Styles for Better Handling Updates
-----------------------------------------------------------------*/

/*================================================= Form & Buttons ================================================== */
html {
  scroll-behavior: smooth;
}

.btn-main {
	background-color:none;
	border:1px solid #999;
}

.btn-main:hover {
	background-color: rgba(21, 134, 197, .3);
	border:1px solid #1586c5;
	transition: all 0.5s ease 0s;
	
}


/* Images overlay
----------------------------------*/
.triangle {
	height: 0px;
	border-style: solid;
	border-width: 0 50px 50px 0;
	width: 50px !important;
	display: inline !important;
	border-color: transparent #f8f8f8 transparent transparent;
	position: relative;
}

.triangle.opened {
	border-color: transparent rgba(0, 0, 0, 0.8) transparent transparent;
	top: -1px;
}
.small.triangle {
	border-width: 0 35px 35px 0;
	width: 35px !important;
}
.triangle i {
	position: absolute;
	top: 10px;
	left: 30px;
	font-size: 16px;
	color: #555;
	text-shadow:1px 1px #fff;
	-webkit-transition: all 0.2s ease-in-out;
	-moz-transition: all 0.2s ease-in-out;
	-ms-transition: all 0.2s ease-in-out;
	-o-transition: all 0.2s ease-in-out;
	transition: all 0.2s ease-in-out;
}
.small.triangle i {
	font-size: 11px;
	top: 7px;
	left: 20px;
}
.triangle.opened i {
	color: #fff;
}

.mask-wrapper {
	position: relative;
	display: block;
}

.mask h2{
font-size:18px; 
font-family:Nyala, Georgia, 'Times New Roman', Times, serif; 
text-transform:uppercase; 
color:#fff; 
text-shadow:1px 1px #000;
margin-bottom:0;
}




.mask-wrapper img {
	margin:auto;
	}

.image-wrapper {
	border: 1px solid #eaeaea;
	margin-bottom: 20px;
}
.mask {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	max-width:360px;
	background: rgba(0, 0, 0, 0.6);
	border-radius:8px;
	text-align: center;
	opacity: 0;
	filter: alpha(opacity=0);
	overflow: hidden;
	-webkit-transition: opacity linear 0.2s;
	   -moz-transition: opacity linear 0.2s;
		-ms-transition: opacity linear 0.2s;
		 -o-transition: opacity linear 0.2s;
			transition: opacity linear 0.2s;
}
.owl-item .mask-wrapper {
	overflow: hidden;
}
.owl-item .mask {
	bottom: -1px;
}
.mask .triangle {
	border-color: transparent rgba(21, 134, 197, .7) transparent transparent;
	font-size: 20px;
	position: absolute;
	right: 0;
	top: -50px;
	-webkit-transition: top linear 0.2s;
	   -moz-transition: top linear 0.2s;
		-ms-transition: top linear 0.2s;
		 -o-transition: top linear 0.2s;
			transition: top linear 0.2s;
}
.mask .triangle i {
	color: #ffffff;
	text-shadow:none;
}
.mask a {
	color: #ffffff;
}
.mask a:hover {
	color: #ffffff;
	text-decoration: underline;
}
.mask p {
	text-align:center;
	text-shadow:1px 1px #000;
	line-height:24px;
	width: 100%;
	top: 30%;
	color: #fff;
	left: -30%;
	font-size: 14px;
	-webkit-transition: left linear 0.2s;
	   -moz-transition: left linear 0.2s;
		-ms-transition: left linear 0.2s;
		 -o-transition: left linear 0.2s;
			transition: left linear 0.2s;
}

.mask h2 {
	margin-bottom:50px;
	
	
	}
	
	
.mask span {
	color: #fff;
	position: absolute;
	width: 100%;
	display: block;
	font-style: italic;
	font-size: 14px;
	top: 100%;
	-webkit-transition: top linear 0.2s;
	   -moz-transition: top linear 0.2s;
		-ms-transition: top linear 0.2s;
		 -o-transition: top linear 0.2s;
			transition: top linear 0.2s;
}
.mask .social-links {
	padding: 0;
	margin: 0;
	position: absolute;
	top: -50px;
	width: 100%;
	-webkit-transition: top linear 0.2s;
	   -moz-transition: top linear 0.2s;
		-ms-transition: top linear 0.2s;
		 -o-transition: top linear 0.2s;
			transition: top linear 0.2s;
}
.mask .social-links li {
	margin: 0 auto;
}
.mask .social-links li a {
	margin: 5px;
	width: 40px;
	height: 40px;
	border-color: #fff;
	color: #fff;
	font-size: 18px;
}
.mask .social-links li a:hover {
	color: #000;
	background-color: #fff;
	border-color: #fff;
	text-decoration: none;
}
.mask .social-links li a i {
	line-height: 38px;
}
.mask-wrapper:hover {
	border-color: transparent;
}
.mask-wrapper:hover .mask {
	opacity: 1;
	filter: alpha(opacity=100);
}
.mask-wrapper:hover .mask .triangle {
	top: 0px;
}
.mask-wrapper:hover .mask .social-links {
	top: 15px;
}
.mask-wrapper:hover .mask p {
	left: 0;
}
.mask-wrapper:hover .mask span {
	top: 86%;
}
.image-label {
	position: absolute;
	top: 50%;
	font-size: 28px;
	left: -74px;
	margin-top: -21px;
	color: #eaeaea;
	-webkit-transition: all 0.2s ease-in-out;
	   -moz-transition: all 0.2s ease-in-out;
		 -o-transition: all 0.2s ease-in-out;
		-ms-transition: all 0.2s ease-in-out;
			transition: all 0.2s ease-in-out;
}
.mask-wrapper:hover .image-label {
	opacity: 0;
	filter: alpha(opacity=0);
}
.two-sidebars .image-label {
	display: none;
}



/* Button with transparent bg
----------------------------------*/
.btn-white {
	background-color:rgba(255, 255, 255, 0.1);
	color: #fff;
	border: 1px solid #fff;
}
/* Content Area Styles Starts */




.gallery-grid img {border-radius:7px;}


/* Smooth anchor scroller fix
----------------------------------*/
.scroll-fix {  scroll-margin-top: 4em;}
	
@media (max-width: 991px) 

{
	.scroll-fix {scroll-margin-top: 0em;}
}

/* Testimonials
----------------------------------*/
 .testimonials-grid {
    position: relative;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -ms-flex-align: stretch;
    align-items: stretch;
    list-style: none;
    overflow: hidden;
}

.grid-item::before {
    height: 100%;
    top: 0;
    left: -1px;
    border-left: 1px dashed #333;
}

.grid-item::after {
    width: 100%;
    height: 0;
    top: auto;
    left: 0;
    bottom: -1px;
    border-bottom: 1px dashed #333;
}

.testimonials-grid .grid-item {
    padding: 2rem;
}

.grid-item {border-bottom: 1px dashed #999; border-left: 1px dashed #999;}

.grid-item .testimonials-grid .grid-item {
    position: relative;
}

@media (min-width: 768px){
.grid-md-2 > .grid-item {
    width: 50%;
}

}

@media (max-width: 768px){
	.grid-item {border:none;}





}


@media (max-width: 596px){

.mask {
	position: absolute;
margin:auto;


}



/* Bootstrap carousel
----------------------------------*/


/*@media (min-width:998px) and (max-width: 1200px) {

.carousel-inner {
	position: relative;
	width: 100%;
	max-height: 650px;
	overflow: hidden;
}
}
@media (min-width:767px) and (max-width: 997px) {

.carousel-inner {
	position: relative;
	width: 100%;
	max-height: 500px;
	overflow: hidden;
}
}

@media (max-width:766px) {

.carousel-inner {
	position: relative;
	width: 100%;
	max-height: 200px;
	overflow: hidden;
}
} */

.carousel.carousel-fade .carousel-item {
    display: block;
    opacity: 0;
    transition: opacity ease-out .7s;
}

.carousel.carousel-fade .carousel-item.active {
    opacity: 1 !important;
}