/**
 * Gymful Elementor Library — global swiper responsive safe edge-bleed patch.
 *
 * v0.1.9 fixes the v0.1.8 approach:
 * - keeps mobile/tablet swipers visually edge-to-edge;
 * - overrides older per-widget containment patches that forced width:100%;
 * - keeps Persona/Image intro text contained while only the carousel stage bleeds;
 * - prevents navigation/pagination from stretching full-width on mobile;
 * - blocks page-level horizontal scroll without visually containing the swiper.
 */

@media (max-width: 1024px) {
  html,
  body {
    max-width: 100%;
    overflow-x: clip;
  }

  @supports not (overflow-x: clip) {
    html,
    body {
      overflow-x: hidden;
    }
  }

  .elementor-section,
  .elementor-container,
  .elementor-column,
  .elementor-widget-wrap,
  .elementor-widget,
  .e-con,
  .e-con-inner {
    min-width: 0 !important;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Base safety for every known Gymful/COMMIT swiper root. */
  .gymful-kpi-swiper,
  .gymful-offer-swiper,
  .gymful-team-member-swiper,
  .gymful-testimonial-swiper,
  .gymful-locations-swiper,
  .gymful-process-swiper,
  .gymful-video-modal-swiper,
  .gymful-active-cards-showcase,
  .gymful-persona-swiper,
  .gymful-image-cards-swiper {
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  /*
   * Edge-to-edge roots: widgets without a separate intro/text column.
   * This deliberately overrides older responsive fixes in individual widget files.
   */
  .gymful-kpi-swiper.gymful-kpi-swiper,
  .gymful-offer-swiper.gymful-offer-swiper,
  .gymful-offer-swiper.is-full-bleed.is-full-bleed,
  .gymful-team-member-swiper.gymful-team-member-swiper,
  .gymful-testimonial-swiper.gymful-testimonial-swiper,
  .gymful-testimonial-swiper.is-full-bleed.is-full-bleed,
  .gymful-locations-swiper.gymful-locations-swiper,
  .gymful-locations-swiper--full-bleed.gymful-locations-swiper--full-bleed,
  .gymful-process-swiper.gymful-process-swiper,
  .gymful-video-modal-swiper.gymful-video-modal-swiper,
  .gymful-active-cards-showcase.gymful-active-cards-showcase,
  .gacs-full-bleed-yes .gymful-active-cards-showcase.gymful-active-cards-showcase {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    overflow-x: clip !important;
    box-sizing: border-box !important;
  }

  @supports (width: 100dvw) {
    .gymful-kpi-swiper.gymful-kpi-swiper,
    .gymful-offer-swiper.gymful-offer-swiper,
    .gymful-offer-swiper.is-full-bleed.is-full-bleed,
    .gymful-team-member-swiper.gymful-team-member-swiper,
    .gymful-testimonial-swiper.gymful-testimonial-swiper,
    .gymful-testimonial-swiper.is-full-bleed.is-full-bleed,
    .gymful-locations-swiper.gymful-locations-swiper,
    .gymful-locations-swiper--full-bleed.gymful-locations-swiper--full-bleed,
    .gymful-process-swiper.gymful-process-swiper,
    .gymful-video-modal-swiper.gymful-video-modal-swiper,
    .gymful-active-cards-showcase.gymful-active-cards-showcase,
    .gacs-full-bleed-yes .gymful-active-cards-showcase.gymful-active-cards-showcase {
      width: 100dvw !important;
      max-width: 100dvw !important;
      margin-left: calc(50% - 50dvw) !important;
      margin-right: calc(50% - 50dvw) !important;
    }
  }

  @supports not (overflow-x: clip) {
    .gymful-kpi-swiper.gymful-kpi-swiper,
    .gymful-offer-swiper.gymful-offer-swiper,
    .gymful-team-member-swiper.gymful-team-member-swiper,
    .gymful-testimonial-swiper.gymful-testimonial-swiper,
    .gymful-locations-swiper.gymful-locations-swiper,
    .gymful-process-swiper.gymful-process-swiper,
    .gymful-video-modal-swiper.gymful-video-modal-swiper,
    .gymful-active-cards-showcase.gymful-active-cards-showcase {
      overflow-x: hidden !important;
    }
  }

  /*
   * Intro/text-column widgets: keep the root and text contained.
   * Only the slider stage bleeds to the viewport edges.
   */
  .gymful-persona-swiper.gymful-persona-swiper,
  .gymful-image-cards-swiper.gymful-image-cards-swiper {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    overflow: visible !important;
  }

  .gymful-persona-swiper .gymful-persona-swiper__layout,
  .gymful-image-cards-swiper .gymful-image-cards-swiper__layout {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow: visible !important;
  }

  .gymful-persona-swiper .gymful-persona-swiper__intro,
  .gymful-image-cards-swiper .gymful-image-cards-swiper__intro {
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .gymful-persona-swiper .gymful-persona-swiper__slider,
  .gymful-image-cards-swiper .gymful-image-cards-swiper__slider {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow-x: clip !important;
    overflow-y: visible !important;
  }

  @supports (width: 100dvw) {
    .gymful-persona-swiper .gymful-persona-swiper__slider,
    .gymful-image-cards-swiper .gymful-image-cards-swiper__slider {
      width: 100dvw !important;
      max-width: 100dvw !important;
      margin-left: calc(50% - 50dvw) !important;
      margin-right: calc(50% - 50dvw) !important;
    }
  }

  @supports not (overflow-x: clip) {
    .gymful-persona-swiper .gymful-persona-swiper__slider,
    .gymful-image-cards-swiper .gymful-image-cards-swiper__slider {
      overflow-x: hidden !important;
    }
  }

  /* Actual viewport must clip translated slides; the root/stage handles the edge-bleed. */
  .gymful-kpi-swiper :is(.swiper, .swiper-container, [class*="__viewport"]),
  .gymful-offer-swiper :is(.swiper, .swiper-container, [class*="__viewport"]),
  .gymful-team-member-swiper :is(.swiper, .swiper-container, [class*="__viewport"]),
  .gymful-testimonial-swiper :is(.swiper, .swiper-container, [class*="__viewport"]),
  .gymful-locations-swiper :is(.swiper, .swiper-container, [class*="__viewport"]),
  .gymful-process-swiper :is(.swiper, .swiper-container, [class*="__viewport"]),
  .gymful-video-modal-swiper :is(.swiper, .swiper-container, [class*="__viewport"]),
  .gymful-active-cards-showcase :is(.swiper, .swiper-container, [class*="__viewport"], .gacs-viewport),
  .gymful-persona-swiper :is(.swiper, .swiper-container, .persona-swiper-instance),
  .gymful-image-cards-swiper :is(.swiper, .swiper-container, .image-card-swiper-instance) {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  .gymful-kpi-swiper .swiper-wrapper,
  .gymful-offer-swiper .swiper-wrapper,
  .gymful-team-member-swiper .swiper-wrapper,
  .gymful-testimonial-swiper .swiper-wrapper,
  .gymful-locations-swiper .swiper-wrapper,
  .gymful-process-swiper .swiper-wrapper,
  .gymful-video-modal-swiper .swiper-wrapper,
  .gymful-active-cards-showcase .swiper-wrapper,
  .gymful-persona-swiper .swiper-wrapper,
  .gymful-image-cards-swiper .swiper-wrapper {
    max-width: none !important;
    box-sizing: content-box !important;
  }

  .gymful-kpi-swiper .swiper-slide,
  .gymful-offer-swiper .swiper-slide,
  .gymful-team-member-swiper .swiper-slide,
  .gymful-testimonial-swiper .swiper-slide,
  .gymful-locations-swiper .swiper-slide,
  .gymful-process-swiper .swiper-slide,
  .gymful-video-modal-swiper .swiper-slide,
  .gymful-active-cards-showcase .swiper-slide,
  .gymful-persona-swiper .swiper-slide,
  .gymful-image-cards-swiper .swiper-slide {
    box-sizing: border-box !important;
    max-width: calc(100vw - 20px) !important;
  }

  @supports (width: 100dvw) {
    .gymful-kpi-swiper .swiper-slide,
    .gymful-offer-swiper .swiper-slide,
    .gymful-team-member-swiper .swiper-slide,
    .gymful-testimonial-swiper .swiper-slide,
    .gymful-locations-swiper .swiper-slide,
    .gymful-process-swiper .swiper-slide,
    .gymful-video-modal-swiper .swiper-slide,
    .gymful-active-cards-showcase .swiper-slide,
    .gymful-persona-swiper .swiper-slide,
    .gymful-image-cards-swiper .swiper-slide {
      max-width: calc(100dvw - 20px) !important;
    }
  }

  /* Keep navigation compact. Older widget patches stretched these to 100%; reverse that here. */
  .gymful-offer-swiper .offer-swiper-nav.offer-swiper-nav,
  .gymful-offer-swiper .offer-swiper-controls.offer-swiper-controls,
  .gymful-offer-swiper .offer-navigation.offer-navigation,
  .gymful-team-member-swiper .team-member-swiper-nav.team-member-swiper-nav,
  .gymful-team-member-swiper .team-member-swiper-controls.team-member-swiper-controls,
  .gymful-team-member-swiper .team-member-navigation.team-member-navigation,
  .gymful-testimonial-swiper .testimonial-swiper-nav.testimonial-swiper-nav,
  .gymful-testimonial-swiper .testimonial-swiper-controls.testimonial-swiper-controls,
  .gymful-testimonial-swiper .testimonial-navigation.testimonial-navigation,
  .gymful-locations-swiper .locations-swiper-nav.locations-swiper-nav,
  .gymful-locations-swiper .locations-swiper-controls.locations-swiper-controls,
  .gymful-locations-swiper .locations-navigation.locations-navigation,
  .gymful-persona-swiper .persona-swiper-controls.persona-swiper-controls,
  .gymful-image-cards-swiper .image-card-swiper-controls.image-card-swiper-controls {
    width: fit-content !important;
    max-width: calc(100vw - 32px) !important;
    min-width: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: nowrap !important;
    flex: 0 0 auto !important;
    overflow: visible !important;
    box-sizing: border-box !important;
  }

  .gymful-offer-swiper .offer-swiper-pagination.offer-swiper-pagination,
  .gymful-team-member-swiper .team-member-swiper-pagination.team-member-swiper-pagination,
  .gymful-testimonial-swiper .testimonial-swiper-pagination.testimonial-swiper-pagination,
  .gymful-locations-swiper .locations-swiper-pagination.locations-swiper-pagination,
  .gymful-persona-swiper .persona-swiper-pagination.persona-swiper-pagination,
  .gymful-image-cards-swiper .image-card-swiper-pagination.image-card-swiper-pagination {
    position: static !important;
    width: auto !important;
    max-width: calc(100vw - 120px) !important;
    min-width: 0 !important;
    display: inline-flex !important;
    flex: 0 1 auto !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  .gymful-offer-swiper .offer-swiper-pagination .swiper-pagination-bullet,
  .gymful-team-member-swiper .team-member-swiper-pagination .swiper-pagination-bullet,
  .gymful-testimonial-swiper .testimonial-swiper-pagination .swiper-pagination-bullet,
  .gymful-locations-swiper .locations-swiper-pagination .swiper-pagination-bullet,
  .gymful-persona-swiper .persona-swiper-pagination .swiper-pagination-bullet,
  .gymful-image-cards-swiper .image-card-swiper-pagination .swiper-pagination-bullet {
    flex: 0 0 auto !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  .gymful-offer-swiper .offer-swiper-arrow,
  .gymful-offer-swiper .offer-swiper-play,
  .gymful-team-member-swiper .team-member-swiper-arrow,
  .gymful-team-member-swiper .team-member-swiper-play,
  .gymful-testimonial-swiper .testimonial-swiper-arrow,
  .gymful-testimonial-swiper .testimonial-swiper-play,
  .gymful-locations-swiper .locations-swiper-arrow,
  .gymful-locations-swiper .locations-swiper-play,
  .gymful-persona-swiper .persona-swiper-arrow,
  .gymful-persona-swiper .persona-swiper-play,
  .gymful-image-cards-swiper .image-card-swiper-arrow,
  .gymful-image-cards-swiper .image-card-swiper-play {
    flex: 0 0 auto !important;
  }
}
