.grid {
	margin: 0 auto;
	list-style: none;
	text-align: center;
}

.grid li {
	display: inline-block;
	margin: 0;
	padding: 20px;
	text-align: left;
	position: relative;
}

.grid figure {
	margin: 0;
	position: relative;
}

.grid figure img {
	width: 100%;
	max-width: 100%;
	display: block;
	position: relative;
}

.grid figcaption {
	position: absolute;
	top: 0;
	left: 0;
	padding: 42px 22px;
	background: #506fa8;
	color: #ed4e6e;
}
.mariz{
	left: 75%!important;
}
.grid h1{
	font-size: 20px;
  letter-spacing: 4px;
  color: #70d0c5;
}
.grid figcaption h1 {
	 font-size: 30px;
	 line-height: 2.2rem;
	 margin: 0;
	 padding-bottom: 12px;
	 color: #fff;
	 text-align: center;
	 font-family: 'GothamBook';
	 letter-spacing: 3px;
}

.grid figcaption small {
	letter-spacing: 1px;
	text-align: center;
}
.grid figcaption p {
	text-align: center;
	color: #70d0c5;
	font-family: 'GothamBook';
	font-size: 24px;
}
.p1{
	color: #4d75a9;
  font-size: 16px;
  letter-spacing: 1px;
  line-height: 26px;
}
.p2{
	font-size: 16px;
  letter-spacing: 1px;
  line-height: 26px;
}

.grid figcaption a {
	text-align: center;
	padding: 5px 10px;
	border-radius: 2px;
	display: inline-block;
	color: #f3de3a;
	border-color: #f3de3a;
	border: 1px solid;
}

/* Caption Style 4 */
.cs-style-4 li {
	-webkit-perspective: 1700px;
	-moz-perspective: 1700px;
	perspective: 1700px;
	-webkit-perspective-origin: 0 50%;
	-moz-perspective-origin: 0 50%;
	perspective-origin: 0 50%;
}

.cs-style-4 figure {
	-webkit-transform-style: preserve-3d;
	-moz-transform-style: preserve-3d;
	transform-style: preserve-3d;
}

.corredor{
	overflow: hidden;
}

.cs-style-4 figure img {
	-webkit-transition: -webkit-transform 0.4s;
	-moz-transition: -moz-transform 0.4s;
	transition: transform 0.4s;
}

.no-touch .cs-style-4 figure:hover img,
.cs-style-4 figure.cs-hover img {
	-webkit-transform: translateX(0%);
	-moz-transform: translateX(0%);
	-ms-transform: translateX(0%);
	transform: translateX(0%);
}

.cs-style-4 figcaption {
	height: 410px;
	width: 25%;
	opacity: 0;
	-webkit-backface-visibility: hidden;
	-moz-backface-visibility: hidden;
	backface-visibility: hidden;
	-webkit-transform-origin: 0 0;
	-moz-transform-origin: 0 0;
	transform-origin: 0 0;
	-webkit-transform: rotateY(-90deg);
	-moz-transform: rotateY(-90deg);
	transform: rotateY(-90deg);
	-webkit-transition: -webkit-transform 0.4s, opacity 0.1s 0.3s;
	-moz-transition: -moz-transform 0.4s, opacity 0.1s 0.3s;
	transition: transform 0.4s, opacity 0.1s 0.3s;
}

.no-touch .cs-style-4 figure:hover figcaption,
.cs-style-4 figure.cs-hover figcaption {
	opacity: 1;
	-webkit-transform: rotateY(0deg);
	-moz-transform: rotateY(0deg);
	transform: rotateY(0deg);
	-webkit-transition: -webkit-transform 0.4s, opacity 0.1s;
	-moz-transition: -moz-transform 0.4s, opacity 0.1s;
	transition: transform 0.4s, opacity 0.1s;
}

.cs-style-4 figcaption a {
	position: absolute;
	bottom: 20px;
	left: 75px;
	right: 75px;
}

@media (max-width: 980px) {
	.grid figcaption h1 {
		font-size: 2rem;
    line-height: 0;
    margin-top: 35px;
    margin-bottom: 30px;
	}
	.grid figcaption {
    padding: 15px 0;
    width: 100%;
    height: 100%;
	}
	.grid figcaption p {
    text-align: center;
    color: #70d0c5;
    font-family: 'GothamBook';
    font-size: 22px;
    line-height: 24px;
    margin-top: 8px;
	}
	.cs-style-4 figcaption a {
		position: absolute;
    bottom: 20px;
    left: 5px;
    right: 5px;
	}
	.mariz {
    left: 0%!important;
	}
	.navbar-default .navbar-collapse, .navbar-default .navbar-form {
    border-color: #e7e7e7;
    background-color: #ddd;
    float: right;
    max-height: 250px;
    width: 50%;
	}
	.cs-style-4 hr{
		display: block;
	}
	.grid h1 {
    font-size: 18px;
    letter-spacing: 4px;
    color: #70d0c5;
    padding-bottom: 0px;
    line-height: 1.2;
		margin-bottom: 25px;
	}
	.p1 {
	    color: #4d75a9;
	    font-size: 15px;
	    letter-spacing: 1px;
	    line-height: 26px;
			margin: 0;
	}
	.p2 {
    font-size: 15px;
    letter-spacing: 1px;
    line-height: 24px;
	}
}

@media (min-width: 768px){
	.modal-dialog {
	    padding: 0 100px 0 100px;
			width: auto!important;
	}
	.cs-style-4 hr{
		display: none;
	}
}

@media screen and (max-width: 31.5em) {
	.grid {
		padding: 10px 10px 100px 10px;
	}
	.grid li {
		width: 100%;
		min-width: 300px;
	}
}
