/* 
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
*/


.elementor-widget-container {list-style-type: none}

.post-cards-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    grid-gap: 0.5em;
	grid-row-gap: 0; 
    grid-template-areas:
        "a a b"
        "a a c";
    width: 100%;
	 height: 400px; 
}



.post-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #ccc;
    padding: 0;
    margin: 0.5em;
	width: 100%;
    position: relative;
    transition: all 0.25s ease;
    cursor: pointer;
    font-family: "helvetica condensed";
    font-weight: 700;
}

.post-card:hover {
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2); /* Aumentar el tamaño y la opacidad de la sombra al pasar el mouse */
}
.post-image {
        position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    margin-bottom: 0;
}

.post-content {
    text-align: center;
    z-index: 100;
    width: 100%;
    align-self: end; /* Alinear el contenido en la parte inferior */
	display: flex; /* Activar el modelo de caja flexible */
    flex-direction: column; /* Alinear los elementos en columnas */
  justify-content: flex-end; /* Alinear los elementos en la parte inferior */
	
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; 
    
}


    
.post-content:after {
    content: "";
    position: absolute;
    bottom: 0;  /* Alinea el gradiente en la parte inferior de la tarjeta */
    left: 0;
    width: 100%;
    height: 50%; /* Cubre solo la mitad inferior de la tarjeta */
    background: linear-gradient(to top, rgba(0, 0, 0, 1), rgba(255, 255, 255, 0));  /* Invierte el gradiente de abajo hacia arriba */
    z-index: 50; 
}

.post-content h2 {
	color: #fff;
    z-index: 100;
    font-size: 2em;
    line-height: 1.1em;
    text-shadow: 1px 1px 5px #000000;
    align-self: end;
    bottom: 0;
    font-family: 'Helvetica condensed';
    font-weight: bold;
    text-align: start;
    margin-bottom: 0.05em;
    padding-left: 20px;
    padding-right: 20px;
}
.post-content a {
	color:#fff;
	z-index: 100;
}

.post-content h2:hover {color:#bb0000;}
.post-meta {
   color:#fff;	
	font-family: helvetica;
	font-weight: 300;
    align-self: start;
    z-index: 100;
    font-size: 14px;
    padding-left: 20px;

	
}
.post-area-a {
    grid-area: a;
}

.post-area-b {
    grid-area: b;
}

.post-area-c {
    grid-area: c;
}

.post-area-b .post-content h2,
.post-area-c .post-content h2 {
        font-size: 1.5em; /* Asignar tamaño de fuente más pequeño a las áreas B y C */
	padding-left: 10px;
    padding-right: 10px;
    }
.post-area-b .post-content .post-meta,
.post-area-c .post-content .post-meta {
	font-size: 12px;
    padding-left: 10px;
	margin-bottom: 0.03em;
}


@media only screen and (max-width: 768px) {
    .post-cards-container {
        display:contents;
    }
	.post-content {
        height: 230px; /* Altura fija para vista móvil */
        
    }

    .post-content h2 {
        font-size: 1.5em; /* Tamaño de fuente de h2 en 1.5em en vista móvil */
    }


}