/* Shared editorial presentation, using the existing Madrid palette. */
body h1,body h2,body h3,body h4,body h5,body h6{font-weight:700!important;hyphens:none;word-break:normal}
.elementor .elementor-post__read-more{font-family:Verdana,sans-serif!important;font-weight:700!important}
.elementor-element-18088e5 .elementor-heading-title{text-shadow:none!important;-webkit-text-stroke:0!important;font-family:Verdana,sans-serif!important;hyphens:none!important}
.elementor-widget-theme-post-content>.elementor-widget-container>h2:first-child{margin-top:8px}
.elementor-social-icon-x-twitter i::before{content:''!important;display:block;width:1em;height:1em;background:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18.9 2h3.3L15 10.2 23.5 22h-6.7l-5.2-6.8L5.6 22H2.3l7.7-8.8L.5 2h6.9l4.7 6.2L18.9 2ZM17.7 20h1.8L6.3 3.9H4.4L17.7 20Z'/%3E%3C/svg%3E") center/contain no-repeat}
.ubdem-team-grid .elementor-image-box-wrapper{display:grid!important;grid-template-columns:160px minmax(0,1fr);align-items:start;gap:28px;text-align:left!important}
.ubdem-team-grid .elementor-image-box-img img{display:block;width:160px;height:160px;aspect-ratio:1/1;object-fit:cover;object-position:center 25%}
.ubdem-team-grid .elementor-image-box-img{width:160px!important;max-width:none;margin:0!important}
.ubdem-team-grid .elementor-image-box-content{min-width:0}
.ubdem-team-grid .elementor-image-box-title{margin:0 0 12px!important;font:700 22px/1.3 Verdana,sans-serif}
.ubdem-team-grid .elementor-image-box-description{margin:0;font:14px/1.7 Verdana,sans-serif;text-align:left;overflow-wrap:anywhere}
.ubdem-team-grid .elementor-image-box-description p{margin:0 0 12px}
@media(min-width:1025px){
 .elementor-nav-menu--main .ubdem-menu-contact{display:none!important}
 .ubdem-sidebar-host{align-self:stretch!important}
 .ubdem-sidebar-host>.elementor-widget-template,.ubdem-sidebar-host>.elementor-widget-template>.elementor-widget-container,.ubdem-sidebar-host .elementor-template,.ubdem-sidebar-host .elementor-template>.elementor{display:flex;flex-direction:column;flex:1 1 auto;min-height:0;height:auto}
 .ubdem-sidebar-layout{flex:1 0 auto!important;min-height:0!important;height:auto!important}
 .ubdem-sidebar-sticky{z-index:2}
 .ubdem-sidebar-sticky img{max-height:calc(100vh - 155px);width:100%;object-fit:contain}
}
@media(max-width:1024px){
 .elementor-widget-jet-mobile-menu .jet-mobile-menu__container{max-height:100dvh;overflow-y:auto}
 .elementor-widget-search-form input[type=search]{font-size:16px!important}
 .elementor-element-4197847a{width:100%!important;max-width:none!important}
 .elementor-element-4197847a .elementor-search-form__container{min-height:44px}
 .elementor-element-4197847a .elementor-search-form__submit{display:flex!important;align-items:center;justify-content:center;min-width:80px}
 .elementor-element-18088e5{margin-left:16px!important;margin-right:16px!important}
 .elementor-widget-theme-post-content{overflow-wrap:break-word}
 .elementor-widget-theme-post-content h1,.elementor-widget-theme-post-content h2,.elementor-widget-theme-post-content h3{hyphens:none!important}
}

.ubdem-team-grid{display:flex!important;flex-direction:column!important;width:100%;max-width:1080px;margin-inline:auto;gap:0!important}
.ubdem-team-grid>.e-con{width:100%!important;min-width:0;padding:28px 24px!important}
.ubdem-team-grid>.e-con:nth-child(even){background:#f7f8f3}
@media(max-width:650px){
 .ubdem-team-grid>.e-con{padding:24px 16px!important}
 .ubdem-team-grid .elementor-image-box-wrapper{grid-template-columns:100px minmax(0,1fr);gap:18px}
 .ubdem-team-grid .elementor-image-box-img{width:100px!important}
 .ubdem-team-grid .elementor-image-box-img img{width:100px;height:100px}
 .ubdem-team-grid .elementor-image-box-title{font-size:20px}
}
@media(max-width:480px){
 .ubdem-team-grid .elementor-image-box-wrapper{grid-template-columns:minmax(0,1fr);gap:16px}
 .ubdem-team-grid .elementor-image-box-img{width:128px!important}
 .ubdem-team-grid .elementor-image-box-img img{width:128px;height:128px}
}

/* Desktop sticky navigation: fixed readable size instead of viewport scaling. */
@media(min-width:1025px){header .elementor-element-43c6e01 .elementor-element-d4d24d3 .elementor-nav-menu--main>.elementor-nav-menu>li>a.elementor-item{font-size:14px!important;white-space:nowrap} .ubdem-legacy-zaragoza img,.ubdem-legacy-depositphotos img{max-width:100%;height:auto}}

/* Keep the seven categories on one row on smaller desktop screens. */
@media(min-width:1025px) and (max-width:1199px){
 header .elementor-element-43c6e01 .elementor-element-d4d24d3 .elementor-nav-menu--main>.elementor-nav-menu>li>a.elementor-item{padding-left:2px!important;padding-right:2px!important}
 header .elementor-element-43c6e01 .elementor-element-d4d24d3 .elementor-nav-menu--main .sub-arrow{padding-left:4px;padding-right:0}
 header .elementor-element-43c6e01 .elementor-element-d4d24d3 .elementor-nav-menu--main .sub-arrow svg{width:10px}
}
