/* Apex logo component — edit sizing here only (heights at 65% of original) */
:root {
  --apex-logo-height: 312px;
  --apex-logo-img-max: 286px;
}

.apex-site-header__row {
  align-items: center;
}

.apex-site-header__row > .apex-logo-component {
  margin-left: 0;
  flex: 0 0 auto;
  width: auto;
  max-width: 48%;
  z-index: 1;
  overflow: visible;
}

.apex-site-header__row > .apex-header-nav-component {
  flex: 1 1 0;
  min-width: 0;
  z-index: 2;
}

.apex-logo-component .te-logo {
  height: var(--apex-logo-height);
  min-height: 0;
  max-width: 100%;
  width: 100%;
  transform: translateX(-30%);
}

.apex-logo-component .te-logo a {
  display: block;
  max-width: 100%;
}

.apex-logo-component .te-logo img {
  display: block;
  height: auto;
  max-height: var(--apex-logo-img-max);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}

/* Prevent template sticky-scroll from shrinking or swapping the logo */
.header-area.style-1 .te-header-menu-area:has(.apex-site-header__row).te-sticky_menu {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  box-shadow: none !important;
  background: transparent !important;
  animation: none !important;
}

.header-area.style-1 .te-header-menu-area:has(.apex-site-header__row).te-sticky_menu .te-logo .te-standard-logo {
  display: block !important;
}

.header-area.style-1 .te-header-menu-area:has(.apex-site-header__row).te-sticky_menu .te-logo .te-sticky-logo {
  display: none !important;
}

.header-area.style-1 .te-header-menu-area:has(.apex-site-header__row).te-sticky_menu .apex-logo-component .te-logo {
  height: var(--apex-logo-height);
}

.header-area.style-1 .te-header-menu-area:has(.apex-site-header__row).te-sticky_menu .apex-logo-component .te-logo img {
  max-height: var(--apex-logo-img-max);
  width: auto;
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
  :root {
    --apex-logo-height: 286px;
    --apex-logo-img-max: 247px;
  }

  .apex-site-header__row > .apex-logo-component {
    max-width: 50%;
  }
}

@media only screen and (max-width: 767px) {
  :root {
    --apex-logo-height: 229px;
    --apex-logo-img-max: 187px;
  }

  .apex-site-header__row > .apex-logo-component {
    max-width: 58%;
  }
}
