:root{

	--paneles:rgb(255, 255, 255);
	--font:rgb(0, 0, 0);
	--hover:#20e3b28e;
	--nav:rgb(255, 255, 255);
	--formulario:#fff;
	--Bordes:#8d8d8d;
}

.galeria{
    font-family:sans-serif;
    grid-area: galeria;
	background: var(--paneles);
	box-shadow: 0px 0px 70px rgba(0, 0, 0, 0.552);
	padding: 5%;
	border-radius: 20px;
	
}

.galeria h1{
    text-align: center;
    margin: 20px 0 15px 0;
    font-weight: 300;
    font-size: 50px;
    font-family: 'calibri';
    color: var(--font);
}


.contenedor-imagenes-galeria{
    border-radius: 20px;
    display: flex;
    width: 85%;
    margin: auto;
    justify-content: space-around;
    flex-wrap: wrap;
    border-radius: 3px;
}

.contenedor-imagenes-galeria .imagen{
    border-radius: 20px;
    background: rgb(0, 0, 0);
    width: 32%;
    position: relative;
    height: 250px;
    margin-bottom: 25px;
    box-shadow: 0px 0px 3px 0px rgba(0, 0, 0, .75);
}

.imagen img{
    border-radius: 20px;
    width: 100%;
    height: 100%;
    object-fit: contain;
}


.overlay{
    border-radius: 20px;
    position: absolute;
    bottom: 0;
    left: 0;
    background: var(--hover);
    width: 100%;
    height: 0%;
    transition: .5s ease;
    overflow: hidden;

}

.overlay h3{
    color: white;
    font-size: 30px;
    position: absolute;
    top: 50%;
    left: 50%;
    text-align: center;
    transform:translate(-50%,-50%);
}

.overlay button{
    background: transparent;
    border: none;
    color: white;
    padding-top: 7%;
    margin-left: 10px;
    display: block;
    outline: none;
}

.imagen:hover .overlay{
    height: 100%;
    cursor: pointer;
}

@media screen and (max-width:1000px){
    .contenedor-imagenes-galeria{
        width: 95%;
    }
}

@media screen and (max-width:768px){
    .contenedor-imagenes-galeria{
        width: 90%;
    }
    .contenedor-imagenes-galeria .imagen{
        width: 48%;
    }
}

@media screen and (max-width:550px){
    
    .galeria h1{
        font-size: 28px;
    }
    .contenedor-imagenes-galeria{
        width: 98%;
    }
    .contenedor-imagenes-galeria .imagen{
        width: 80%;
    }
}




