.containers
{
	width: 100%;
	height: 100%;
	margin-left: auto;
	margin-right: auto;
	background: #fff;
	display: block;
	padding-left: 10px;
	padding-right: 10px;
	position: relative;

}

.containers2
{
	width: 100%;
	height: 100%;
	margin-left: auto;
	margin-right: auto;
	background: #fff;
	display: block;
	padding-left: 10px;
	padding-right: 10px;
	position: relative;

}
.containers2 .box
{
	position: relative;
	width: 300px;
	height: 300px;
	margin: 70px auto 0;
	background: gray;
	margin: 10px;
	box-sizing: border-box;
	display: inline-block;
}

.containers2 .box .imgBox
{
	position: relative;
	margin-left: auto;
	margin-right: auto;
	overflow: hidden;
	width: 100%;
	height: 100%;
}

.containers2 .box .details
{
	position: absolute;
	top: 10px;
	bottom: 10px;
	left: 10px;
	right: 10px;
	background: rgba(50,50,50,0.5);
	transform: scaleY(0);
	transition: transform .5s;
}

.containers2 .box:hover .details
{
	transform: scaleY(1);
}

.containers2 .box .details .content
{
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	text-align: justify;
	text-justify: distribute;
	word-spacing:-2px;
	padding: 15px;
	color: #fff;
}

.containers2 .box .details .content h2
{
	margin: 0;
	padding: 0;
	font-size: 20px;
	color: #ff0;
}

.containers2 .box .details .content p
{
	margin: 10px 0 0;
	padding: 0;
}



.containers2 .box .imgBox img
{
	max-width: 100%;
	transition: transform 2s;
	
}

.containers2 .box:hover .imgBox img
{
	transform: scale(1.2);
}



.imageh {
  display: block;
  width: 50%;
  height: auto;
}



.containers2:hover .overlay {
  opacity: 1;
}






/*============= width and height =============*/
.containers .box
{
	position: relative;
	width: 300px;
	height: 300px;
	margin: 70px auto 0;
	background: gray;
	margin: 10px;
	box-sizing: border-box;
	display: inline-block;
}

.containers .box .imgBox
{
	position: relative;
	margin-left: auto;
	margin-right: auto;
	overflow: hidden;
	width: 100%;
	height: 100%;
}

.containers .box .details
{
	position: absolute;
	top: 10px;
	bottom: 10px;
	left: 10px;
	right: 10px;
	background: rgba(50,50,50,0.5);
	transform: scaleY(0);
	transition: transform .5s;
}

.containers .box:hover .details
{
	transform: scaleY(1);
}

.containers .box .details .content
{
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	text-align: justify;
	text-justify: distribute;
	word-spacing:-2px;
	padding: 15px;
	color: #fff;
}

.containers .box .details .content h2
{
	margin: 0;
	padding: 0;
	font-size: 20px;
	color: #ff0;
}

.containers .box .details .content p
{
	margin: 10px 0 0;
	padding: 0;
}



.containers .box .imgBox img
{
	max-width: 100%;
	transition: transform 2s;
	
}

.containers .box:hover .imgBox img
{
	transform: scale(1.2);
}



.imageh {
  display: block;
  width: 50%;
  height: auto;
}



.containers:hover .overlay {
  opacity: 1;
}

@media (max-width: 575.98px) {

}

@media only screen and (max-width: 479px){

}

@media all and (max-width: 321.98px) {
	

		.box{
		transform: scale(0.98);
		width: 98%;
	}
		.containers .box{
		transform: scale(1);
		width: 100%;
	}
	.containers .box .details .content
	{
		font-size: 12px;
	}
		
		.box{
		transform: scale(0.98);
		width: 98%;
	}
		.containers2 .box{
		transform: scale(1);
		width: 100%;
	}
	.containers2 .box .details .content
	{
		font-size: 12px;
	}

}