.card {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 3/2.2;
    overflow: hidden;
    margin-bottom: 30px;
}

.card:before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 50%;
    z-index: 2;
    background: rgba(0,0,0,0.80);
    background: -webkit-linear-gradient(top,rgba(0,0,0,0),rgba(0,0,0,0.80));
    background: -ms-linear-gradient(top,rgba(0,0,0,0),rgba(0,0,0,0.80));
    background: -o-linear-gradient(top,rgba(0,0,0,0),rgba(0,0,0,0.80));
    background: -moz-linear-gradient(top,rgba(0,0,0,0),rgba(0,0,0,0.80));
}

.card-img {
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    -webkit-transition: -webkit-transform .3s;
    -moz-transition: -moz-transform .3s;
    -o-transition: -o-transform .3s;
    transition: transform .3s;
}

.card-img:before {
    position: absolute;
    z-index: 2;
    content: "";
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    background-color: rgba(0, 0, 0, 0.6);
    -webkit-transition: all .3s;
    -moz-transition: all .3s;
    -o-transition: all .3s;
    transition: all .3s;
}

.card-heading {
    z-index: 5;
    position: absolute;
    color: white;
    bottom: 5%;
    left: 5%;
    width: 90%;
    font-size: 1.1rem;

    /* width: 100%;
    padding-left: 5%; */
}

.card-heading h3 {
    font-size: 2.2rem;
    margin-bottom: 0;
}

.card-heading * {
    color: white !important;
}

a.card:hover .card-img,
a.card:focus .card-img {
    -ms-transform: scale(1.1);
    -moz-transform: scale(1.1);
    -webkit-transform: scale(1.1);
    -o-transform: scale(1.1);
    transform: scale(1.1);
}

a.card:hover .card-img::before {
    display: block;
    opacity: 1;
}

a.card:hover .card-heading {
    opacity: 1;
}

@media (max-width: 991.98px) { 
    .card {
        max-height: 280px;
    }
}

.card .overlay-box {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: -500px;
	z-index: 10;
	background: #d1d1d1; 
	background: #26375c;
	-webkit-transition: all 0.4s ease;
  	-moz-transition: all 0.4s ease;
  	-o-transition: all 0.4s ease;
  	transition: all 0.4s ease;
  	opacity: 0;
}

.card .overlay-box .overlay-content {
	position: absolute; 
	z-index: 4;
	width: 80%;
	left: 10%;
	top: 50%;
	-ms-transform: translateY(-50%);
	-moz-transform: translateY(-50%);
	-webkit-transform: translateY(-50%);
	transform: translateY(-50%);
	font-size: 0.9rem;
	line-height: 1.5rem;
	color: white;
}

.card .overlay-box .overlay-content h3 {
	font-size: 1rem;
	letter-spacing: 0.1rem;
	color: white;
}

.card:hover .overlay-box {
	bottom: 0;
	opacity: 1;
}