@charset "utf-8";
/* CSS Document */
body {
	background-color: #444;
	margin: 0;
	font-family: monospace;
}
h1 {
	text-align: center;
}



/* =====================================
ESTILOS DE LA GALERÍA 
=======================================*/

/*.galeria {
	margin: auto;
	width: 90%;
	list-style: none;
	padding: 20px;
	box-sizing: border-box;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-around;
}
*/
/*
.galeria li {
	margin: 5px;
}
*/
.galeria img {
	height: 100px;
	width: 150px;
	object-fit: cover; /*esta propiedad recorta la imagen a las medidas especificadas sin distorcionarla*/
	filter: brightness(70%); /* quitamos algo de brillo */
	cursor: pointer;
	animation: escalar 1.5s infinite alternate;
}

.galeria img:hover {
	filter: brightness(100%); /* todo el brillo */	
}


/* =====================================
ESTILOS DEL MODAL 
=======================================*/
/* a continuación el modal aprace con transición */
.modal {
	opacity: 0;
	display: none;
	z-index: 100;
}
.modal:target {
	opacity: 1;
	position: fixed;
	transition: all 0.5s;
	background: rgb(0,0,0,0.8);
	top: 0;
	left: 0;
	height: 100%;
	width: 100%;
	display: inline;
}
.nombre_foto {
	text-align: center;
	width: 100%;
	margin-top: 50px;
	font-size: 16px;
	font-weight: bold;
	color: #FFF;
	margin-bottom: 0px;
}
/* en el siguiente caso el modal aparece de golpe

.modal {
	display: none;
}
.modal:target {
	display: block;
	position: fixed;
	background: rgb(0,0,0,0.8);
	top: 0;
	left: 0;
	height: 100%;
	width: 100%;

}
*/ 
.modal h3 {
	color: #FFF;
	font-size: 20px;
	text-align: center;
	margin: 15px 0;
}
.imagen {
	height: 50%;
	width: 100%;
	display: flex;
	justify-content:center; /* se alinean horizontalmente */
	align-items: center;/* se alinean verticalmente */
}
.imagen a {
	font-size: 30px;
	color: #FFF;
	text-decoration: none;
	margin: 0 10px;
}
.imagen a:nth-child(2) { /* la segunda etiqueta a (la foto) */ 
	margin: 0px;
	height: 100%;
	flex-shrink: 2;
}
.imagen img {
	width: 460px;
	max-width: 100%;
	border: 7px solid #FFF;
	box-sizing: border-box;
}

.cerrar {
	background-color: #999;
	float: right;
	height: 30px;
	width: 30px;
	z-index: 50;
	font-family: sans-serif;
	font-size: 24px;
	color: #FFF;
	text-align: center;
	border-radius: 50%;
	line-height: 30px;
	font-weight: bold;
	border: 2px solid #FFF;
	box-shadow: 3px 3px 3px #333;
	top: 10px;
	position: relative;
	right: 15%;
}


/*=================================
= PANTALLA DE MÓVIL PEQUEÑO =  EXTRA SMALL (xs)
=================================*
/* Diseño móvil: 480 px e inferior. */

.MOVIL {}

.galeria {
	margin: auto;
	width: 100%;
	list-style: none;
	padding: 2px;
	box-sizing: border-box;
	text-align: center;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-around;
}

.galeria img {
	height: 39px;
	width: 58px;
}

.galeria li {
	margin: 2px;
}
.caja_cerrar {
	background-color: #F63;
	width: 100%;
	text-align: right;
	margin-right: auto;
	margin-left: auto;
}

.FINAL MOVIL {}

/*=================================
= PANTALLA DE PHONES - SMALL (sm) =
=================================*
/* Diseño móvil: de 414 px a 767 px. Hereda estilos de: Diseño móvil. */
@media only screen and (min-width: 414px) {
	
.MOVIL-GRANDE {}
.galeria img {
	height: 50px;
	width: 75px;
}


.FINAL-MOVIL-GRANDE{}
}

/*=================================
= PANTALLA DE TABLET - MEDIUM (md) =
=================================*/
/* Diseño tableta: de 768 px a 991 px. */
@media only screen and (min-width: 768px) {
	
.TABLETA{}
.galeria img {
	height: 60px;
	width: 90px;
}
.caja_cerrar {
	background-color: #F63;
	width: 460px;
	text-align: right;
	margin-right: auto;
	margin-left: auto;
}
.cerrar {
	background-color: #999;
	float: right;
	height: 30px;
	width: 30px;
	z-index: 50;
	font-family: sans-serif;
	font-size: 24px;
	color: #FFF;
	text-align: center;
	border-radius: 50%;
	line-height: 30px;
	font-weight: bold;
	border: 2px solid #FFF;
	box-shadow: 3px 3px 3px #333;
	top: 10px;
	position: relative;
	right: 10px;
}
.FINAL_TABLETA{}
}


/*==============================================
= PANTALLA DE ESCRITORIO MEDIANO - LARGE (lg) =
===============================================*/
/* Diseño escritorio: de 992 px hasta un máximo de 1199 */
@media only screen and (min-width: 992px) {
.ESCRITORIO {}

.FINAL_ESCRITORIO {}
}


/*============================================
= PANTALLA DE ESCRITORIO GRANDE - EXTRA LARGE (xl) =
=============================================*/
/* Diseño escritorio grande: desde 1200 px  */
@media only screen and (min-width: 1200px) {
.ESCRITORIO_GRANDE {}
.galeria img {
	height: 80px;
	width: 120px;
}
.FINAL_ESCRITORIO_GRANDE {}
}