/* Energy Bartar v0.9.132 — Dabestan staff mobile final QA */

@media (max-width:767px){
  /* On the staff directory only, the sticky Blocksy header was repeatedly covering
     names/photos during normal scrolling. Keep the same header design but let it
     participate in document flow on this one page. */
  body.eb-team-listing-page #header,
  body.eb-team-listing-page #header.ct-header,
  body.eb-team-listing-page #header [data-device="mobile"],
  body.eb-team-listing-page #header [data-device="mobile"] [data-row],
  body.eb-team-listing-page #header [data-device="mobile"] .ct-container{
    position:relative!important;
    inset:auto!important;
    top:auto!important;
    right:auto!important;
    bottom:auto!important;
    left:auto!important;
    transform:none!important;
    translate:none!important;
    animation:none!important;
  }
  body.eb-team-listing-page #header{
    z-index:50!important;
  }

  /* Canonical mobile staff cards: one stable photo rail on every card. */
  body.eb-team-listing-page .eb07-team-grid{
    gap:11px!important;
  }
  body.eb-team-listing-page .eb07-team-card,
  body.eb-team-listing-page .eb07-team-card.is-orphan{
    min-height:168px!important;
    grid-template-columns:124px minmax(0,1fr)!important;
    align-items:stretch!important;
  }
  body.eb-team-listing-page .eb07-team-photo{
    width:124px!important;
    min-width:124px!important;
    height:100%!important;
    min-height:168px!important;
    align-self:stretch!important;
    background:#eef4f0!important;
  }
  body.eb-team-listing-page .eb07-team-photo img,
  body.eb-team-listing-page .eb07-team-photo .ebip-media-img{
    width:100%!important;
    height:100%!important;
    min-height:168px!important;
    object-fit:cover!important;
    object-position:var(--eb07-person-pos,center 28%)!important;
    transform:scale(var(--eb07-person-scale,1))!important;
    transform-origin:center 28%!important;
  }
  body.eb-team-listing-page .eb07-team-photo-fallback{
    width:100%!important;
    height:100%!important;
    min-height:168px!important;
  }
  body.eb-team-listing-page .eb07-team-body{
    min-height:168px!important;
    padding:11px 12px 10px!important;
  }
  body.eb-team-listing-page .eb07-team-body h3{
    font-size:15px!important;
    line-height:1.55!important;
  }
  body.eb-team-listing-page .eb07-team-body p{
    font-size:10.8px!important;
    line-height:1.78!important;
  }

  /* Legacy/internal template fallback, in case this page is ever switched away from the
     Elementor widget without changing the content source. */
  body.eb-team-listing-page .ebip-team-card{
    overflow:hidden!important;
  }
  body.eb-team-listing-page .ebip-team-card__photo{
    height:320px!important;
    min-height:320px!important;
    background:#eef4f0!important;
  }
  body.eb-team-listing-page .ebip-team-card__photo .ebip-media-img,
  body.eb-team-listing-page .ebip-team-card__photo img{
    width:100%!important;
    height:100%!important;
    object-fit:cover!important;
    object-position:center 28%!important;
  }
}
