.mega-menu-v2__grid {
  max-height: 40dvh;
  --width: 6px;
  --scrollbar-thumb-color: rgba(var(--color-foreground), 0.08);
  --scrollbar-thumb-color-hover: rgba(var(--color-foreground), 0.1);
}
@media (max-width: 1399px) {
  .mega-menu-v2__grid {
    --col-width: 20rem;
  }
}

.mega-menu-v2__link {
  display: inline-block;
  font-size: calc(var(--font-body-scale) * 1.6rem);
  color: rgb(var(--color-foreground));
  padding-bottom: 1rem;
  margin-top: 1.5rem;
  position: relative;
  transition: 0.3s ease;
  font-family: var(--font-custom-family);
}
.mega-menu-v2__link::after {
  content: "";
  position: absolute;
  width: 50%;
  bottom: 0;
  border-bottom: 0.1rem solid rgb(var(--color-foreground), 0.15);
}
[dir=ltr] .mega-menu-v2__link::after {
  left: 0;
}
[dir=rtl] .mega-menu-v2__link::after {
  right: 0;
}
.mega-menu-v2__link:hover {
  color: rgb(var(--color-foreground), 0.6);
}

.mega-menu-v2__img {
  transition: box-shadow 0.2s ease-out;
  box-shadow: 0.3rem 0.4rem 1.8rem rgba(var(--color-foreground), 0.05);
  transition-duration: 0.3s;
  transition-property: transform;
  display: block;
  margin: 0.5rem;
  line-height: calc(1 + 0.6 / var(--font-heading-scale));
  height: 21.5rem;
  overflow: hidden;
  position: relative;
}
.mega-menu-v2__img:hover img {
  transform: translateY(calc(-100% + 21.5rem));
}
.mega-menu-v2__img img {
  transition: transform 2s ease-in-out;
  width: 100%;
  height: 100%;
}
.mega-menu-v2__img .xo-image {
  height: 100%;
}