.imgbox-grid-panel {
	overflow: hidden;
	border-top: 1px solid white;
	border-bottom: 1px solid white;
	margin-bottom: 35px;
}

.imgbox-grid {
	display: flex;
	flex-wrap: wrap;
	margin: 0 -1px 60px;
	overflow: hidden;
}

.imgbox-grid .imgbox-grid-item {
	position: relative;
	flex-grow: 0;
	flex-shrink: 1;
	flex-basis: calc(33.3333% - 2px);
	border-top: 1px solid white;
	border-bottom: 1px solid white;
	border-left: 1px solid white;
	border-right: 1px solid white;
}

.imgbox-grid .imgbox-grid-item .img-cont {
	position: relative;
}

.imgbox-grid .imgbox-grid-item .img-cont img {
	display: block;
	width: 100%;
}

.imgbox-grid .imgbox-grid-item .img-cont::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.3);
}

/*.imgbox-grid .imgbox-grid-item .img-cont::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	transition: opacity 0.4s ease-in-out 0.4s;
}

.imgbox-grid .imgbox-grid-item:hover .img-cont::before {
	transition: opacity 0.6s ease-in-out;
	opacity: 0.9;
}

.imgbox-grid .imgbox-grid-item.blue .img-cont::before {
	background-color: #50afad;
}*/

.imgbox-grid .imgbox-grid-item .content {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 95%;
	display: flex;
	flex-direction: column;
	align-items: center;
	pointer-events: none;
	z-index: 2;
}

.imgbox-grid .imgbox-grid-item .overlay {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    transition: opacity 0.6s ease-in-out;
    pointer-events: none;
}
.imgbox-grid .imgbox-grid-item:hover .overlay{
    /*background-color: #235bb1;*/
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 1;
    opacity: .6;
    transition: opacity 0.6s ease-in-out;
}

.imgbox-grid .imgbox-grid-item .content h5 {
	color: white;
	font-size: 28px;
	line-height: 30px;
	margin: 10px 0;
	text-align: center;
}

.imgbox-grid .imgbox-grid-item .content .desc {
	color: white;
	text-align: center;
	margin-bottom: 15px;
}

.imgbox-grid .imgbox-grid-item .content .imgbox-grid-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 15px;
	border: 2px solid white;
	color: white;
}

.imgbox-grid .imgbox-grid-item .content .imgbox-grid-link img {
	margin-left: 7px;
}

.imgbox-grid .imgbox-grid-item .content .hl-link img {
	margin-left: 5px;
}

.imgbox-grid .imgbox-grid-item .content .text-cont {
	opacity: 0;
	text-align: center;
	transition: opacity 0.8s, max-height 1.4s;
	height: auto;
	max-height: 0;
	width: 60%;
}

.imgbox-grid .imgbox-grid-item:hover .content .text-cont {
	opacity: 1;
	max-height: 300px;
}

@media (max-width: 1024px) {
	.imgbox-grid .imgbox-grid-item {
		flex-grow: 0;
		flex-shrink: 1;
		flex-basis: calc(50% - 2px);
		flex: auto;
		width: 100%;
		border-left: 0;
		border-right: 0;
		border-top: 0;
		border-bottom: 2px solid white;
	}

	.imgbox-grid .imgbox-grid-item .content .icon {
		width: 60px;
	}
	.imgbox-grid .imgbox-grid-item .content h5 {
		font-size: 24px;
		line-height: 26px;
	}

}

@media (max-width: 640px) {
	.imgbox-grid-panel {
		border-top: 2px solid white;
		border-bottom: 0;
	}
	.imgbox-grid .imgbox-grid-item {

	}
	.imgbox-grid .imgbox-grid-item:hover .img-cont::before {
		opacity: 0;
	}
	.imgbox-grid .imgbox-grid-item .content .text-cont {
		display: none;
	}
}

