/*!
 * Blog modules for the "2027 Global Food & Beverage Trends" post. Standalone file: loaded by a small add-only
 * snippet in functions.php, so it can be uploaded to any Sensient site without overwriting style.css.
 * Source: scss/bm-blog-2027.scss (compile to /bm-blog-2027.css in the theme root).
 * Contains: BM - Trend Cards, BM - Horizontal Tabs stats carousel + opt-in products carousel, mobile hero fix for this post.
 */
.bm-trend-cards {
  position: relative;
  margin: 60px 0;
}
.bm-trend-cards--has-bg {
  margin: 0;
  padding: 80px 0;
}
.bm-trend-cards.text-light {
  color: #fff;
}
.bm-trend-cards.text-light h1, .bm-trend-cards.text-light h2, .bm-trend-cards.text-light h3, .bm-trend-cards.text-light h4, .bm-trend-cards.text-light h5, .bm-trend-cards.text-light h6 {
  color: #fff;
}
.bm-trend-cards .container {
  max-width: 1720px;
}
.bm-trend-cards__header {
  max-width: 940px;
  margin: 0 auto 50px;
  text-align: center;
}
.bm-trend-cards__header > *:last-child {
  margin-bottom: 0;
}
.bm-trend-cards__cards {
  display: flex;
  justify-content: center;
  column-gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.bm-trend-cards__card {
  flex: 1 1 0;
  min-width: 0;
  max-width: 340px;
  margin: 0;
}
.bm-trend-cards__card a,
.bm-trend-cards__card > img {
  display: block;
  border-radius: 28px;
  overflow: hidden;
}
.bm-trend-cards__card a {
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}
.bm-trend-cards__card a:hover, .bm-trend-cards__card a:focus-visible {
  transform: translateY(-8px);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.18);
}
.bm-trend-cards__card img {
  display: block;
  width: 100%;
  height: auto;
}
@media (max-width: 1279px) {
  .bm-trend-cards__card a,
  .bm-trend-cards__card > img {
    border-radius: 20px;
  }
}
@media (max-width: 1079px) {
  .bm-trend-cards {
    margin: 40px 0;
  }
  .bm-trend-cards--has-bg {
    margin: 0;
    padding: 50px 0;
  }
  .bm-trend-cards__header {
    margin-bottom: 30px;
  }
  .bm-trend-cards__cards {
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 10px 0 20px;
  }
  .bm-trend-cards__card {
    flex: 0 0 42%;
    max-width: none;
    scroll-snap-align: start;
  }
}
@media (max-width: 575px) {
  .bm-trend-cards__card {
    flex-basis: 72%;
  }
}

.bm-horizontal-tabs__tab-content .bm-statistics__stats--carousel {
  position: relative;
}
.bm-horizontal-tabs__tab-content .bm-statistics__stats--carousel.slick-initialized {
  display: block;
}
.bm-horizontal-tabs__tab-content .bm-statistics__stats--carousel .slick-list {
  overflow: hidden;
  margin: 0 -15px;
}
.bm-horizontal-tabs__tab-content .bm-statistics__stats--carousel .slick-track {
  display: flex;
  margin-left: 0;
}
.bm-horizontal-tabs__tab-content .bm-statistics__stats--carousel .slick-slide {
  height: auto;
  margin: 0 15px;
}
@media (min-width: 981px) {
  .bm-horizontal-tabs__tab-content .bm-statistics__stats--carousel:not(.slick-initialized) > .bm-statistics__stat:nth-child(n+5) {
    display: none;
  }
}
.bm-horizontal-tabs__tab-content .bm-statistics__controls {
  display: flex;
  align-items: center;
  column-gap: 50px;
  margin: -10px 0 50px;
}
.bm-horizontal-tabs__tab-content .bm-statistics__progress {
  position: relative;
  flex: 1 1 auto;
  height: 4px;
  border-radius: 4px;
  overflow: hidden;
}
.bm-horizontal-tabs__tab-content .bm-statistics__progress::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: currentColor;
  opacity: 0.25;
}
.bm-horizontal-tabs__tab-content .bm-statistics__progress span {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 0;
  border-radius: 4px;
  background-color: currentColor;
  transition: width 0.4s ease-in-out;
}
.bm-horizontal-tabs__tab-content .bm-statistics__arrows {
  display: flex;
  column-gap: 18px;
  flex: 0 0 auto;
  order: -1;
}
.bm-horizontal-tabs__tab-content .bm-statistics__arrows .slick-arrow {
  position: static;
  transform: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  padding: 0;
  margin: 0;
  border: solid 2px currentColor;
  border-radius: 50%;
  background-color: transparent;
  color: inherit;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.3s ease-in-out, border-color 0.3s ease-in-out, color 0.3s ease-in-out;
}
.bm-horizontal-tabs__tab-content .bm-statistics__arrows .slick-arrow:hover, .bm-horizontal-tabs__tab-content .bm-statistics__arrows .slick-arrow:focus-visible {
  background-color: #fff;
  border-color: #fff;
  color: #620387;
}
@media (max-width: 1079px) {
  .bm-horizontal-tabs__tab-content .bm-statistics__controls {
    column-gap: 30px;
  }
  .bm-horizontal-tabs__tab-content .bm-statistics__arrows .slick-arrow {
    width: 48px;
    height: 48px;
    font-size: 18px;
  }
}

@media (min-width: 768px) {
  .products-grid--carousel {
    grid-template-columns: 1fr;
    gap: 0;
    justify-items: center;
    align-items: stretch;
    padding: 0 0 10px;
  }
  .products-grid--carousel .product-item {
    grid-area: 1/1;
    width: 40%;
    z-index: 1;
    opacity: 0;
    transform: scale(0.6);
    transition: transform 0.7s ease-in-out, opacity 0.7s ease-in-out;
    pointer-events: none;
  }
  .products-grid--carousel .product-item.is-active {
    z-index: 3;
    opacity: 1;
    transform: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    pointer-events: auto;
  }
  .products-grid--carousel .product-item.is-prev, .products-grid--carousel .product-item.is-next {
    z-index: 2;
    opacity: 0.85;
    cursor: pointer;
    pointer-events: auto;
  }
  .products-grid--carousel .product-item.is-prev:hover, .products-grid--carousel .product-item.is-next:hover {
    opacity: 1;
  }
  .products-grid--carousel .product-item.is-prev {
    transform: translateX(-65%) scale(0.78);
  }
  .products-grid--carousel .product-item.is-next {
    transform: translateX(65%) scale(0.78);
  }
  .products-grid--carousel .product-item.is-behind {
    z-index: 0;
  }
}
@media (min-width: 768px) and (max-width: 1079px) {
  .products-grid--carousel .product-item {
    width: 50%;
  }
  .products-grid--carousel .product-item.is-prev {
    transform: translateX(-55%) scale(0.75);
  }
  .products-grid--carousel .product-item.is-next {
    transform: translateX(55%) scale(0.75);
  }
}
@media (prefers-reduced-motion: reduce) {
  .products-grid--carousel .product-item {
    transition: none;
  }
}
@media (max-width: 1079px) {
  .subpage-hero.blog-hero:has(> .background[style*=global-trends-2027-hero]) {
    height: auto !important;
    padding-bottom: 4.5vw;
  }
  .subpage-hero.blog-hero:has(> .background[style*=global-trends-2027-hero]) > .background {
    aspect-ratio: 1920/1135;
    background-size: contain;
    background-position: center;
  }
}
@media (min-width: 1080px) {
  .bm-horizontal-tabs__tab-content .bm-statistics__stats:not(.bm-statistics__stats--carousel):has(> .bm-statistics__stat:nth-child(4):last-child) {
    grid-template-columns: repeat(4, 1fr);
  }
}
