/* ============================================================================
 * familytraditions — client overrides (Run 58, 2026-11-24)
 * ============================================================================
 * Lives HERE, not in static-overrides.css: that file is the shared template and
 * the adoption refresh overwrites it wholesale.
 *
 * Home image carousel (widget in container 2725b277) — N-up photo strip, not the
 * shared template's 240px swatch strip (ledger L96: sizing is content-dependent).
 *
 * Source settings: slides_to_show 4, slides_to_show_tablet 3, mobile unset
 * (Elementor default 1), image_spacing_custom 20px. Swiper's breakpoints are
 * min-width keyed on Elementor's breakpoint values, so live shows 4 at >=1024,
 * 3 at 767-1023, 1 below 767. Measured live (headed, 2026-11-24):
 *   1440: 313x430 slides, (1311 - 3x20)/4 = 312.75  ✓
 *   1024: 217 wide,        ( 928 - 3x20)/4 = 217     ✓
 *    390: 345x474, one slide filling the track
 * Images render at their natural aspect (object-fit fill, height auto).
 * Same gutter-aware arithmetic as alibaba's client override.
 */
.elementor-widget-image-carousel {
  --ym-carousel-gap: 20px;
  --ym-n: 4;
}
@media (max-width: 1023px) {
  .elementor-widget-image-carousel { --ym-n: 3; }
}
@media (max-width: 766px) {
  .elementor-widget-image-carousel { --ym-n: 1; }
}

.elementor-widget-image-carousel .swiper,
.elementor-widget-image-carousel .swiper-container,
.elementor-widget-image-carousel .swiper-wrapper {
  gap: var(--ym-carousel-gap) !important;
  padding-bottom: 0 !important;
  justify-content: flex-start !important;
  scrollbar-width: none;
}
.elementor-widget-image-carousel .swiper-wrapper::-webkit-scrollbar { display: none; }

/* Live's slide is display:block around an inline <img>, which is where its
 * +8px descender space comes from (slide 438 around a 430 image). */
.elementor-widget-image-carousel .swiper-slide {
  display: block !important;
  flex: 0 0 calc((100% - (var(--ym-n) - 1) * var(--ym-carousel-gap)) / var(--ym-n)) !important;
  width: calc((100% - (var(--ym-n) - 1) * var(--ym-carousel-gap)) / var(--ym-n)) !important;
  max-width: none !important;
}
.elementor-widget-image-carousel .swiper-slide img {
  display: inline !important;
  width: 100% !important;
  max-height: none !important;
  height: auto !important;
  object-fit: fill !important;
}

/* /piercing-services/ carousel (widget 06cdfe9) is NOT the home pattern, although its
 * data-settings are identical (4 / tablet 3, 20px spacing). Measured live 2026-11-24,
 * headed: the track (1260px inside 30px padding at 1440) holds 3 slides with NO gap
 * at desktop AND tablet, 1 on phones, and the photos are not stretched (no
 * `swiper-image-stretch`): a 300px thumbnail centred in each slide, capped at it.
 *   1440: 1260/3 = 420 ✓ (img 300)   1024: 889/3 = 296 ✓ (img 296)   390: 275 ✓
 * The home / about / tattoo carousels measure as the rule above and are untouched. */
.elementor-element-06cdfe9.elementor-widget-image-carousel { --ym-carousel-gap: 0px; --ym-n: 3; }
@media (max-width: 766px) {
  .elementor-element-06cdfe9.elementor-widget-image-carousel { --ym-n: 1; }
}
.elementor-element-06cdfe9 .swiper-slide img {
  width: auto !important;
  max-width: 100% !important;
}

/* Carousel captions: the shared template forces 14px + 8px top padding on every
 * image-carousel caption, over the site's own captured style. Live (headed,
 * 2026-11-24, /piercing-services/ 06cdfe9): Martel Sans 16px italic, 22.4px line,
 * no padding, aqua. Restored here; the shared rule is logged to INBOX. */
.elementor-widget-image-carousel .swiper-slide .elementor-image-carousel-caption {
  font-size: 16px;
  line-height: 22.4px;
  padding: 0;
}
