
/* Gymful scoped Swiper base repair (kpi) */
.gymful-kpi-swiper .swiper-wrapper {
  display: flex !important;
  flex-direction: row !important;
  box-sizing: content-box;
  width: 100%;
  height: 100%;
  transition-property: transform;
}

.gymful-kpi-swiper .swiper-slide {
  flex-shrink: 0 !important;
  position: relative;
  transition-property: transform;
}

.gymful-kpi-swiper {
  --kpi-gap: 8px;
  position: relative;
  width: 100%;
  overflow: visible;
}

.gymful-kpi-swiper .swiper {
  overflow: visible;
  width: 100%;
}

.gymful-kpi-swiper .swiper-wrapper {
  align-items: stretch;
}

.gymful-kpi-swiper:not(.is-swiper-enabled) .swiper-wrapper,
.gymful-kpi-swiper:not(.swiper-initialized) .swiper-wrapper {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.gymful-kpi-swiper:not(.is-swiper-enabled) .swiper-wrapper::-webkit-scrollbar,
.gymful-kpi-swiper:not(.swiper-initialized) .swiper-wrapper::-webkit-scrollbar {
  display: none;
}

.gymful-kpi-swiper .swiper-slide {
  height: auto;
  flex-shrink: 0;
  scroll-snap-align: start;
}

.gymful-kpi-swiper .kpi-wrapper {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: 16px;
  isolation: isolate;
  transform: translateY(0);
  transition-property: transform, background, border-color, box-shadow, color;
  transition-timing-function: cubic-bezier(.22,.61,.36,1);
  will-change: transform;
  cursor: pointer;
}

.gymful-kpi-swiper .kpi-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition-property: opacity;
  transition-timing-function: cubic-bezier(.22,.61,.36,1);
}

.gymful-kpi-swiper .kpi-background-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  overflow: hidden;
  transition-property: opacity;
  transition-timing-function: cubic-bezier(.22,.61,.36,1);
}

.gymful-kpi-swiper .kpi-background-media-inner,
.gymful-kpi-swiper .kpi-bg-image,
.gymful-kpi-swiper .kpi-bg-video,
.gymful-kpi-swiper .kpi-bg-iframe {
  width: 100%;
  height: 100%;
}

.gymful-kpi-swiper .kpi-background-media-inner {
  transform: scale(1);
  transition-property: transform, filter;
  transition-timing-function: cubic-bezier(.22,.61,.36,1);
}

.gymful-kpi-swiper .kpi-bg-image,
.gymful-kpi-swiper .kpi-bg-video {
  display: block;
  object-fit: cover;
}

.gymful-kpi-swiper .kpi-bg-iframe {
  border: 0;
  display: block;
  transform: scale(1.02);
}

.gymful-kpi-swiper .kpi-inner-wrapper-top,
.gymful-kpi-swiper .kpi-inner-wrapper-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.gymful-kpi-swiper .kpi-card-image-frame {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  box-sizing: border-box;
  line-height: 0;
  flex: 0 0 auto;
  transition-property: opacity, transform, filter, border-color, background, box-shadow;
  transition-timing-function: cubic-bezier(.22,.61,.36,1);
}

.gymful-kpi-swiper .kpi-card-image-frame * {
  box-sizing: border-box;
}

.gymful-kpi-swiper .kpi-card-image {
  display: block;
  max-width: 100%;
  flex: 0 0 auto;
  transition-property: filter, opacity, transform;
  transition-timing-function: cubic-bezier(.22,.61,.36,1);
}

.gymful-kpi-swiper .kpi-wrapper:hover .kpi-card-image-frame,
.gymful-kpi-swiper .kpi-wrapper.is-active .kpi-card-image-frame,
.gymful-kpi-swiper .kpi-wrapper.is-swiper-active .kpi-card-image-frame {
  opacity: 0;
  pointer-events: none;
}

.gymful-kpi-swiper .kpi-card-heading,
.gymful-kpi-swiper .kpi-card-text {
  position: relative;
  z-index: 2;
  transition-property: color, opacity, transform;
  transition-timing-function: cubic-bezier(.22,.61,.36,1);
}

.gymful-kpi-swiper .kpi-card-heading {
  margin: 0 0 14px;
  color: #C8AE46;
  font-size: 26px;
  line-height: 1.12;
  font-weight: 400;
}

.gymful-kpi-swiper .kpi-card-text {
  margin: 0;
  color: #000;
  font-size: 17px;
  line-height: 1.3;
  font-weight: 500;
}

.gymful-kpi-swiper .kpi-swiper-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-top: 34px;
  position: relative;
  z-index: 4;
  width: 100%;
}

.gymful-kpi-swiper .kpi-swiper-arrow,
.gymful-kpi-swiper .kpi-swiper-play {
  appearance: none;
  border: 0;
  background: transparent;
  color: #000;
  padding: 0;
  font: inherit;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  min-height: 26px;
}

.gymful-kpi-swiper .kpi-swiper-arrow svg,
.gymful-kpi-swiper .kpi-swiper-play svg {
  display: block;
  width: 100%;
  height: 100%;
}

.gymful-kpi-swiper .kpi-swiper-play {
  width: 39px;
  height: 39px;
  min-width: 39px;
  min-height: 39px;
}

.gymful-kpi-swiper .kpi-swiper-play .kpi-pause-icon {
  display: none;
}

.gymful-kpi-swiper .kpi-swiper-play.is-playing .kpi-play-icon {
  display: none;
}

.gymful-kpi-swiper .kpi-swiper-play.is-playing .kpi-pause-icon {
  display: inline-flex;
}

.gymful-kpi-swiper .kpi-swiper-arrow.swiper-button-disabled,
.gymful-kpi-swiper .kpi-swiper-arrow.is-disabled {
  opacity: .55;
  cursor: default;
}

.gymful-kpi-swiper .kpi-swiper-pagination {
  position: static;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
}

.gymful-kpi-swiper .kpi-swiper-pagination .swiper-pagination-bullet {
  display: block;
  width: 44px;
  height: 3px;
  border-radius: 999px;
  margin: 0 !important;
  opacity: 1;
  background: #8A8A8A;
  transition: width .25s ease, height .25s ease, background .25s ease, opacity .25s ease;
}

.gymful-kpi-swiper .kpi-swiper-pagination .swiper-pagination-bullet-active {
  background: #000;
}


/* Optional mode: show every card in its hover/active visual state by default.
   The lift remains hover-only because no .is-active class is applied to every card. */
.gymful-kpi-swiper.kpi-all-cards-active .kpi-wrapper .kpi-card-image-frame {
  opacity: 0;
  pointer-events: none;
}

.gymful-kpi-swiper.kpi-all-cards-active .kpi-wrapper .kpi-background-media {
  opacity: 1;
}

.gymful-kpi-swiper.kpi-all-cards-active .kpi-wrapper::after {
  opacity: 1;
}

.gymful-kpi-swiper.kpi-all-cards-active .kpi-wrapper .kpi-background-media-inner {
  transform: scale(1.04);
}

.gymful-kpi-swiper.kpi-all-cards-active.kpi-managed-active .swiper-slide-active .kpi-wrapper:not(.is-active):not(.is-swiper-active) .kpi-background-media,
.gymful-kpi-swiper.kpi-all-cards-active.kpi-managed-active .swiper-slide-active .kpi-wrapper:not(.is-active):not(.is-swiper-active)::after {
  opacity: 1 !important;
}

.gymful-kpi-swiper.kpi-all-cards-active.kpi-managed-active .swiper-slide-active .kpi-wrapper:not(.is-active):not(.is-swiper-active) .kpi-card-image-frame {
  opacity: 0 !important;
  pointer-events: none !important;
}

@media (max-width: 767px) {
  .gymful-kpi-swiper .kpi-swiper-controls {
    gap: 18px;
    margin-top: 28px;
  }
}


/* Active state is managed by .is-active / .is-swiper-active, not by Swiper's clamped .swiper-slide-active. */
.gymful-kpi-swiper.kpi-managed-active .swiper-slide-active .kpi-wrapper:not(.is-active):not(.is-swiper-active) {
  transform: translateY(0) !important;
}

.gymful-kpi-swiper.kpi-managed-active .swiper-slide-active .kpi-wrapper:not(.is-active):not(.is-swiper-active)::after {
  opacity: 0 !important;
}

.gymful-kpi-swiper.kpi-managed-active .swiper-slide-active .kpi-wrapper:not(.is-active):not(.is-swiper-active) .kpi-background-media {
  opacity: 0 !important;
}

.gymful-kpi-swiper.kpi-managed-active .swiper-slide-active .kpi-wrapper:not(.is-active):not(.is-swiper-active) .kpi-background-media-inner {
  transform: scale(1) !important;
}

.gymful-kpi-swiper.kpi-managed-active .swiper-slide-active .kpi-wrapper:not(.is-active):not(.is-swiper-active) .kpi-card-image-frame {
  opacity: 1 !important;
  pointer-events: auto !important;
}
