/*
==================================================
CEPTECO COMPONENTS
Blog v1.0
==================================================
*/

.cepteco-blog-grid{
    display:grid;
    gap:0px;
    margin:0;
    padding:0;
}

.cepteco-blog-grid.cols-1{
    grid-template-columns:1fr;
}

.cepteco-blog-grid.cols-2{
    grid-template-columns:repeat(2,1fr);
}

.cepteco-blog-grid.cols-3{
    grid-template-columns:repeat(3,1fr);
}

.cepteco-blog-grid.cols-4{
    grid-template-columns:repeat(4,1fr);
}

.cepteco-card{
    position:relative;
    overflow:hidden;
    border-radius:0px;
    /*box-shadow:0 12px 35px rgba(0,0,0,.18);*/
    transition:.35s;
}

.cepteco-card:hover{
    /*transform:translateY(-8px);*/
    /*box-shadow:0 22px 50px rgba(31,99,128,.30);*/
}

.cepteco-card a{
    display:block;
    width:100%;
    height:100%;
    text-decoration:none;
    color:#fff;
    cursor: pointer;
}

.cepteco-card-bg{

    position:relative;

    width:100%;
    height:100%;

    background-size:cover;
    background-position:center center;
    background-repeat:no-repeat;

    overflow:hidden;

}

/* Zoom Ken Burns */

.cepteco-image{

    position:absolute;

    inset:0;

    width:100%;
    height:100%;

    object-fit:cover;

    transform:scale(1.03);

    transition:transform 0.5s ease;

}

.cepteco-card:hover .cepteco-image{

    transform:scale(1.12);

}

.cepteco-card:hover .cepteco-content{

    bottom: 40px;

}


/* Overlay */

.cepteco-overlay{

    position:absolute;
    inset:0;

    background:
    linear-gradient(
        to top,
        rgba(0,0,0,.78) 0%,
        rgba(0,0,0,.45) 35%,
        rgba(0,0,0,.10) 70%,
        rgba(0,0,0,0) 100%
    );

    z-index:3;

}

/* Contenido */

.cepteco-content{

    position:absolute;

    left:30px;
    right:30px;
    bottom:30px;

    z-index:5;

    display:flex;
    flex-direction:column;

    justify-content:flex-end;

    text-align:center;
    font-family: 'Roboto',Helvetica,Arial,Lucida,sans-serif;
    transition:all 0.5s ease-in-out;

}

.cepteco-content h3{

    color:#fff;

    font-size:30px;

    line-height:1.15;

    margin:0 0 12px;

    font-weight:700;

}

.cepteco-author{

    color:rgba(255,255,255,.90);

    font-size:14px;

    margin-bottom:18px;
    font-weight: 400;

}

.cepteco-excerpt{

    color:#fff;

    font-size:15px;

    line-height:1.1;
    font-weight: 400;

}

.cepteco-card-bg{

    position:relative;

    width:100%;
    height:100%;

    overflow:hidden;

}

.cepteco-card .et_pb_image_container img,
.cepteco-image{
    height:100% !important;
    width:100% !important;
    object-fit:cover !important;
}


.cepteco-card-new{

    opacity:0;
    transform:translateY(20px);
    transition:.35s ease;

}

.cepteco-card-new.cepteco-show{

    opacity:1;
    transform:translateY(0);

}



/* Tablet */

@media(max-width:980px){

    .cepteco-blog-grid.cols-3,
    .cepteco-blog-grid.cols-4{

        grid-template-columns:repeat(2,1fr);

    }

}

/* Móvil */

@media(max-width:767px){

    .cepteco-blog-grid{

        grid-template-columns:1fr !important;

    }

    .cepteco-content{

        left:22px;
        right:22px;
        bottom:22px;

    }

    .cepteco-content h3{

        font-size:24px;

    }

}