/* Shared mobile top bar + full-screen nav menu. Included on every public
   page alongside that page's own mobile.css-imported patterns. Only meant
   to render under the mobile breakpoint — each page's own CSS hides
   .fx-m-root (this + the page's mobile content) above 768px and hides
   .figma-stage-wrap (the desktop Figma canvas) at or below it. */

/* Per-category brand color, set on .fx-m-root via data-accent so every
   descendant (topbar, page title, cards) can pick it up through
   var(--m-accent) without a second color system. Same 4 colors already
   used for the hamburger menu list text below. Pages with no single
   category (home, contact, story) fall back to near-black. */
.fx-m-root {
  --m-accent: #242424;
}

.fx-m-root[data-accent="photos"] { --m-accent: #4e02ff; }
.fx-m-root[data-accent="film"] { --m-accent: #3a6424; }
.fx-m-root[data-accent="design"] { --m-accent: #ff2890; }
.fx-m-root[data-accent="development"] { --m-accent: #ff9e02; }

.fx-m-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 14px;
  height: 56px;
  padding: 0 16px;
  background: #fff;
  border-bottom: 2px solid #242424;
}

.fx-m-topbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 3px;
  background: var(--m-accent);
}

.fx-m-home-btn {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  text-decoration: none;
}

.fx-m-home-btn img {
  width: 22px;
  height: 20px;
  object-fit: contain;
}

.fx-m-menu-btn {
  flex: 0 0 auto;
  width: 30px;
  height: 24px;
  border: 0;
  padding: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.fx-m-menu-btn span {
  display: block;
  height: 3px;
  border-radius: 2px;
  background: #242424;
}

.fx-m-logo {
  flex: 1 1 auto;
  font-family: "Griun Simsimche", cursive;
  font-size: 18px;
  letter-spacing: 0.5px;
  color: var(--m-accent);
  text-decoration: none;
  text-align: center;
}

.fx-m-topbar-spacer {
  flex: 0 0 auto;
  width: 30px;
}

.fx-m-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  flex-direction: column;
  background: #fff;
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms ease, visibility 0s linear 220ms;
}

.fx-m-menu-overlay.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 220ms ease, visibility 0s linear 0s;
}

.fx-m-menu-close {
  align-self: flex-end;
  margin: 14px 16px 0 0;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  font-size: 30px;
  line-height: 1;
  color: #242424;
  cursor: pointer;
}

.fx-m-menu-list {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 6px;
  padding: 0 28px 40px;
}

.fx-m-menu-list a {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 6px;
  text-decoration: none;
  color: #242424;
  border-bottom: 1px solid #eee;
}

.fx-m-menu-list a img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.fx-m-menu-list a span {
  font-family: "Griun Simsimche", cursive;
  font-size: 21px;
  letter-spacing: 0.8px;
}

.fx-m-menu-list a[data-page="photos"] span { color: #4e02ff; }
.fx-m-menu-list a[data-page="film"] span { color: #3a6424; }
.fx-m-menu-list a[data-page="design"] span { color: #ff2890; }
.fx-m-menu-list a[data-page="development"] span { color: #ff9e02; }

.fx-m-root {
  display: none;
}

@media (max-width: 768px) {
  .figma-stage-wrap,
  .fx-gallery-viewport {
    display: none !important;
  }

  .fx-m-root {
    display: block;
  }

  body {
    overflow-y: auto !important;
    cursor: auto !important;
  }
}
