/* =========================================== */
/* TEMPLATE NAVBAR OVERRIDES */
/* Maximum specificity overrides for navbar consistency */
/* MUST load after all other CSS */
/* =========================================== */

/* Maximum specificity override for navbar - ensures consistency */
html body .editorial-navbar,
html body .navbar-enhanced,
html body .header.navbar {
  background: #ffffff !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  height: 64px !important;
}

html body .editorial-navbar.scrolled,
html body .navbar-enhanced.scrolled,
html body .header.navbar.scrolled {
  background: #ffffff !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  height: 60px !important;
}

/* CRITICAL: Maximum specificity CSS to ensure overlay is visible */
html body #editorialNavOverlay.active,
html body .editorial-nav-overlay.active,
body #editorialNavOverlay.active,
#editorialNavOverlay.active {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  z-index: 999999 !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  min-width: 100vw !important;
  min-height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  background: rgba(0, 0, 0, 0.98) !important;
  background-color: rgba(0, 0, 0, 0.98) !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  transform: none !important;
}

/* Ensure overlay content is visible when active */
#editorialNavOverlay.active .editorial-nav-overlay-content,
html body .editorial-nav-overlay.active .editorial-nav-overlay-content {
  display: flex !important;
  flex-direction: column !important;
  opacity: 1 !important;
  visibility: visible !important;
  height: 100vh !important;
  max-height: 100vh !important;
  width: 100% !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  overflow-y: auto !important;
}

/* Ensure overlay menu is visible - OVERRIDE ALL ANIMATIONS */
#editorialNavOverlay.active .editorial-nav-overlay-menu,
html body .editorial-nav-overlay.active .editorial-nav-overlay-menu,
html body #editorialNavOverlay.active .editorial-nav-overlay-menu {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: flex-start !important;
  gap: 1rem !important;
  width: 100% !important;
  flex: 1 !important;
  padding: 3rem !important;
  position: relative !important;
  z-index: 2 !important;
  transform: translateY(0) !important;
  transform: translateX(0) !important;
  animation: none !important;
  min-height: 0 !important;
  overflow: visible !important;
}

/* Ensure menu list items are visible */
#editorialNavOverlay.active .editorial-nav-overlay-menu ul,
html body #editorialNavOverlay.active .editorial-nav-overlay-menu ul {
  display: flex !important;
  flex-direction: column !important;
  opacity: 1 !important;
  visibility: visible !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  gap: 1.5rem !important;
}

#editorialNavOverlay.active .editorial-nav-overlay-menu li,
html body #editorialNavOverlay.active .editorial-nav-overlay-menu li {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Ensure links are visible and properly styled - OVERRIDE ALL ANIMATIONS */
#editorialNavOverlay.active .editorial-nav-link,
html body #editorialNavOverlay.active .editorial-nav-link,
html body #editorialNavOverlay.active a.editorial-nav-link {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  color: #ffffff !important;
  font-size: 1rem !important;
  font-family: var(--font-headline, 'Playfair Display', serif) !important;
  text-decoration: none !important;
  padding: 0.5rem 0 !important;
  margin: 0 !important;
  line-height: 1 !important;
  transform: translate(0, 0) !important;
  animation: none !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
}

/* Ensure menu is positioned correctly in grid - CRITICAL */
#editorialNavOverlay.active .editorial-nav-overlay-menu,
html body #editorialNavOverlay.active .editorial-nav-overlay-menu {
  grid-column: 1 !important;
  grid-row: 2 !important;
  align-self: center !important;
  justify-self: stretch !important;
  width: 100% !important;
  height: auto !important;
  min-height: auto !important;
}

/* Ensure header is in row 1 */
#editorialNavOverlay.active .editorial-nav-overlay-header {
  grid-column: 1 !important;
  grid-row: 1 !important;
}

/* Ensure overlay menu and links are visible */
#editorialNavOverlay.active .editorial-nav-overlay-menu,
#editorialNavOverlay.active .editorial-nav-overlay-menu ul,
#editorialNavOverlay.active .editorial-nav-link {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  color: #ffffff !important;
}

/* Ensure close button is visible */
#editorialNavOverlay.active .editorial-nav-overlay-close {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  color: #ffffff !important;
  cursor: pointer !important;
}

/* Ensure overlay content is visible */
#editorialNavOverlay.active .editorial-nav-overlay-content {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Ensure all text is white when overlay is active */
#editorialNavOverlay.active * {
  color: #ffffff !important;
}

/* Ensure links are visible */
#editorialNavOverlay.active a,
#editorialNavOverlay.active .editorial-nav-link {
  color: #ffffff !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* =========================================== */
/* ART PAGE NAVBAR STYLES */
/* Glassmorphism navbar background for art.html */
/* =========================================== */
/* CRITICAL: This MUST be the last style to ensure white navbar background */
html:not([data-bs-theme="dark"]) body header.editorial-navbar,
html:not([data-bs-theme="dark"]) body .editorial-navbar,
html:not([data-bs-theme="dark"]) .editorial-navbar {
  background: rgba(255, 255, 255, 0.7) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1) !important;
}

html:not([data-bs-theme="dark"]) body header.editorial-navbar.scrolled,
html:not([data-bs-theme="dark"]) body .editorial-navbar.scrolled,
html:not([data-bs-theme="dark"]) .editorial-navbar.scrolled {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(24px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(200%) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05) !important;
}

