body.gallery-slide-active .masonry-gallery{
	z-index: 999
}
.masonry-gallery{
	position: relative;
}
.masonry-gallery .item.box_type_image .gallery-text-box{
	display: none;
}
.masonry-gallery .item.box_type_text .gallery-text-box{
	align-items: center;
	display: flex;
	justify-content: center;
}

.masonry-gallery .item.box_type_text .image{
	display: none;
}
.masonry-gallery .item .image{
	width: 100%;
}

.masonry-gallery .prev,
.masonry-gallery .next{
	align-items: center;
	display: none !important;
	font-size: 4rem;
	height: 100%;
	justify-content: center;
	position: fixed;
	text-decoration: none;
	top: 0;
	transition: all .2s;
	width: 15%;
	z-index: 999;
}

.masonry-gallery .prev{
	left: 0;
}
.masonry-gallery .next{
	right: 0;
}
.masonry-gallery .active .prev{
	left: 0;
}
.masonry-gallery .active .next{
	right: 0;
}
.masonry-gallery .container-box{
	display: grid;
	grid-auto-flow: dense;
	grid-auto-rows: 250px;
	grid-gap: 5px;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	margin: 0 auto;
	max-width: 100%;
}
.masonry-gallery .item.show .image{
	height: 90vh !important;
}

.masonry-gallery .item.text *{
	width: 100%;
}
.masonry-gallery .item{
	background: #fff;
	overflow: hidden;
}
.masonry-gallery .close-popup{
    top: 0;
    right: 0;
    display: none;
    z-index: 9999;
    width: max-content;
}
.masonry-gallery .close-popup > span{
	   cursor: pointer;
	   padding:5px;
}

.masonry-gallery .item.show .close-popup{
	display: block;
}
.masonry-gallery .item:not(.show) img{
	display: block;
	height: 100% !important;
	object-fit: cover;
	object-position: center;
	width: 100%;
}
.masonry-gallery .item:not(.show) img{
	transition: all .5s;
}
.masonry-gallery .item.show::before{
	background: rgba(0, 0, 0, .9);
	content: '';
	display: block;
	height: 100vh;
	left: 0;
	position: fixed;
	top: 0;
	width: 100vw;
	z-index: 555;
}
.masonry-gallery .item.show .text-wrapper{
	max-width:600px;
}
.masonry-gallery .item.show .text-wrapper *{
	width: 100%
}
.masonry-gallery .item.show .gallery-text-box,
.masonry-gallery .item.show .image{
	align-self: center;
	height: calc(100% - 60px);
	left: 0;
	margin: 30px;
	object-fit: contain;
	position: fixed;
	top: 0;
	width: calc(100% - 60px);
	z-index: 555;
}
.masonry-gallery .item.show .image-wrapper{
	filter: drop-shadow(0 3px 15px black);
}
.masonry-gallery .item:not(.show) .image-wrapper{
	width:100%;
	height:100%;
}

.masonry-gallery .item.text .text-wrapper{
	transition: all .5s;
}
.masonry-gallery .item.text:not(.show):hover .text-wrapper{
	cursor: pointer;
	transform: scale(1.1);
}

.masonry-gallery .horizontal{
	grid-column: span 2;
}
.masonry-gallery .vertical{
	grid-row: span 2;
}
.masonry-gallery .big{
	grid-column: span 2;
	grid-row: span 2;
}
.masonry-gallery .active .item:not(.show) .img{
	filter: blur(3px);
}
.masonry-gallery img {
    display: block;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
    width: 100%;
    border-radius: 50%; 
    transition: all .5s;
}
.masonry-gallery .hover-item{
	align-items: center;
	bottom: 0;
	display: flex;
	justify-content: center;
	left: 0;
	opacity: 0;
	padding: 15px;
	position: absolute;
	right: 0;
	top: 0;
	transition: opacity .3s ease-in-out;
}
.masonry-gallery .item:hover .hover-item{
	background-color: black;
	opacity: 1;
}

.text-wrapper p {
    font-size: 16px;
    line-height: 1.5;
    display: none;
}
.show p {
display: block !important;
}

body.gallery-slide-active .page-header,
body.gallery-slide-active .page-header.sticky-header{
  z-index:1;
}
body.gallery-slide-active{
  overflow: hidden;
}
body.gallery-slide-active .masonry-gallery .prev,
body.gallery-slide-active .masonry-gallery .next{
	display: none !important;
}
@media (min-width:768px){
.masonry-gallery .sec-title{
	margin-bottom: 50px;
}	
p, ul {
margin: 0 0 10px;
}
@media (max-width:767px){
	.masonry-gallery .item.show .gallery-text-box{
	width: calc(100% - 60px) !important;
}
.masonry-gallery .sec-title{
	margin-bottom: 30px;
}
}
@media(max-width:600px){
	.masonry-gallery .prev,
		.masonry-gallery .next{
	      width: 10%;
	}
	.masonry-gallery .container-box{
		display: block;
	}
	.masonry-gallery .item{
		margin:5px 0px;
	}
  
}
