/*
    Template Author : pixelhint.com
    Author Email    : contact@pixelhint.com
    Template Name   : Magnetic
    *****************************************
  
*/
.main{
    width: 95%;
    height: 100%;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    position: relative;
    z-index: 55;
    background: #000;
    clear: both;
	padding:10px;
	border-radius:10px;
	margin:20px auto;
}
@media only screen and (max-width: 768px) { .main{ width: 100%; margin:10px auto;} }
.main .work{
    display: block;
    /*width: 33.33333333333333%;*/
	width: 25%;
    height: auto;
    float: left;
    position: relative;
    overflow: hidden;
	padding: 2px;
}
.main .work .media{
    width: 100%;
    vertical-align: middle;
}
.main .work .caption{
    position: absolute;
    display: block;
    width: 100%;
    height: 100%;
    top: 0; 
    left: 0;
    background-color: rgba(0, 0, 0, 0.7);
	/*background-color:#333;*/
    opacity: 0;
}
.main .work a:hover .caption{ opacity: 1; }
.work .caption .work_title{
    display: block;
    width: 100%;
    position: absolute;
    text-align: center;
    top: 30%;
    margin-top: -40px;
	font-size: 90%;
}
.main .work .caption h3{
    position: relative;
    display: inline-block;
    max-width: 90%;
    z-index: 77;
	/*padding: 10px 0;
    border-bottom: 1px solid #bfbbbb;
    border-top: 1px solid #bfbbbb;*/
}


.main .work2{
    display: block;
    width: 24.888%;
    height: auto;
    float: left;
    position: relative;
    overflow: hidden;
	padding: 2px;
}
.main .work2 .media{
    width: 100%;
    vertical-align: middle;
}
.main .work2 .caption{
    position: absolute;
    display: block;
    width: 100%;
    height: 100%;
    top: 0; 
    left: 0;
    background-color:rgba(0, 0, 0, 0.8);
    opacity: 0;
}
.main .work2 a:hover .caption{ opacity: 1; }
.work2 .caption .work_title{
    display: block;
    width: 100%;
    position: absolute;
    text-align: center;
    top: 30%;
    margin-top: -40px;
}
.main .work2 .caption h3{
    position: relative;
    display: inline-block;
    max-width: 90%;
    z-index: 77;
	text-align: center;
	/*padding: 10px 0;
    border-bottom: 1px solid #bfbbbb;
    border-top: 1px solid #bfbbbb;*/
}

/*  Responsive */
@media (max-width:1099px){
    .main .work{
        width: 50%;
    }
}

@media (max-width:768px){
    .main .work2{
        width: 33.33333333333333%;
    }
}

@media (max-width:520px){
    .main .work2{
        width: 50%;
    }
}

@media (max-width:420px){
    .main .work2{
        width: 50%;
    }
}

@media (max-width:550px){.main .work{ width: 50%;}}