/* Center and stack logo + menu */
#masthead {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Make logo bigger */
#masthead .custom-logo-link img {
  width: 600px;       /* adjust 240–320 */
  max-width: 90vw;
  height: auto;
  margin-bottom: 12px;
}

/* Center menu row */
#masthead .main-navigation ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}

#masthead .main-navigation li {
  margin: 6px 12px;
}

/* Mobile tweak */
@media (max-width: 600px) {
  #masthead .custom-logo-link img {
    width: 200px;
  }
}
/* Force all menu items onto the same row */
#masthead .main-navigation ul {
  display: flex !important;
  align-items: center !important;
}

/* Normalize ALL menu items */
#masthead .main-navigation li {
  display: inline-flex !important;
  align-items: center !important;
  float: none !important;
}

/* If Fundraising is styled as a button, flatten it */
#masthead .main-navigation a {
  white-space: nowrap !important;
}
/* Apply only to screens 1024px and wider (Laptops/Desktops) */
@media only screen and (min-width: 1024px) {
#masthead .main-navigation ul {
display: flex !important;
flex-wrap: nowrap !important;
justify-content: center !important;
align-items: center !important;
width: 100% !important;
}

#masthead .main-navigation li {
  float: none !important;
  display: inline-flex !important;
}

#masthead .main-navigation a {
  white-space: nowrap !important;
}


}

/* Keep the shared BuckitJLC header stationary without covering opening content. */
body:not(.elementor-editor-active) > header.elementor.elementor-3038.elementor-location-header {
 position: sticky !important;
 top: var(--wp-admin--admin-bar--height, 0px);
 z-index: 9990;
 background: #000;
}
body:not(.elementor-editor-active) > header.elementor.elementor-3038.elementor-location-header > .elementor-element-31af7fed {
 position: relative !important;
 top: auto !important;
 left: auto !important;
 right: auto !important;
 width: 100% !important;
}
html { scroll-padding-top: calc(210px + var(--wp-admin--admin-bar--height, 0px)); }

@media (max-width: 767px) { html { scroll-padding-top: calc(160px + var(--wp-admin--admin-bar--height, 0px)); } }