/*
 .img-1-1 {
    background-image: url('../img/b1.JPG');
    background-size: cover;
    padding: 0;
    height: 460px;
    background-position: center center;
  }
*/


/* imagenes de col */

.img-1-1 {
    background-image: url('../new-img/macetas_new.jpg');
    background-size: cover;
    padding: 0;
    height: 450px;
    background-position: center center;
}

.img-1-2 {
    background-image: url('../img/baldosas_new.jpg');
    background-size: cover;
    padding: 0;
    height: 450px;
    background-position: center center;
}

.img-1-floreros {
    background-image: url('https://www.frayangelicoceramicas.com/floreros-ceramica/floreros1.jpg');
    background-size: cover;
    padding: 0;
    height: 450px;
    background-position: center center;
}

.img-1-urnas {
    background-image: url('../urnas-funerarias/urnas-funerarias1.jpg');
    background-size: cover;
    padding: 0;
    height: 450px;
    background-position: center center;
}


/* galeria de imagenes */

.galeria {
    width: 90%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 300px;
    grid-gap: 10px;
}

.galeria img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: all 0.5s;
}

.galeria img:hover {
    transform: scale(1.02);
}


/* Estilos para las distintas tarjetas */

figure:nth-child(3) {
    grid-column-start: span 3;
}

figure:nth-child(6) {
    grid-row-start: span 3;
}

figure:nth-child(9) {
    grid-column-start: span 3;
}


/* Formato para los títulos */

figure {
    position: relative;
}

figcaption {
    position: absolute;
    bottom: 0;
    width: 100%;
    color: #fff;
    background: linear-gradient(rgba(255, 255, 255, 0), rgba(0, 0, 0, 1));
    padding: 1px;
}

figcaption h2 {
    color: #fff;
    font-size: 12px;
}


/* Estilos para la ventana modal */

.modal {
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    position: fixed;
    top: 0;
    left: 0;
    display: none;
}

.modal-contenido {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.modal-imagen {
    max-width: 100%;
    max-height: 100%;
}

.modal-boton {
    position: absolute;
    color: #fff;
    font: bold 2em;
    top: 50px;
    right: 150px;
    background: #ff0000;
    width: 50px;
    height: 50px;
    padding: 15px;
    text-align: center;
    border-radius: 50%;
    cursor: pointer;
}

.modal-visible {
    display: block;
}


/* Media Query */

@media(min-width: 1024px) {
    .galeria {
        grid-template-columns: repeat(4, 1fr);
    }
    figure:nth-child(1) {
        grid-column-start: span 2;
    }
    figure:nth-child(3) {
        grid-column-start: span 1;
    }
    figure:nth-child(4) {
        grid-row-start: span 2;
    }
    figure:nth-child(5) {
        grid-column-start: span 2;
    }
    figure:nth-child(7) {
        grid-column-start: span 2;
    }
    figure:nth-child(9) {
        grid-column-start: span 4;
    }
}