@charset "utf-8";
/* CSS Document */

/* CSS Document */
 /*Estilos de la galeria*/

.container_galeria {
  width: 100%;	
  /*max-width: 1000px;*/
  margin: 2% 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: 20em;	
  max-width: 100%;
  border-radius: .5em;	
  display: block;
  cursor: pointer;
}

.lightbox-gallery div {
  margin: 4px;
  flex-basis: 290px;
}



/*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;  
  box-sizing: border-box;	
  /*height: 100%;	
  z-index: 20;*/	
}

.lightbox img {
	
   background-color: white;    
    border-radius: 8px;
    z-index: 2001; /* Un poco más alto que el overlay */
	
	width: 80%;
    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) {
  
	.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: auto; 
	    margin-right: .2em; 	   
		
     }
	
   .lightbox-gallery::after {
     content: "";
     display: table;
     clear: both;
    }
	
	.lightbox img {
      width: 100%;      	
	}
}



