.df-bhvc {
  --df-bhvc-visible: 4.2;
  --df-bhvc-gap: 16px;
  --df-bhvc-height: 356px;
  --df-bhvc-active-height: 404px;
  --df-bhvc-radius: 18px;
  --df-bhvc-duration: 420ms;
  --df-bhvc-container-width: 100vw;
  position: relative;
  width: 100%;
  padding: 0 0 28px;
}

.df-bhvc__viewport {
  width: 100%;
  height: var(--df-bhvc-active-height);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  cursor: grab;
  outline: none;
  touch-action: pan-y pinch-zoom;
}

.df-bhvc__viewport::-webkit-scrollbar {
  display: none;
}

.df-bhvc__viewport.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  scroll-snap-type: none;
  user-select: none;
}

.df-bhvc[data-center-mode="on"] .df-bhvc__viewport {
  scroll-snap-type: none;
}

.df-bhvc__track {
  display: flex;
  align-items: center;
  gap: var(--df-bhvc-gap);
  width: max-content;
  min-width: 100%;
  height: 100%;
}

.df-bhvc__slide {
  position: relative;
  flex: 0 0 var(--df-bhvc-slide-width, calc((var(--df-bhvc-container-width) - (var(--df-bhvc-gap) * (var(--df-bhvc-visible) - 1))) / var(--df-bhvc-visible)));
  width: var(--df-bhvc-slide-width, calc((var(--df-bhvc-container-width) - (var(--df-bhvc-gap) * (var(--df-bhvc-visible) - 1))) / var(--df-bhvc-visible)));
  height: var(--df-bhvc-height);
  margin: 0;
  overflow: hidden;
  border-radius: var(--df-bhvc-radius);
  background: #ece9e4;
  scroll-snap-align: center;
  transition:
    height var(--df-bhvc-duration) cubic-bezier(.22, 1, .36, 1),
    transform var(--df-bhvc-duration) cubic-bezier(.22, 1, .36, 1);
  isolation: isolate;
}

.df-bhvc__slide:hover,
.df-bhvc__slide:focus-visible,
.df-bhvc__slide.is-hovered,
.df-bhvc__slide.is-active {
  z-index: 3;
  height: var(--df-bhvc-active-height);
}

.df-bhvc.has-hovered .df-bhvc__slide.is-active:not(:hover):not(:focus-visible):not(.is-hovered) {
  z-index: auto;
  height: var(--df-bhvc-height);
}

.df-bhvc__image,
.df-bhvc__video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--df-bhvc-object-position, center center);
}

.df-bhvc__image {
  z-index: 1;
  opacity: 1;
  transition: opacity var(--df-bhvc-duration) ease;
}

.df-bhvc__video {
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--df-bhvc-duration) ease;
}

.df-bhvc__slide:hover .df-bhvc__image,
.df-bhvc__slide:focus-visible .df-bhvc__image,
.df-bhvc__slide.is-hovered .df-bhvc__image {
  opacity: 0;
}

.df-bhvc__slide:hover .df-bhvc__video,
.df-bhvc__slide:focus-visible .df-bhvc__video,
.df-bhvc__slide.is-hovered .df-bhvc__video {
  opacity: 1;
  pointer-events: auto;
}

.df-bhvc__placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: #777;
  background: #f1efeb;
  font-size: 14px;
}

.df-bhvc__arrow {
  position: absolute;
  z-index: 5;
  top: calc(var(--df-bhvc-active-height) / 2);
  display: grid;
  width: var(--df-bhvc-arrow-size, 48px);
  height: var(--df-bhvc-arrow-size, 48px);
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--df-bhvc-arrow-bg, #fff);
  color: var(--df-bhvc-arrow-color, #111);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .14);
  cursor: pointer;
  transform: translateY(-50%);
  transition: transform .22s ease, opacity .22s ease, filter .22s ease;
}

.df-bhvc__arrow:hover,
.df-bhvc__arrow:focus-visible {
  filter: brightness(.94);
  transform: translateY(-50%) scale(1.06);
}

.df-bhvc__arrow:disabled {
  opacity: .3;
  cursor: default;
}

.df-bhvc__arrow--prev { left: 14px; }
.df-bhvc__arrow--next { right: 14px; }

.df-bhvc__dots {
  position: absolute;
  z-index: 5;
  bottom: 2px;
  left: 50%;
  display: flex;
  gap: 9px;
  align-items: center;
  justify-content: center;
  transform: translateX(-50%);
}

.df-bhvc__dot {
  width: var(--df-bhvc-dot-size, 8px);
  height: var(--df-bhvc-dot-size, 8px);
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--df-bhvc-dot-color, rgba(0, 0, 0, .22));
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}

.df-bhvc__dot.is-active {
  background: var(--df-bhvc-dot-active, #df030d);
  transform: scale(1.45);
}

.df-bhvc-child-preview {
  display: grid;
  min-height: 180px;
  place-items: center;
  overflow: hidden;
  border-radius: 12px;
  background: #f1efeb;
}

.df-bhvc-child-preview img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.df-bhvc-child-preview small {
  padding: 6px 10px;
}

body.et-fb .df-bhvc__viewport {
  cursor: default;
}

@media (max-width: 980px) {
  .df-bhvc__slide {
    flex-basis: var(--df-bhvc-slide-width, calc((var(--df-bhvc-container-width) - (var(--df-bhvc-gap) * (var(--df-bhvc-visible) - 1))) / var(--df-bhvc-visible)));
    width: var(--df-bhvc-slide-width, calc((var(--df-bhvc-container-width) - (var(--df-bhvc-gap) * (var(--df-bhvc-visible) - 1))) / var(--df-bhvc-visible)));
  }
}

@media (max-width: 767px) {
  .df-bhvc__slide {
    flex-basis: var(--df-bhvc-slide-width, calc((var(--df-bhvc-container-width) - (var(--df-bhvc-gap) * (var(--df-bhvc-visible) - 1))) / var(--df-bhvc-visible)));
    width: var(--df-bhvc-slide-width, calc((var(--df-bhvc-container-width) - (var(--df-bhvc-gap) * (var(--df-bhvc-visible) - 1))) / var(--df-bhvc-visible)));
    max-width: none;
  }

  .df-bhvc__arrow {
    display: none;
  }

  .df-bhvc[data-mobile-reference-sizing="on"] .df-bhvc__viewport,
  .df-bhvc[data-mobile-reference-sizing="on"] .df-bhvc__track {
    height: 242px;
  }

  .df-bhvc[data-mobile-reference-sizing="on"] .df-bhvc__track {
    gap: 10px;
  }

  .df-bhvc[data-mobile-reference-sizing="on"] .df-bhvc__slide {
    flex: 0 0 154px;
    width: 154px;
    height: 220px;
    border-radius: 20px;
  }

  .df-bhvc[data-mobile-reference-sizing="on"] .df-bhvc__slide:hover,
  .df-bhvc[data-mobile-reference-sizing="on"] .df-bhvc__slide:focus-visible,
  .df-bhvc[data-mobile-reference-sizing="on"] .df-bhvc__slide.is-hovered,
  .df-bhvc[data-mobile-reference-sizing="on"] .df-bhvc__slide.is-active {
    height: 242px;
  }

  .df-bhvc[data-mobile-reference-sizing="on"].has-hovered .df-bhvc__slide.is-active:not(:hover):not(:focus-visible):not(.is-hovered) {
    height: 220px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .df-bhvc__viewport { scroll-behavior: auto; }
  .df-bhvc__slide,
  .df-bhvc__image,
  .df-bhvc__video,
  .df-bhvc__arrow,
  .df-bhvc__dot { transition: none !important; }
}
