.entry-content {
  transition: filter 0.3s ease;
}
.pre-header a.wp-block-button__link.wp-element-button {
  line-height: 1.5;
}
.custom-header {
  justify-content: space-between;
  gap: 2rem;
  align-items: center;
}

.site-header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 2rem;
}

.custom-header .custom-navigation .menu {
  padding: 0;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  list-style-type: none;
  min-width: max-content;
  width: 100%;
}

.custom-header .custom-navigation .menu-item a {
  text-transform: uppercase;
  text-decoration: none;
  /* min-width: max-content; */
  display: flex;
  flex-direction: column;
}

.custom-header .custom-navigation .menu-item a span.menu-item-desc {
  text-transform: none;
  color: var(--wp--preset--color--gray-300);
  font-size: var(--wp--preset--font-size--small);
  line-height: 1.25;
}

.custom-header .custom-navigation .menu-item a:hover:not(.sub-menu a) {
  text-decoration: underline;
}

.mobile-navigation-control {
  display: none;
}

.mobile-navigation-control button {
  cursor: pointer;
  display: flex;
  align-items: center;
  background-color: transparent;
  border: none;
  color: #000;
}

.mobile-navigation-control .closed .close-menu-icon,
.mobile-navigation-control .opened .open-menu-icon {
  display: none;
}

.menu .submenu-wrapper {
  display: none;
  list-style: none;
  min-width: 15rem;
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--wp--preset--color--gray-300);
  position: absolute;
  z-index: 99;
  max-width: 30rem;
  /* grid-template-columns: repeat(2, 1fr); */
  gap: 1rem;
  border-radius: 0.25rem;
}

.menu .sub-menu {
  list-style: none;
  padding: 0;
}

.menu .sub-menu .menu-item {
  padding: 0.25rem 0.75rem;
  gap: 0.25rem;
  background: #fff;
  transition: background-color 300ms ease-in-out,
    border-radius 300ms ease-in-out;
}

.menu .sub-menu .menu-item:hover {
  background-color: var(--wp--preset--color--gray-50);
  border-radius: 0.25rem;
}

.menu-item-image {
  display: none;
  opacity: 0;
  transition: opacity 500ms ease-in-out;
}

.menu-item-image.hover-active {
  display: block;
  opacity: 1;
  height: 100%;
}

.menu-item-image img {
  opacity: 0;
  transition: opacity 500ms ease-in-out;
  display: block;
  aspect-ratio: 2/3;
  object-fit: cover;
  width: 100%;
  height: 100%;
}
.menu-link .menu-item-desc {
  display: none;
}
.sub-menu .menu-link .menu-item-desc {
  display: block;
}
.menu-item-image.hover-active img {
  opacity: 1;
}
.menu-item-has-children > a .menu-item-title {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}
.menu-item-has-children > a .menu-item-title:after {
  content: "";
  height: 1.5rem;
  width: 1.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M9.75 4.125L6 7.875L2.25 4.125' stroke='%230F172A' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 100%;
  transition: all 500ms;
}
.menu-item-has-children > a:hover .menu-item-title:after,
.menu-item-has-children:hover .menu-item-title:after {
  transform: scaleY(-1);
  transition: all 500ms;
}
.menu li.menu-item-has-children:hover .submenu-wrapper {
  display: flex;
}
.menu-item-images-wrapper {
  max-width: 40%;
}
@media screen and (max-width: 1280px) {
  .custom-header {
    display: grid;
    grid-template-columns: 1fr;
  }

  .menu .sub-menu {
    position: static;
  }

  .mobile-navigation-control {
    display: block;
  }

  .custom-header .custom-navigation .menu-item a {
    width: 100%;
  }

  .custom-header .custom-navigation {
    display: flex;
    position: absolute;
    left: -150%;
    top: 100%;
    width: 100%;
    background-color: #fff;
    transition: left 0.3s ease-in-out;
    padding: var(--wp--style--root--padding-right);
    height: 100vh;
    overflow: auto;
    z-index: 9;
  }

  .custom-header .custom-navigation .menu {
    flex-direction: column;
    max-width: var(--wp--style--global--wide-size);
    margin: 0 auto;
    justify-content: start;
  }

  .custom-navigation.opened {
    left: 0;
  }

  .open-close-navigation {
    cursor: pointer;
  }

  .open-menu-iocn,
  .close-menu-iocn {
    display: none;
  }

  .open-close-navigation.opened .close-menu-iocn {
    display: inline-block;
  }

  .open-close-navigation.closed .open-menu-iocn {
    display: inline-block;
  }
  .reverse-direction-mobile {
    flex-direction: row-reverse;
  }
  .menu .submenu-wrapper {
    grid-template-columns: unset;
    border: none;
    position: static;
  }
  .menu-item-images-wrapper {
    display: none;
  }
}
