/*
Theme Name: Cactus
Theme URI: http://www.cactussenygrafic.com/
Version: 1.0
Description: Plantilla desenvolupada per Cactus
Author: Cactus Seny Grafic
Author URI: https://www.cactussenygrafic.com/
Template: Divi
*/


/** font custom **/
body, p, h1, h2, h3, h4, h5, h6, a, span:not(.ab-icon), li, div, td, th, label, input, textarea, button, .saes {}

.dp-dfg-masonry-ready .dp-dfg-item{    height: fit-content;}

body #page-container .et_pb_section .et_pb_button.button_underline{border-bottom: 1px solid #000 !important; padding-left: 0px !important;border-radius: 0px !important;}
body #page-container .et_pb_section .et_pb_button.button_underline:hover{border-bottom: 1px solid #C03B26 !important;}


body #page-container .et_pb_section .dsm_blog_carousel.button_underline .dsm-readmore-btn{border-bottom: 1px solid #000 !important;padding-left: 0px !important;padding-right: 28px !important;}
body #page-container .et_pb_section .dsm_blog_carousel.button_underline .dsm-readmore-btn:hover{border-bottom: 1px solid #C03B26 !important;}


.entrada_baldo .et-l--post .et_pb_row{width: 100% !important;}

.projectes_home .et_pb_module_inner .dp-dfg-container .dp-dfg-items .dp-dfg-item{position: relative;}
.projectes_home .et_pb_module_inner .dp-dfg-container .dp-dfg-items .dp-dfg-item .dp-dfg-header {position: absolute; bottom: 0; background: rgba(255,255,255,0.8); width: 100%; color: #fff; padding: 10px; box-sizing: border-box; top:0; left: 0; height: 100%; display: flex; align-items: center; justify-content: center; opacity: 0;}
.projectes_home .et_pb_module_inner .dp-dfg-container .dp-dfg-items .dp-dfg-item:hover .dp-dfg-header {opacity: 1; transition: all 0.3s ease-in-out;}


.et-menu .menu-item-has-children>a:first-child:after{display: none !important;}
.et-menu .menu-item-has-children>a:first-child{padding-right: 0px;}

.loop_baldo_projectes .et_pb_module_inner .dp-dfg-container .dp-dfg-items .dp-dfg-item {padding:0 2em}
.loop_baldo_projectes .et_pb_module_inner .dp-dfg-container .dp-dfg-items .dp-dfg-item .dp-dfg-image,
.loop_baldo_projectes .et_pb_module_inner .dp-dfg-container .dp-dfg-items .dp-dfg-item .dp-dfg-overlay{margin:0 -2em}
.loop_baldo_projectes .et_pb_module_inner .dp-dfg-container .dp-dfg-items .dp-dfg-item .et_pb_button_wrapper{order:1; padding-top:0px !important; padding-bottom: 2em;}
.loop_baldo_projectes .et_pb_module_inner .dp-dfg-container .dp-dfg-items .dp-dfg-item .entry-header{padding-top: 2em; padding-bottom:0px;}
.loop_baldo_projectes .et_pb_module_inner .dp-dfg-container .dp-dfg-items .dp-dfg-item .dp-dfg-custom-content{padding:0px}


/* Grid modular para la galería */
.csg_galeria_proyectos_desktop .dsm-filterable-gallery-container.csg-grid-gallery .dsm-filterable-gallery-inner-container.csg-grid-inner {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	grid-auto-rows: var(--csg-row-h);
	grid-auto-flow: dense;
	gap: var(--csg-gap);
	height: auto !important;
	overflow: visible !important;
	position: relative !important;
}

/* Items */
.csg_galeria_proyectos_desktop .dsm-filterable-gallery-container.csg-grid-gallery .dsm-filterable-gallery-item {
	position: relative !important;
	top: auto !important;
	left: auto !important;
	transform: none !important;
	width: auto !important;
	height: auto !important;
	margin: 0 !important;
	opacity: 1 !important;
	visibility: visible !important;
}

/* Horizontal = 1 fila */
.csg_galeria_proyectos_desktop .dsm-filterable-gallery-item.horizontal {
	grid-row: span 1;
}

/* Vertical = 2 filas */
.csg_galeria_proyectos_desktop .dsm-filterable-gallery-item.vertical {
	grid-row: span 2;
}

/* Wrapper */
.csg_galeria_proyectos_desktop .dsm-filterable-gallery-image-wrapper {
	width: 100%;
	height: 100%;
	overflow: hidden;
}

/* Imágenes */
.csg_galeria_proyectos_desktop .dsm-filterable-gallery-image-wrapper img,
.csg_galeria_proyectos_desktop .dsm-filterable-gallery-image-wrapper picture,
.csg_galeria_proyectos_desktop .dsm-filterable-gallery-image-wrapper picture img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
}


.loop_baldo_projectes .et_pb_module_inner .dp-dfg-container .dp-dfg-items .dp-dfg-item .dp-dfg-custom-content p:not(.dp-dfg-cf-descripcio_projecte){
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;

    /* importante para que no sume espacio extra */
    padding-bottom: 0;
    margin-bottom: 0;
}

.et_pb_slides .et_pb_slider_container_inner{vertical-align: bottom;}
.et-pb-active-slide .et_pb_slide_description {
    -webkit-animation-name: none !important;
    animation-name: none !important;
    -webkit-animation-duration: 0s !important;
    animation-duration: 0s !important;
    -webkit-animation-delay: 0s !important;
    animation-delay: 0s !important;
}

/* Tablet */
@media (max-width: 980px) {
	.csg_galeria_proyectos_desktop .dsm-filterable-gallery-container.csg-grid-gallery .dsm-filterable-gallery-inner-container.csg-grid-inner {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Móvil */
@media (max-width: 767px) {
	.csg_galeria_proyectos_desktop .dsm-filterable-gallery-container.csg-grid-gallery .dsm-filterable-gallery-inner-container.csg-grid-inner {
		grid-template-columns: 1fr;
	}
}

@media (min-width: 981px) {
    .entrada_baldo .et_pb_section .et_pb_row .et_pb_column, .entrada_baldo .et-l .et_builder_inner_content .et_pb_section .et_pb_row.et_pb_gutters3 .et_pb_column{
            margin-right: 30px !important; 
    }
    .entrada_baldo .et_pb_section .et_pb_row .et_pb_column_1_2{width: calc(50% - 15px) !important;}
    .entrada_baldo .et_pb_section .et_pb_row .et_pb_column.et-last-child{margin-right: 0px !important;}
    .entrada_baldo .et_pb_section .et_pb_row .et_pb_column .et_pb_image{margin-bottom: 30px !important;}
}

@media (max-width: 650px) {

    
}