/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 1.0.1
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/*
    Add your custom styles here
*/

.galeriaportfolio {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    padding: 10px;
    width: 100%;
}

.galeriaportfolio a {
    display: block;
    width: 100%;
    position: relative;
    overflow: hidden;
    max-width: calc((100% / 3) - 7px);
    margin-right: 10px;
    margin-bottom: 10px;
}

.galeriaportfolio a:nth-child(3n) {
    margin-right: 0;
}

.galeriaportfolio a img {
    position: absolute;
    display: block;
    transform: translate(50%, -50%) scale(1);
    top: 50%;
    right: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}




@media screen and (max-width: 580px){

    .galeriaportfolio a {
        max-width: calc((100% / 2) - 7px);
    }

    .galeriaportfolio a:nth-child(3n) {
        margin-right: 10px;
    }

    .galeriaportfolio a:nth-child(2n) {
        margin-right: 0;
    }

}



/* PROYECTOS ARCHIVE */

.post-type-archive-proyectos div.proyectos .elementor-widget-heading {
    transition: 0.4s;
    position: relative;
    z-index: 2;
}

.post-type-archive-proyectos div.proyectos:hover .elementor-widget-heading {
    margin-bottom: 50px;
}

.post-type-archive-proyectos div.proyectos .elementor-widget-heading h2 {
    transition: 0.6s;
}

.post-type-archive-proyectos div.proyectos:hover .elementor-widget-heading h2 {
    font-size: 30px !important;
}

.post-type-archive-proyectos div.proyectos a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    background: rgb(0,0,0);
    background: linear-gradient(0deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 60%);
    opacity: 0;
    width: 100%;
    height: 100%;
    transition: 0.4s;
}

.post-type-archive-proyectos div.proyectos:hover a:after {
    opacity: 1;
}















