/* .demo-gallery{
	position: relative;
} */
.custom-demo-gallery .img-stamp {
	display: flex;
	justify-content: space-around;
	margin: 10px;
}

.custom-demo-gallery .img-stamp {
	width: 274px;
}

.demo-gallery>ul {
	margin-bottom: 0;
	padding-left: 0;
	/*     position: relative; */
	/* top: 20px; */
	/* left: 4px; */
	display: flex;
    justify-content: center;
    align-items:center;
    height:100%;
}


.demo-gallery>ul>li {
	/* float: left; */
	position: relative;
/* 	margin-bottom: 30px; */
	/* margin-right: 20px; */
	/* width: 75%; */
	/* list-style-type: none; */
	/*  border: 1px solid red;
    border-radius: 4px; */
/* 	width: auto; */
	overflow: hidden;
/* 	    padding: 0 15px; */
/* 	        aspect-ratio: 16/9; */
/* 	width:100%; */
	/* aspect-ratio: 1/1;
	max-height: 300px; */
	    height: 230px;
}
/* .demo-gallery > ul > li a { */
/*     border: 2px solid #fff; */
/*     border-radius: 10px; */
/*     display: flex; */
/*     overflow: hidden; */
/*     position: relative; */
/*     float: left; */
/* } */
.demo-gallery>ul>li a>img {
	-webkit-transition: -webkit-transform 0.15s ease 0s;
	-moz-transition: -moz-transform 0.15s ease 0s;
	-o-transition: -o-transform 0.15s ease 0s;
	transition: transform 0.15s ease 0s;
	-webkit-transform: scale3d(1, 1, 1);
	overflow: hidden;
	transform: scale3d(1, 1, 1);
/* 	height: 100%; */
/* 	width: 100%; */
}

/* .demo-gallery>ul>li a:hover>img {
	-webkit-transform: scale3d(1.1, 1.1, 1.1);
	transform: scale3d(1.1, 1.1, 1.1);
} */

.demo-gallery>ul>li a:hover .demo-gallery-poster>img {
	opacity: 1;
}

.demo-gallery>ul>li a .demo-gallery-poster {
	background-color: rgba(209, 118, 118, 0.1);
	bottom: 0;
	left: 0;
	position: absolute;
	right: 0;
	top: 0;
	-webkit-transition: background-color 0.15s ease 0s;
	-o-transition: background-color 0.15s ease 0s;
	transition: background-color 0.15s ease 0s;
}

/* .demo-gallery>ul>li a .demo-gallery-poster>img {
	left: 50%;
	margin-left: -10px;
	margin-top: -10px;
	opacity: 0;
	position: absolute;
	top: 50%;
	-webkit-transition: opacity 0.3s ease 0s;
	-o-transition: opacity 0.3s ease 0s;
	transition: opacity 0.3s ease 0s;
} */
.demo-gallery>ul>li a:hover .demo-gallery-poster {
	background-color: rgba(0, 0, 0, 0.5);
}

.demo-gallery .justified-gallery>a>img {
	-webkit-transition: -webkit-transform 0.15s ease 0s;
	-moz-transition: -moz-transform 0.15s ease 0s;
	-o-transition: -o-transform 0.15s ease 0s;
	transition: transform 0.15s ease 0s;
	-webkit-transform: scale3d(1, 1, 1);
	transform: scale3d(1, 1, 1);
	height: 100%;
	width: 100%;
}

.demo-gallery .justified-gallery>a:hover>img {
	-webkit-transform: scale3d(1.1, 1.1, 1.1);
	transform: scale3d(1.1, 1.1, 1.1);
}

.demo-gallery .justified-gallery>a:hover .demo-gallery-poster>img {
	opacity: 1;
}

.demo-gallery .justified-gallery>a .demo-gallery-poster {
	background-color: rgba(0, 0, 0, 0.1);
	bottom: 0;
	left: 0;
	position: absolute;
	right: 0;
	top: 0;
	-webkit-transition: background-color 0.15s ease 0s;
	-o-transition: background-color 0.15s ease 0s;
	transition: background-color 0.15s ease 0s;
}

.demo-gallery .justified-gallery>a .demo-gallery-poster>img {
	/* left: 50%; */
	/* margin-left: -10px;
  margin-top: -10px; */
	opacity: 0;
	/* position: absolute; */
	/* top: 50%; */
	-webkit-transition: opacity 0.3s ease 0s;
	-o-transition: opacity 0.3s ease 0s;
	transition: opacity 0.3s ease 0s;
}

.demo-gallery .justified-gallery>a:hover .demo-gallery-poster {
	background-color: rgba(0, 0, 0, 0.5);
}
/* .demo-gallery .video .demo-gallery-poster img {
  height: 48px;
  margin-left: -24px;
  margin-top: -24px;
  opacity: 0.8;
  width: 48px;
} */
.demo-gallery.dark>ul>li a {
	border: 3px solid #04070a;
}

.home .demo-gallery {
	padding-bottom: 80px;
}

.text-over-img {
	padding: 0;
	background-color: red;
	/* position: absolute;
	z-index: 1;
	top: 0; */
	width: -webkit-fill-available;
/* 	height: 100%; */
	background: transparent;
	display: flex;
	justify-content: center;
	align-items: center;
	transition: transform .2s;
}

.text-over-img h2 {
/* 	width: 100%;
	position:absolute;
	font-size: 16px;
	font-weight:600;
	text-align: center;
	color: white;
	bottom: 0;
	padding: 5px;
	margin-bottom: 0;
	background: linear-gradient(180deg, hsla(0, 0%, 0%, 0) 0%,
		hsla(0, 0%, 0%, 0.3) 10%, hsl(0, 0%, 0%) 100%); */
}

li:hover .text-over-img {
	/* background-color: black;
	opacity: 0.7;
	border-style: solid;
	border-width: 2px;
	border-color: white;
	transform: scale(0.8);
	transition-duration: 0.2s; */
}

.lg-sub-html h2, .demo-gallery p,
.lg-sub-html p{
	color: #f1f1f1;
}

.item-title{
	width: 100%;
	position:absolute;
	padding: 10px 5px;
	top:inherit;
	font-size: 18px;
	text-align: center;
	color: #fff;
	cursor:pointer;
	bottom: 0;
	margin-bottom: 0;
	background: linear-gradient(180deg, hsla(0, 0%, 0%, 0) 0%,
		hsla(0, 0%, 0%, 0.3) 10%, hsl(0, 0%, 0%) 100%);
}

.demo-gallery img{
	position: relative;	
}


/* .demo-gallery ul li:nth-child(even) {
left: 10px;
top: 10px;
z-index: -10;
}

.demo-gallery ul li:nth-child(1) {
    z-index: 1;
    width: 75%;
}

.demo-gallery ul li:nth-child(2) {
    z-index: -20;
    left: 20px;
    top: 20px;
    width: 75%;
} */
/* .demo-gallery li { */
/* 	margin-bottom:30px; */
/* } */
.demo-gallery li:hover .item-title   {	
    top: 50%;     
}

.demo-gallery li:hover .item-title,
.demo-gallery .item-title:hover {
	color: #fff;
    background: linear-gradient(180deg, hsla(0, 0%, 0%, 0) 0%, hsla(0, 0%, 0%, 0.3) 10%, #2f9aff 100%);
}

.demo-gallery .lg-outer .lg-thumb-item.active, .demo-gallery .lg-outer .lg-thumb-item:hover {
	    border-color: #2f9aff !important;
}

ul .demo-gallery {
    height: 100%; 
/*     padding: 15px 0px; */
/*         background: #f6f6f6;  */
}

.events_item{
	height: 100%;
/* 	margin: 15px 0px; */
}

/* .demo-gallery .row [class*="col-"]{ */
/* 	height: 100%; */
/* } */

/* custom css start */

.demo-gallery.custom-grid-gallery {
    padding: 15px 0px;
    height: 100%;
}

.custom-grid-gallery.demo-gallery>ul>li{
	width:100%;
	margin-bottom:0px;
	height: 100%;
	background: #f6f6f6;
    border: 1px solid #b8b8b8;
}

/* .custom-grid-gallery.demo-gallery>ul>li a>img { */
/* 	    width: 100%; */
/* } */

.custom-grid-gallery ul .demo-gallery {
    height: 100%;
    padding: 15px 0px;
}

.custom-light-gallery.demo-gallery li{
	margin-bottom:0px;
}

.custom-light-gallery.demo-gallery>ul>li {
	    margin: 12px 0px;
}

.custom-light-gallery.demo-gallery>ul>li a {
	border: 1px solid rgba(44, 139, 173, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    background: rgba(44, 139, 173, 0.1);
        padding: 0 12px;
}

.demo-gallery .gallery-img-block {
	    height: 100%;
}

.demo-gallery .gallery-img-block a{
	display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}


/* custom css end */


/* Circle */
.demo-gallery li {
	position: relative;
	cursor: pointer;
}
.demo-gallery li::before {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 2;
	display: block;
	content: '';
	width: 0;
	height: 0;
	background: rgba(255,255,255,.2);
	border-radius: 100%;
	-webkit-transform: translate(-50%, -50%);
	transform: translate(-50%, -50%);
	opacity: 0;
}
.demo-gallery li:hover::before {
	-webkit-animation: circle .75s;
	animation: circle .75s;
}