.menu-takeover-section {
  position: relative;
  min-height: 100vh;
  background: #0f0f0d;
  color: #f7f1e7;
}

.menu-takeover-viewport {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  contain: layout paint;
  isolation: isolate;
  background: #0f0f0d;
}

.menu-takeover-menu,
.menu-takeover-foreground,
.menu-takeover-foreground img,
.menu-takeover-overlay {
  will-change: transform, opacity;
}

.menu-takeover-menu {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 1;
  display: block;
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  transform-origin: 50% 0;
}

.menu-takeover-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: rgba(9, 8, 7, .74);
  opacity: 0;
}

.menu-takeover-foregrounds {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.menu-takeover-foreground {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max-content;
  height: max-content;
  margin: 0;
  transform-origin: 50% 50%;
}

.menu-takeover-foreground img {
  display: block;
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  object-fit: initial;
}

.menu-takeover-foreground figcaption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  margin: 0;
  border: 1px solid rgba(216, 168, 76, .56);
  background: rgba(15, 15, 13, .72);
  color: #f7f1e7;
  padding: 8px 10px;
  font: 12px/1.2 Inter, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
}

@media (max-width: 767px), (prefers-reduced-motion: reduce) {
  .menu-takeover-section {
    min-height: 100vh;
  }

  .menu-takeover-viewport {
    min-height: 100vh;
  }
}
