html { scroll-behavior: smooth; }
body.glory-archive-theme { overflow-x: hidden; }
body.archive-menu-open { overflow: hidden; }
.search-screen { display: none; }
body.archive-search-open .search-screen,
body.archive-search-open .search-screen-overlay { display: block; }
.scrolltop { opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s ease; }
.scrolltop.is-visible { opacity: 1; visibility: visible; }
@media (max-width: 991px) {
  .main-navigation-inner { display: none; }
  body.archive-menu-open .main-navigation-inner { display: block; }
}

/* Mobile menu reliability fix: explicit open state for archive theme */
@media (max-width: 991px) {
  body.glory-archive-theme .main-navigation .main-navigation-inner {
    display: none;
  }

  body.archive-menu-open .main-navigation .main-navigation-inner,
  body.glory-archive-theme .main-navigation.is-open .main-navigation-inner,
  body.glory-archive-theme .main-navigation .main-navigation-inner.is-open {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    max-height: calc(100vh - 90px);
    overflow-y: auto;
  }

  body.glory-archive-theme .humburger.js-humburger {
    cursor: pointer;
    touch-action: manipulation;
  }
}

/* Mobile burger tap/z-index hard fix */
@media (max-width: 991px) {
  body.glory-archive-theme .site-header,
  body.glory-archive-theme .site-header-inner {
    position: relative !important;
    z-index: 10000 !important;
  }

  body.glory-archive-theme .humburger.js-humburger {
    position: relative !important;
    z-index: 10050 !important;
    pointer-events: auto !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
  }

  body.glory-archive-theme .humburger.js-humburger:before {
    pointer-events: auto !important;
  }

  body.glory-archive-theme .header-html-1,
  body.glory-archive-theme .header-html-2,
  body.glory-archive-theme .site-branding {
    position: relative;
    z-index: 1;
  }

  body.glory-archive-theme .main-navigation {
    position: relative !important;
    z-index: 9999 !important;
  }

  body.archive-menu-open.glory-archive-theme .main-navigation {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}

/* Mobile burger visual size fix */
@media (max-width: 991px) {
  body.glory-archive-theme .humburger.js-humburger {
    width: 26px !important;
    height: 20px !important;
    min-width: 26px !important;
    min-height: 20px !important;
    padding: 0 !important;
    margin: 0 14px 0 0 !important;
    display: inline-block !important;
    flex: 0 0 26px !important;
  }

  body.glory-archive-theme .humburger.js-humburger:before {
    top: -10px !important;
    right: -10px !important;
    bottom: -10px !important;
    left: -10px !important;
  }

  body.glory-archive-theme .humburger.js-humburger span {
    width: 26px !important;
    height: 3px !important;
    margin-left: -13px !important;
  }
}
