/**
 * Return to demo hub (fixed so it never fights the header layout).
 */
a.back-to-gallery {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  z-index: 10050;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: #f6f6f6;
  background: rgba(12, 12, 12, 0.88);
  border: 1px solid rgba(245, 208, 0, 0.4);
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}
a.back-to-gallery:hover,
a.back-to-gallery:focus-visible {
  color: #111;
  background: #f5d000;
  border-color: #f5d000;
  outline: none;
}
a.back-to-gallery--light {
  color: #111;
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}
a.back-to-gallery--light:hover,
a.back-to-gallery--light:focus-visible {
  color: #fff;
  background: #111;
  border-color: #111;
}

/**
 * Events412 logo — default asset for dark headers (events412-logo.png).
 * Twin ring: light inner + dark outer separates the mark from dark backdrops.
 */
img.events412-logo {
  border-radius: 3px;
  vertical-align: middle;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.34),
    0 0 0 2px rgba(0, 0, 0, 0.42),
    0 2px 14px rgba(0, 0, 0, 0.22);
}

/**
 * Dark logo asset on light headers (events412-logo-dark.png) — softer edge on paper/white.
 */
img.events412-logo.events412-logo-on-light {
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.1),
    0 2px 12px rgba(0, 0, 0, 0.08);
}

@media (prefers-contrast: more) {
  img.events412-logo:not(.events412-logo-on-light) {
    box-shadow:
      0 0 0 2px #ffffff,
      0 0 0 4px #000000,
      0 2px 12px rgba(0, 0, 0, 0.35);
  }
  img.events412-logo.events412-logo-on-light {
    box-shadow:
      0 0 0 2px #000000,
      0 2px 10px rgba(0, 0, 0, 0.2);
  }
}
