.menu-overlay {
  position: fixed;
  inset: 0;
  background: #fff;
  display: grid;
  grid-template-columns: 1fr 1fr;
  transform: translateX(100%);
  transition: transform .6s ease;
  z-index: 9998;
}

.menu-overlay.open {
  transform: translateX(0);
}

.menu-left {
  position: relative;
  height: 100vh;
  overflow: hidden;
  background: var(--soft);
  display: block; /* CRITICAL */
}

.slider {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
}


.slider img.active {
  opacity: 1;
}

.menu-right {
  padding: 120px;
}

.menu-right nav a {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: var(--dark);
  text-decoration: none;
  margin-bottom: 26px;
  position: relative;
}

.menu-right nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width .4s ease;
}

.menu-right nav a:hover::after {
  width: 100%;
}

.close {
  position: absolute;
  top: 30px;
  right: 50px;
  font-size: 40px;
  background: none;
  border: none;
  cursor: pointer;
}


/* =========================
   MOBILE MENU (TEXT ONLY)
========================= */

@media (max-width: 900px) {

  /* single column layout */
  .menu-overlay {
    grid-template-columns: 1fr;
  }

  /* remove left image panel */
  .menu-left {
    display: none;
  }

  /* expand menu text full width */
  .menu-right {
    padding: 100px 32px;
  }

  /* slightly larger tap targets */
  .menu-right nav a {
    font-size: 20px;
    margin-bottom: 22px;
  }

}


/* =========================
   FORCE MOBILE MENU (NO IMAGE)
========================= */

@media (max-width: 900px) {

  /* force single column */
  .menu-overlay {
    grid-template-columns: 1fr !important;
  }

  /* kill left column completely */
  .menu-left {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
  }

  /* kill slider + images just in case */
  .menu-left .slider,
  .menu-left img {
    display: none !important;
  }

  /* ensure right side takes full width */
  .menu-right {
    grid-column: 1 / -1 !important;
    width: 100%;
    padding: 100px 32px;
  }

}
