@charset "utf-8";
/* CSS Document */
 /*Estilos de la galeria*/

.container_galeria {
  width: 100%;	
  /*max-width: 1000px;*/
  margin: 5% auto;
  padding: 10px;
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-sizing: border-box;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.4);
}


.text-center {
  text-align: center;
  margin-bottom: 1em;
}

.lightbox-gallery {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1em;	
}

.lightbox-gallery div > img {
  width: 100%;
  height: 10em;	
  max-width: 100%;
  display: block;
  cursor: pointer;
}

.lightbox-gallery div {
  margin: 4px;
  flex-basis: 180px;
}



/*Lighbox CSS*/

.lightbox {
	
  height: 100vh; /* Cubre toda la altura visible */    
  z-index: 2000; /* Valor alto para estar por encima de todo */
  justify-content: center;
  align-items: center;	
  display: none;
  width: 100%;  
  background-color: rgba(0, 0, 0, 0.7);
  position: fixed;
  top: 0;
  left: 0;  
  margin-top: 5em;	
  padding-top: 30px;
  box-sizing: border-box;  
}

.lightbox img {
   background-color: white;
    padding: 10px;
    border-radius: 8px;
    z-index: 1001; /* Un poco más alto que el overlay */
	
	width: 70%;
    /*height: auto;	*/
	
    max-width: 90%;
    max-height: 80vh;
    overflow: auto; /* Para scroll si el contenido es grande */
 	
  display: block;
  margin: auto;
}

.lightbox .caption {
  margin: 15px auto;
  width: 50%;
  text-align: center;
  font-size: 1em;
  line-height: 1.5;
  font-weight: 700;
  color: #eee;
}

.github-link {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
}

.github-link:hover,
.github-link:active,
.github-link:visited {
  color: #fff;
  text-decoration: none;
}


@media only screen and (max-width: 768px) {
	
	.container{
		width: 96%;
	}
  
	.cuerpo{
		width: 100%;
		padding: 0;
		margin: 0;
	}
	
	.cuerpo a{
		margin-top: 1em;
	}
	
	.container_galeria{
		padding: 0 0 1em 0;
		margin: 0; 
	}
	
	 .lightbox-gallery div  {
       float: left; /* Flota la imagen a la izquierda */
	   flex-basis: 40%; 
	   height: 8em; 
	    margin-right: .2em;		
     }
	
.lightbox-gallery div > img {
  width: 90%;
  height: 8em;	
  
}	
   .lightbox-gallery::after {
     content: "";
     display: table;
     clear: both;
    }
	
	.lightbox img {
      width: 100%;      	
	}
	.texto-info h2{
	  font-size: 1em;	
	}
	
	.parrafos{
		width: 100%;
		display: block;
		margin: 0;
		padding: 0;		
		padding-right: 2em;
	}

	.derecho{
		padding: 2em;
		width: 100%;
		height: 8em;		
	}
	
	.derecho .textos{
		font-family: Baskerville, "Palatino Linotype", Palatino, "Century Schoolbook L", "Times New Roman", "serif";
		font-size: 1.2em;
	}
	
}

