*{
box-sizing: border-box;
}
body{
/*    background:white ;
    margin: 0;
    font-family: monospace;*/
}

.gallery-container{
	display: grid;
	grid-template-columns: repeat(4, 1fr);/* Crea 4 columnas de igual ancho. */
	grid-auto-rows: 100px;
	grid-gap: 3px;/*espacio entre trazas*/
	gap: 3px; /*nuevo estandar sin grid-*/
	padding-top: 0px;
	padding-right: 5px;
	padding-bottom: 0x;
	padding-left: 5px;
}
.gallery__item{
    position: relative;
}

.gallery__item a {
	color: #FFF;
	text-decoration: none;
}

.gallery__item a:hover {
	color: #F00;	
}


.gallery__img{
width: 100%;
height: 100%;
object-fit: cover;
}
.gallery__title{
	position: absolute;
	bottom: 0;
	color: white;
	width: 100%;
	background: rgba(0, 0, 0, 0.8);
	margin: 0;
	padding: 10px;
	font-size: 2em;
	
}



.gallery__item:nth-child(1){
    grid-column-start: span 2 ; /*Ocupa 2 Columnas* de 4 */
	grid-row-start: span 4; /*Ocupa 2 Filas*/
}

.gallery__item:nth-child(2){
    grid-column-start: span 1 ; /*Ocupa 2 Columnas* de 4 */
	grid-row-start: span 4; /*Ocupa 2 Filas*/
}

.gallery__item:nth-child(3){
   
	grid-row-start: span 2; /*Ocupa 2 Filas*/
}

.gallery__item:nth-child(4){
    grid-column-start: span 1 ; 
	grid-row-start: span 2; /*Ocupa 2 Filas*/
}
.gallery__item:nth-child(5){
    grid-column-start: span 1 ; 
	    grid-row-start: span 3;
    
}
.gallery__item:nth-child(6){
    grid-column-start: span 2;
    grid-row-start: span 3;
}
.gallery__item:nth-child(7){
    grid-column-start: span 1;
    grid-row-start: span 3;
}

@media screen and (max-width:1000px) {
    
	 .gallery-container{
      
        grid-template-columns: repeat(3, 1fr); /* Cambia a 3 columnas en pantallas más pequeñas. */
 
    }
    .gallery__item:nth-child(1){
        grid-row-start: span 2 ; 
    }
    .gallery__item:nth-child(2){
        grid-row-start: span 3 ; 
    }
    .gallery__item:nth-child(5){

        grid-row-start: span 2;
    }
    .gallery__item:nth-child(6){
        grid-column-start: span 2;
        grid-row-start: span 3;
    }
    .gallery__item:nth-child(7){
        grid-row-start: span 2;
        
    }

}
@media screen and (max-width:600px) {
    .gallery__item:nth-child(1){
        grid-column-start: span 3 ; 
    }
    .gallery__item:nth-child(2){
        grid-column-start: span 3 ; 
		 grid-row-start: span 2 ;
    }
	 .gallery__item:nth-child(3){
        grid-column-start: span 3 ; 
    }
    .gallery__item:nth-child(4){
        grid-column-start: span 3 ; 
    }
    .gallery__item:nth-child(5){
        grid-column-start: span 3 ; 
        grid-row-start: span 2;
    }
    .gallery__item:nth-child(6){
        grid-column-start: span 3;
        grid-row-start: span 2;
    }
    .gallery__item:nth-child(7){
        grid-column-start: span 3;
		  grid-row-start: span 2;
        
    }
}
