@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;
}
.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 {
  object-position: bottom;
}
.mega-menu-v2__img img {
  transition: object-position 2s ease-in-out;
  width: 100%;
  height: 100%;
  object-position: top;
}
.mega-menu-v2__img .xo-image {
  height: 100%;
}