*, *:before, *:after{
	margin: 0;
	padding :0;
	box-sizing: border-box;
}
body{
	font-family: sans-serif;
	color: #1a1a1a;
	text-align: center;
	text-transform: uppercase;
	padding: 5px 5px;
}
.container{
	width: 70%;
}
.content{
	position: relative;
	width: 30%;
	margin :0 1.16%;
	float: left;
	overflow: hidden;
	cursor: pointer;
}
.imga{
	width: 100%;
	height: 300px;
	padding-left: 30px;
}
.content .text-overlay{
	background: linear-gradient(-90deg, #7770f1,rgba(20%, 100%, 20%, .5));
	position: absolute;
	width: 100%;
	height:0;
	opacity: 0;
	transition: all 0.5s ease-in-out;
}
.content:hover .text-overlay{
	opacity: 1;
	background-color: red;
}
.text-details{
	position: absolute;
	width: 100%;
	top: 80%;
	left: 50%;
	text-align: center;
	padding: 0 16px;
	opacity: 0;
	transform: translate(-50% , -20%) rotateX(-80deg);
	transition: all .4s ease-in-out;
	overflow: hidden;
}
.content:hover .text-details{
	top: 55%;
	left: 50%;
	opacity: 1;
	background-color: rgba(0,0,0,.6);
	transform: translate(-50% , -10%) rotateX(-50deg);
	overflow: hidden;

}
.text-title{
	color: white;
	font-size: 20px;
	font-weight: bold;
	margin: 10px;
	text-transform: uppercase;
}
.text{
	color: white;
	font-size: 12px;
	padding: 0 2px;
	line-height: 20px;
	text-align: center;
}
@media only screen and (max-width: 900px){
	h1{
		font-size: 12px;
		padding: 25px 0
	}
	.content{
		width: 46%;
		margin:1% 2%;
	}
}

@media only screen and (max-width: 650px){
	.text-title{
		font-size: 12px;
	}
	.text{
		font-size: 10px;
		line-height: 13px;
		padding: 8px;
		
	}
}
@media only screen and (max-width: 550px){
	h1{
		font-size: 15px;
	}
	.content{
		width: 90%;
		margin: 2.5% 5%;
	}

}




