/*
 * UNIMERCE Marketplace
 * Developer & Lead Architect: Morris Robinson / morrisrobinson1688@aol.com
 * Patch 351: Per-slideshow responsive typography and mobile text reduction.
 */
body.unimerce-storefront-v2 .um-home-slideshow .um-home-slide .um-hero-copy {
  width: min(100%, var(--um-slide-copy-max-width, 720px)) !important;
  max-width: var(--um-slide-copy-max-width, 720px) !important;
}

body.unimerce-storefront-v2 .um-home-slideshow .um-home-slide .um-kicker {
  font-size: clamp(
    calc(11px * var(--um-slide-desktop-scale, 1)),
    calc(1vw * var(--um-slide-desktop-scale, 1)),
    calc(15px * var(--um-slide-desktop-scale, 1))
  ) !important;
  line-height: 1.25 !important;
}

body.unimerce-storefront-v2 .um-home-slideshow .um-home-slide .um-hero-copy h1 {
  font-size: clamp(
    calc(21px * var(--um-slide-desktop-scale, 1)),
    calc(2.5vw * var(--um-slide-desktop-scale, 1)),
    var(--um-slide-title-max-desktop, 42px)
  ) !important;
  line-height: 1.08 !important;
  overflow-wrap: anywhere;
}

body.unimerce-storefront-v2 .um-home-slideshow .um-home-slide .um-hero-copy p {
  font-size: clamp(
    calc(13px * var(--um-slide-desktop-scale, 1)),
    calc(1.15vw * var(--um-slide-desktop-scale, 1)),
    calc(18px * var(--um-slide-desktop-scale, 1))
  ) !important;
  line-height: 1.45 !important;
  overflow-wrap: anywhere;
}

body.unimerce-storefront-v2 .um-home-slideshow .um-home-slide .um-btn {
  font-size: clamp(
    calc(10px * var(--um-slide-desktop-scale, 1)),
    calc(.78vw * var(--um-slide-desktop-scale, 1)),
    calc(13px * var(--um-slide-desktop-scale, 1))
  ) !important;
}

@media (max-width: 991.98px) {
  body.unimerce-storefront-v2 main > .um-home-slideshow:first-child .um-home-slide .um-hero-copy {
    width: min(100%, var(--um-slide-copy-max-width, 720px)) !important;
    max-width: min(100%, var(--um-slide-copy-max-width, 720px)) !important;
  }

  body.unimerce-storefront-v2 main > .um-home-slideshow:first-child .um-home-slide .um-kicker {
    font-size: max(10px, calc(11px * var(--um-slide-mobile-scale, .6))) !important;
    margin-bottom: 6px !important;
  }

  body.unimerce-storefront-v2 main > .um-home-slideshow:first-child .um-home-slide .um-hero-copy h1 {
    font-size: clamp(
      max(16px, calc(26px * var(--um-slide-mobile-scale, .6))),
      calc(7.2vw * var(--um-slide-mobile-scale, .6)),
      var(--um-slide-title-max-mobile, 24px)
    ) !important;
    line-height: 1.08 !important;
    margin-bottom: 8px !important;
  }

  body.unimerce-storefront-v2 main > .um-home-slideshow:first-child .um-home-slide .um-hero-copy p {
    font-size: max(11.5px, calc(13.5px * var(--um-slide-mobile-scale, .6))) !important;
    line-height: 1.4 !important;
    margin-bottom: 10px !important;
  }

  body.unimerce-storefront-v2 main > .um-home-slideshow:first-child .um-home-slide .um-hero-buttons {
    gap: 6px !important;
  }

  body.unimerce-storefront-v2 main > .um-home-slideshow:first-child .um-home-slide .um-btn {
    min-height: 38px !important;
    padding-inline: 12px !important;
    font-size: max(10px, calc(11px * var(--um-slide-mobile-scale, .6))) !important;
  }
}
