/* ByteHive Vertical Image Marquee */
.bhvm {
  --bhvm-h: 600px;
  --bhvm-h-m: 420px;
  --bhvm-gap: 20px;
  --bhvm-speed: 30s;
  --bhvm-radius: 12px;
  --bhvm-fade: 12%;
  --bhvm-ratio: auto;

  display: flex;
  gap: var(--bhvm-gap);
  width: 100%;
  height: var(--bhvm-h);
  overflow: hidden;
}

.bhvm--fade {
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 var(--bhvm-fade), #000 calc(100% - var(--bhvm-fade)), transparent);
          mask-image: linear-gradient(to bottom, transparent, #000 var(--bhvm-fade), #000 calc(100% - var(--bhvm-fade)), transparent);
}

.bhvm-col {
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
  overflow: hidden;
}

.bhvm-track,
.bhvm-set {
  display: flex;
  flex-direction: column;
  gap: var(--bhvm-gap);
}

.bhvm-track {
  animation: bhvm-up var(--bhvm-speed) linear infinite;
  will-change: transform;
}
.bhvm-col--down .bhvm-track {
  animation-name: bhvm-down;
}
.bhvm--pause:hover .bhvm-track {
  animation-play-state: paused;
}

.bhvm-item {
  margin: 0;
  line-height: 0;
}
.bhvm .bhvm-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
  border-radius: var(--bhvm-radius);
}
.bhvm--ratio .bhvm-img {
  aspect-ratio: var(--bhvm-ratio);
  height: auto;
  object-fit: cover;
}

@keyframes bhvm-up {
  from { transform: translateY(0); }
  to   { transform: translateY(calc(-50% - var(--bhvm-gap) / 2)); }
}
@keyframes bhvm-down {
  from { transform: translateY(calc(-50% - var(--bhvm-gap) / 2)); }
  to   { transform: translateY(0); }
}

@media (max-width: 767px) {
  .bhvm { height: var(--bhvm-h-m); }
}

@media (prefers-reduced-motion: reduce) {
  .bhvm-track { animation: none; }
}

.bhvm-empty {
  padding: 16px;
  border: 1px dashed #c3c4c7;
  color: #50575e;
  text-align: center;
}
