﻿
/* Image Box Style */
.hover-boxes .box {
	cursor: pointer;
	/* height: 200px; */
	float: left;
	position: relative;
	overflow: hidden;
	width: 100%;
    margin-bottom: 15px;
}
.hover-boxes .box img {
	position: relative;
	left: 0;
		-webkit-transition: all 300ms ease-out;
		-moz-transition: all 300ms ease-out;
		-o-transition: all 300ms ease-out;
		-ms-transition: all 300ms ease-out;	
	transition: all 300ms ease-out;
    max-width: 100%;
    max-height: 100%;
    width: 100%;
}

/* Caption Common Style */
.hover-boxes .box .caption {
	background-color: rgba(0,0,0,0.8);
	position: absolute;
	color: #fff;
	z-index: 100;
		-webkit-transition: all 300ms ease-out;
		-moz-transition: all 300ms ease-out;
		-o-transition: all 300ms ease-out;
		-ms-transition: all 300ms ease-out;	
		transition: all 300ms ease-out;
	left: 0;
}


/** Caption 3: Fade **/
.hover-boxes .box .fade-caption, .hover-boxes .box .scale-caption  {
	opacity: 0;
	width: 100%;
	height: 100%;	
	text-align: left;
	padding: 15px;
}

/** Caption 6: Scale **/
 .hover-boxes .box .scale-caption h3 {
     margin-top: 0px;
 }

 .hover-boxes .box .scale-caption * {
	position: relative;
	/*width: 100%;*/
	-webkit-transition: all 300ms ease-out;
	-moz-transition: all 300ms ease-out;
	-o-transition: all 300ms ease-out;
	-ms-transition: all 300ms ease-out;	
	transition: all 300ms ease-out;

    -webkit-transform: translateX(-105%);
    -moz-transform: translateX(-105%);
    -o-transform: translateX(-105%);            
    transform: translateX(-105%);
}

 .hover-boxes .box .title { 
    background-color: rgba(0,0,0,0.8);
    color: #fff; 
    text-transform: uppercase;
    padding: 15px; 
    
    position: absolute; 
    bottom: 0px;
    left: 0px; 
    right: 0px;
    text-align: center;

	-webkit-transition: all 300ms ease-out;
	-moz-transition: all 300ms ease-out;
	-o-transition: all 300ms ease-out;
	-ms-transition: all 300ms ease-out;	
	transition: all 300ms ease-out;

 }

 .hover-boxes .box .scale-caption h3 {
	-webkit-transition-delay: 300ms;
	-moz-transition-delay: 300ms;
	-o-transition-delay: 300ms;
	-ms-transition-delay: 300ms;	
	transition-delay: 300ms;
}

 .hover-boxes .box .scale-caption p {
	-webkit-transition-delay: 500ms;
	-moz-transition-delay: 500ms;
	-o-transition-delay: 500ms;
	-ms-transition-delay: 500ms;	
	transition-delay: 500ms;
}

 .hover-boxes .box .scale-caption ul {
	-webkit-transition-delay: 700ms;
	-moz-transition-delay: 700ms;
	-o-transition-delay: 700ms;
	-ms-transition-delay: 700ms;	
	transition-delay: 700ms;
}

.hover-boxes .box:hover .title {
    -webkit-transform: translateX(210%);
    -moz-transform: translateX(210%);
    -o-transform: translateX(210%);
    transform: translateX(210%);
}

/** Fade Caption :hover Behaviour **/
 .hover-boxes .box:hover .fade-caption,  .hover-boxes .box:hover .scale-caption  {
	opacity: 1;
}

/** Scale Caption :hover Behaviour **/
.hover-boxes .box:hover img {
	-moz-transform: scale(1.4);
	-o-transform: scale(1.4);
	-webkit-transform: scale(1.4);
	transform: scale(1.4);
}

.hover-boxes .box:hover .scale-caption * {
    -webkit-transform: none;
    -moz-transform: none;
    -o-transform: none;            
    transform: none;
}

 @media (max-width: 797px) {
     .hover-boxes.box .title { display: none; }
      .hover-boxes .box .scale-caption * {
        -webkit-transform: none;
        -moz-transform: none;
        -o-transform: none;            
        transform: none;
    }
 }

 @media (min-width: 798px) {
     .hover-boxes .box .caption {     top: 0; }
 }