@font-face {
	font-family: 'fontawesome';
	src:url('https://www.uv.mx/celulaode/fonts-c/fontawesome.eot?-e43dk9');
	src:url('https://www.uv.mx/celulaode/fonts-c/fontawesome.eot?#iefix-e43dk9') format('embedded-opentype'),
		url('https://www.uv.mx/celulaode/fonts-c/fontawesome.woff?-e43dk9') format('woff'),
		url('https://www.uv.mx/celulaode/fonts-c/fontawesome.ttf?-e43dk9') format('truetype'),
		url('https://www.uv.mx/celulaode/fonts-c/fontawesome.svg?-e43dk9#fontawesome') format('svg');
	font-weight: normal;
	font-style: normal;
} 
/* General style */
.grid-gallery{ position: relative; /*height: 450px;*/ text-align: center;}
.grid-gallery ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.grid-gallery figure { margin: 0; }
.grid-gallery figure img {
	display: block;
	margin: 48px auto 0; max-width: 80%; max-height: 60%;
}
.grid-gallery figure .imagec img{ max-width: 100%; max-height: auto;}
.imagec{ vertical-align: top; }
.grid-gallery figcaption h3 {
	margin: 0 auto;
	padding: 0;
	width: 100%;
	height: 54px;
	font-size: 1.5em;
}
.grid-gallery figcaption h4 {
	margin:0 auto;
	padding: 30% 0 0;
	width: 100%;
	font-size: 1em;
}
.contenido-figure img{width: 90%}
.grid-gallery figcaption h3:hover{ height: 30%;}
/* Grid style */
.grid-wrap {
	max-width: 69em;
	margin: 0 auto;
	padding: 0 1em;
}
.grid {	margin: 0 auto;}
.grid li {
	/*position: absolute;*/
	position: relative;
	cursor: pointer;
	display: inline-block; vertical-align: top;
}
.grid figure {
	-webkit-transition: opacity 0.2s;
	transition: opacity 0.2s;
	height: 100%;
	
}
.grid li:hover figure {	opacity: 0.9; }
.grid figcaption {
	padding: 0;
	width: 120px;
	height: 255px;
	text-align: center;
	margin: 0 auto;
}
.grid h3{ font-size: 16px; }
/* Slideshow style */
.slideshow {
	position: fixed;
	background: rgba(0,0,0,0.6);
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	z-index: 10000;
	opacity: 0;
	visibility: hidden;
	overflow: hidden;
	-webkit-perspective: 1000px;
	perspective: 1000px;
	-webkit-transition: opacity 0.5s, visibility 0s 0.5s;
	transition: opacity 0.5s, visibility 0s 0.5s;
}
.slideshow-open .slideshow {
	opacity: 1;
	visibility: visible;
	-webkit-transition: opacity 0.5s;
	transition: opacity 0.5s;
}
.slideshow ul {
	width: 100%;
	height: 100%;
	-webkit-transform-style: preserve-3d;
	transform-style: preserve-3d;
	-webkit-transform: translate3d(0,0,150px);
	transform: translate3d(0,0,150px);
	-webkit-transition: -webkit-transform 0.5s;
	transition: transform 0.5s;
	display: flex;
	align-items:center;
}
.slideshow ul.animatable li {
	-webkit-transition: -webkit-transform 0.5s;
	transition: transform 0.5s;
}
.slideshow-open .slideshow ul {
	-webkit-transform: translate3d(0,0,0);
	transform: translate3d(0,0,0);
}

.slideshow li {
	min-height: 300px;
	max-height: 560px;
	width: 600px;
	height: 100%;
	position: absolute;
	left: 50%;
	margin-left: -300px;
	visibility: hidden;
}
.slideshow li.show {visibility: visible;}
.slideshow li:after {
	content: '';
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	background: rgba(255,255,255,0.8);
	-webkit-transition: opacity 0.3s;
	transition: opacity 0.3s;
}
.slideshow li.current:after {
	visibility: hidden;
	opacity: 0;
	-webkit-transition: opacity 0.3s, visibility 0s 0.3s;
	transition: opacity 0.3s, visibility 0s 0.3s;
}
.current .contenido-figure .texto  li {
    list-style: inside;
    height: auto;
    left: 0;
    margin: 0;
    position: relative;
    top: 0;
    visibility: visible;
    width: auto;
    opacity: 1;
}
.contenido-figure .texto > li::after {
    height: 0;
    width: 0;
}
.slideshow figure {
	width: 100%;
	height: 100%;
	background: #fff;	
	overflow: hidden;
	overflow-y:scroll; 
}
.slideshow figcaption {
	height: 100%;
	overflow: scroll;
	overflow-x: hidden;
	padding-bottom: 20px;
	display: table;
	padding-top: 66px;

}
.slideshow figcaption h3 {
	font-weight: 300;
	font-size: 200%;
}
/* Navigation */
.slideshow nav {
    position: absolute;
    top: 0;
    width: 719px;
    left: 50%;
    margin-left: -360px;
    height: 100%;
    display: flex;
    align-items:center;
}
.slideshow nav span {
	/*position: fixed;*/
	position: absolute;
	z-index: 1000;
	color: #fff;
	text-align: center;
	padding: 0 1%;
	cursor: pointer;
	font-size: 5.2em;
	line-height: 0;
}
.slideshow nav span.nav-prev,
.slideshow nav span.nav-next {
	top: 50%;
	-webkit-transform: translateY(-50%);
	transform: translateY(-50%);
}
.slideshow nav span.nav-next {right: 0;}
.slideshow nav span.nav-prev{ left: 0;}
.slideshow nav span.nav-close {
	top: 20px;
	right: 35%;
	padding: 0;
	color: #31373a;
}
.contenedor-botones{
    min-height: 300px;
    max-height: 560px;
    height: 100%;
    position: absolute;
    width: 719px;
}
.icon:before,
.icon:after {
	font-family: 'Source Code Pro', monospace;
	speak: none;
	font-style: normal;
	font-weight: bold;
	font-variant: normal;
	text-transform: none;
	line-height: 1;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
span.nav-prev:before {
	content: "<";
}
span.nav-next:before  {
	content: ">";
}
span.nav-close:before {
	content: "x";
}
span.nav-close::before {
    color: #fff;
    font-size: 0.35em;
    
}
/* Info on arrow key navigation */
.info-keys {
	position: fixed;
	top: 10px;
	left: 10px;
	width: 60px;
	font-size: 8px;
	padding-top: 20px;
	text-transform: uppercase;
	color: #fff;
	letter-spacing: 1px;
	text-align: center;
}
.info-keys:before,
.info-keys:after {
	position: absolute;
	top: 0;
	width: 16px;
	height: 16px;
	border: 1px solid #fff;
	text-align: center;
	line-height: 14px;
	font-size: 12px;
}
.info-keys:before {
	left: 10px;
	content: "\e603";
}
.image-float{ float: right; margin: 0  0 1em 1em; }
.info-keys:after {
	right: 10px;
	content: "\e604";
}
.contenido-figure{ padding: 0 2em; text-align: left;}
/*
.grid li:nth-child(2){ top: 0; left: 0; width: 33.33%; height: 50%; }
.grid li:nth-child(3){ top: 0; left: 33.33%; width: 33.33%; height: 50%;}
.grid li:nth-child(4){ top: 0; left: 66.66%; width: 33.33%; height: 50%; }
.grid li:nth-child(5){ top: 50%; left: 0; width: 33.33%; height: 50%; }
.grid li:nth-child(6){ top: 50%; left: 33.33%; width: 33.33%; height: 50%; }
.grid li:nth-child(7){ top: 50%; left: 66.66%; width: 33.33%; height: 50%; }
*/
.grid li:nth-child(2) figcaption{ background: url("../img/tema-1/1.png") no-repeat; background-size: 120px; }
.grid li:nth-child(3) figcaption{ background: url("../img/tema-1/2.png") no-repeat; background-size: 120px; }
.grid li:nth-child(4) figcaption{ background: url("../img/tema-1/3.png") no-repeat; background-size: 120px; }
.grid li:nth-child(5) figcaption{ background: url("../img/tema-1/4.png") no-repeat; background-size: 120px; }
.grid li:nth-child(6) figcaption{ background: url("../img/tema-1/5.png") no-repeat; background-size: 120px; }
.grid li:nth-child(7) figcaption{ background: url("../img/tema-1/6.png") no-repeat; background-size: 120px; }

.contenido-figure p b{ color: #8C0D14  }


.slideshow ul li h2{ background: #8C0D14; color: #fff; height: 30px; padding: 15px; width: 100%; position: absolute; top: -1px; z-index: 1; }
ul.texto{ height: auto;}

.slideshow nav span.nav-close {
    right: 60px;
    top: -15px;
}


@media screen and (max-width: 710px) {
	
	.slideshow li {
		width: 100%;
		height: 100%;
		top: 0;
		left: 0;
		margin: 0;
		max-height: 100%;
	}
	.contenedor-botones, .slideshow nav{ width: 100%; margin: 0; left: 0; }
	.icon:before, .icon:after {
    color: #000;}
	.slideshow li figure img {
		width: auto;
		margin: 0 auto;
		max-width: 100%;
	}
	.slideshow nav span,
	.slideshow nav span.nav-close {
		font-size: 3.5em;
		padding: 0em;
		color: #ccc;
	}
	.info-keys { display: none; }
	.slideshow nav span.nav-close { right: 15px; }
	.slideshow figure{ padding-left: 0; }
	.contenedor-botones{ max-height: 100%;}
	.slideshow nav span.nav-close{ top: -5px; }

}

@media screen and (max-width: 35em) {
	.grid-gallery figure img{ margin: 4px auto 0; max-height: 60px; }
	
}
@media screen and (max-width: 24em) {
	.grid-gallery{ height: auto; }
	.grid-gallery figure img{ max-height: 60px; margin: 4px auto 0; }
	.grid li {width: 100%; height: 20%; left: 0; }
	
}