

.container {
    position: relative;
    width: 99%;
    margin: 40px auto;
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    align-items: center;
    margin-bottom: -10px;
}

.container .card {
    position: relative;
    /*ALTO DEL CARD O foto DE LA IMAGEN*/
    height: 270px;
    width: 210px; 
    cursor: pointer;
    transform-style: preserve-3d;
    
}

.container .card img {
/* position: absolute;*/
    /*ALTO DEL CARD O CONTENEDOR DE LA IMAGEN*/
    width: 90%;
    height: 70%;border-radius: 8px;
}

.container .card b {
    position: absolute;
    /*ANCHO DEL CONTENEDOR DEL TEXTO*/
    width: 190px;
    bottom: 0;
    /*POOSICION DEL CONTENEDOR DEL TEXTO*/
    left: 50%;
    transform: translateZ(10px) translateY(-94%) translateX(-50%);
    text-decoration: none;
    font-size: 12px;
    font-family: sans-serif;
    color: #d8c48f;
    font-weight: 600;
    background-color: #235038; 
    opacity: 0.9;
    padding: 12px 12px;
    text-align: center;
    transition: all .3s ease;
    border-radius: 8px;
}


/***
***/


/*On Hover Effect*/

.container .card:hover { 
    border-radius: 8px;
}

.container .card:hover img {
    border-radius: 8px;
}

.container .card:hover b {
    transform: translateZ(05px) translateY(-96%) translateX(-50%);
    background-color: rgb(36, 69, 120);
   
}

.container .card b:hover { 
    background-color: rgb(72, 62, 7);
    opacity:1;
    border-radius: 4px; opacity: 0.8;
}


/*media query*/

@media screen and (max-width:1000px) {

.container{
margin-left: 0;

    }


    .container .card {
        /*SEPARACION VERTICAL DE LOS CARD POR FILA*/
        margin-top: -14px; 

        height: 220px;
        /*ANCHO DEL CONTENEDOR DE LA IMAGEN*/
            width: 165px;
    }

        .container .card b {
            position: absolute;
            /*ANCHO DEL CONTENEDOR DEL TEXTO*/
            width: 155px;  
        padding: 8px 12px;
        }
}