.imagebox-grid {
	border-top: 4px solid white;
    overflow: hidden;
	margin-bottom: 25px;
}

.imagebox-grid .inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.imagebox-grid .slide {
	position: relative;
	width: 50%;
    border-bottom: 4px solid white;
    overflow: hidden;
}

.imagebox-grid .slide:nth-child(odd) {
	border-right: 2px solid white;
}

.imagebox-grid .slide:nth-child(even) {
	border-left: 2px solid white;
}

.imagebox-grid .img-cont {
	position: relative;
    padding-bottom: 40%;
    transition: transform 0.25s ease-in-out;
}

.imagebox-grid .img-cont::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#ffffff+1,000000+100&0+1,0.66+100 */
background: -moz-linear-gradient(top, rgba(255,255,255,0) 1%, rgba(0,0,0,0.99) 80%); /* FF3.6-15 */
background: -webkit-linear-gradient(top, rgba(255,255,255,0) 1%,rgba(0,0,0,0.99) 80%); /* Chrome10-25,Safari5.1-6 */
background: linear-gradient(to bottom, rgba(255,255,255,0) 1%,rgba(0,0,0,0.99) 80%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00ffffff', endColorstr='#a8000000',GradientType=0 ); /* IE6-9 */
    opacity: .6;
    transition: opacity 0.25s ease-in-out;
}

.imagebox-grid .title {
	position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.imagebox-grid .title h4 {
    color: #f9f8f2;
    text-align: center;
    font-size: 17px;
    text-transform: uppercase;
    font-weight: 600;
    line-height: 19px;
    margin-bottom: 0;
}

@media (min-width: 641px) {
    .imagebox-grid {
        margin-bottom: 50px;
    }
    .imagebox-grid .title h4 {
        font-size: 23px;
        line-height: 25px;
    }
}

@media (min-width: 1025px) {
    .imagebox-grid {
        margin-bottom: 150px;
    }
	.imagebox-grid .slide {
        width: 20%;
        border-left: 2px solid white !important;
        border-right: 2px solid white !important;
    }
    .imagebox-grid .inner {
        margin-right: -4px;
    }
	.imagebox-grid .img-cont {
		padding-bottom: 100%;
    }
    .imagebox-grid .title {
        width: 90%;
    }
	.imagebox-grid .title h4 {
        font-size: calc(26px + (36 - 26) * ((100vw - 1025px) / (1665 - 1025)));
        line-height: calc(30px + (40 - 30) * ((100vw - 1025px) / (1665 - 1025)));
    }
    .imagebox-grid .slide:hover .img-cont {
        transform: scale(1.1);
    }
    .imagebox-grid .slide:hover .img-cont::before {
        opacity: 0.7;
    }
}