.elementor-3348 .elementor-element.elementor-element-3043aa0{--display:flex;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;}.elementor-widget-text-editor{font-family:var( --e-global-typography-text-font-family ), Sans-serif;font-weight:var( --e-global-typography-text-font-weight );color:var( --e-global-color-text );}.elementor-widget-text-editor.elementor-drop-cap-view-stacked .elementor-drop-cap{background-color:var( --e-global-color-primary );}.elementor-widget-text-editor.elementor-drop-cap-view-framed .elementor-drop-cap, .elementor-widget-text-editor.elementor-drop-cap-view-default .elementor-drop-cap{color:var( --e-global-color-primary );border-color:var( --e-global-color-primary );}.elementor-3348 .elementor-element.elementor-element-eb62201{--display:flex;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;}/* Start custom CSS for html, class: .elementor-element-566bf1b *//* =========================================
   TEAM CARD IMAGE (Qi Team widget)
   - circular image
   - pointer cursor
   - gentle, slower zoom with ease-in-out
   ========================================= */

.qodef-qi-team-member .qodef-m-media-image{
  border-radius: 50%;
  overflow: hidden;                  /* keep circle while zooming */
}

.qodef-qi-team-member .qodef-m-media-image img{
  display: block;
  width: 100%;
  height: auto;
  cursor: pointer;                   /* finger cursor */
  transform-origin: center center;
  transition: transform .45s ease-in-out;  /* slower + ease both ways */
}

.qodef-qi-team-member .qodef-m-media-image:hover img{
  transform: scale(1.06);            /* slight zoom-in */
}


/* =========================================
   FULL-PAGE OVERLAY (stacked layout)
   - 90% white
   - fade in/out (CSS transitions)
   - outside click closes (pointer-events trick)
   - circular image inside overlay
   ========================================= */

.team-overlay{
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.9); /* 90% white */
  /* Fade system: use opacity/visibility, not display */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;              /* ignore clicks while hidden */
  z-index: 999999;
  overflow: auto;                    /* allow scroll if content is tall */
  transition: opacity .35s ease-in-out, visibility 0s linear .35s;
}

.team-overlay.is-open{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;              /* clickable when shown */
  transition: opacity .35s ease-in-out, visibility 0s linear 0s;
}

/* One centered column (image on top, text under it) */
.team-overlay__inner{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2.5vw, 24px);
  padding:
    max(16px, env(safe-area-inset-top))
    max(16px, env(safe-area-inset-right))
    max(16px, env(safe-area-inset-bottom))
    max(16px, env(safe-area-inset-left));

  /* Let clicks on empty white area bubble to .team-overlay for closing */
  pointer-events: none;
}

/* Keep actual content clickable */
.team-overlay__media,
.team-overlay__content,
.team-overlay__close{
  pointer-events: auto;
}

/* Circular image inside overlay */
.team-overlay__media img{
  max-width: min(42vw, 420px);
  width: 100%;
  height: auto;
  display: block;
  border-radius: 50%;
}

/* Content under the image */
.team-overlay__content{
  max-width: 800px;
  text-align: center;
}

.team-overlay__title{
  margin: 8px 0 2px;
  font-size: clamp(22px, 3.2vw, 32px);
  line-height: 1.2;
}

.team-overlay__role{
  margin: 0 0 10px;
  font-style: italic;
  opacity: .8;
}

.team-overlay__bio{
  margin: 0 auto 10px;
  max-width: 720px;
}

/* Social icons row (cloned from Qi markup), centered with spacing */
.team-overlay__socials .qodef-m-social-icons{
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

.team-overlay__socials .qodef-e-social-icon-link{
  display: inline-flex;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  background: transparent;
  transition: transform .2s ease;
}

.team-overlay__socials .qodef-e-social-icon-link:hover{
  transform: scale(1.06);
}

/* Close button — visible and above everything */
.team-overlay__close{
  position: fixed;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  display: inline-flex;               /* ensure it renders */
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: #000;
  color: #fff;
  font-size: 28px;
  line-height: 1;                     /* show the × properly */
  text-indent: 0;                     /* defeat any resets */
  box-shadow: 0 2px 10px rgba(0,0,0,.15);
  cursor: pointer;
  z-index: 1000001;                   /* above overlay content */
}

/* Keyboard focus style */
.team-overlay__close:focus{
  outline: 2px solid #000;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(0,0,0,.25);
}

/* Prevent background page scroll while overlay is open (toggled by JS) */
body.team-overlay-open{
  overflow: hidden;
}


/* Ensure socials are visible + sized in the overlay */
.team-overlay__socials { 
  margin-top: 10px; 
  color: #111;             /* base color for currentColor SVGs */
}

.team-overlay__socials .qodef-m-social-icons{
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

.team-overlay__socials .qodef-e-social-icon-link{
  display: inline-flex;
  width: 80px; height: 80px;
  align-items: center; justify-content: center;
  color: #0077b7;             /* makes Font-Icon SVGs visible */
  text-decoration: none;
}

.team-overlay__socials svg{
  width: 55px; height: 55px; 
  display: block;
}

/* For inline SVGs that rely on currentColor */
.team-overlay__socials svg path,
.team-overlay__socials svg polygon,
.team-overlay__socials svg rect,
.team-overlay__socials svg circle {
  fill: currentColor;
}




/* Close button above the image (centered) */
#teamOverlay .team-overlay__close{
  position: static;                 /* no more fixed top-right */
  top: auto; right: auto;           /* neutralize old props */
  width: 44px; height: 44px;
  display: inline-flex;
  align-items: center; justify-content: center;
  border: 0; border-radius: 999px;
  background: #000; color: #fff;
  font-size: 28px; line-height: 1;
  text-indent: 0;
  box-shadow: 0 2px 10px rgba(0,0,0,.15);
  cursor: pointer;
  z-index: 1;                       /* no need to be huge anymore */
  margin-bottom: 12px;              /* space above the image */
}

/* (keeps keyboard focus style) */
#teamOverlay .team-overlay__close:focus{
  outline: 2px solid #000;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(0,0,0,.25);
}

/* Because the inner is column + centered, the button will sit centered above the image */





/* Mobile calibration (layout is already columnar) */
@media (max-width: 768px){
  .team-overlay__media img{
    max-width: 82vw;
  }
}

/* Accessibility: reduce motion if user prefers */
@media (prefers-reduced-motion: reduce){
  .qodef-qi-team-member .qodef-m-media-image img,
  .team-overlay,
  .team-overlay__inner{
    transition: none !important;
  }
}/* End custom CSS */