body:not(.elementor-editor-active) .team-card .team-card-inner {
  position: relative;
  cursor: pointer;
}

body:not(.elementor-editor-active) .team-card .team-card-front,
body:not(.elementor-editor-active) .team-card .team-card-back {
  transition: opacity 0.9s cubic-bezier(0.25, 0.1, 0.25, 1);
}

body:not(.elementor-editor-active) .team-card .team-card-front {
  opacity: 1;
}

body:not(.elementor-editor-active) .team-card .team-card-back {
  position: absolute;
  inset: 0;
  opacity: 0;
}

/* Desktop */
@media (hover: hover) and (pointer: fine) {
  body:not(.elementor-editor-active) .team-card .team-card-inner:hover .team-card-front {
    opacity: 0;
  }

  body:not(.elementor-editor-active) .team-card .team-card-inner:hover .team-card-back {
    opacity: 1;
  }
}

/* Mobile */
body:not(.elementor-editor-active) .team-card .team-card-inner.is-flipped .team-card-front {
  opacity: 0;
}

body:not(.elementor-editor-active) .team-card .team-card-inner.is-flipped .team-card-back {
  opacity: 1;
}


/* RWD układu kart */


/* Laptop + duży tablet: 2 karty */
@media (min-width: 881px) and (max-width: 1366px) {
  body:not(.elementor-editor-active) .team-card {
    flex-wrap: wrap !important;
  }

  body:not(.elementor-editor-active) .team-card .team-card-inner.elementor-element {
    --width: calc(50% - 12px) !important;
    width: calc(50% - 12px) !important;
    max-width: calc(50% - 12px) !important;
    flex-basis: calc(50% - 12px) !important;
    flex-grow: 0 !important;
    flex-shrink: 0 !important;
  }
}

/* Mały tablet + telefon: 1 karta */
@media (max-width: 880px) {
  body:not(.elementor-editor-active) .team-card {
    flex-wrap: wrap !important;
  }

  body:not(.elementor-editor-active) .team-card .team-card-inner.elementor-element {
    --width: 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    flex-basis: 100% !important;
    flex-grow: 0 !important;
    flex-shrink: 0 !important;
  }
}