.mu-wall {
  --wall-paper: #f7f7f7;
  --wall-ink: #151515;
  --wall-gap: clamp(.45rem, 1.1cqi, .85rem);
  --wall-radius: .85rem;
  container: mono-wall / inline-size;
  width: 100%;
  min-width: 0;
  color: var(--wall-ink);
  background: var(--wall-paper);
}
.mu-wall-inner { max-width: 66rem; margin: auto; padding: clamp(1.5rem, 5cqi, 4.75rem) clamp(.9rem, 3.8cqi, 2.75rem); }
.mu-wall-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem 2rem;
  border-bottom: 1px solid #c6c6c6;
  padding-bottom: clamp(1.1rem, 2.5cqi, 2.25rem);
  margin-bottom: clamp(1.25rem, 2.8cqi, 2.5rem);
}
.mu-wall .mu-wall-head h2 { margin: 0; color: inherit; font-size: clamp(2.75rem, 6.5cqi, 5rem); font-weight: 620; line-height: .99; letter-spacing: -.065em; overflow-wrap: anywhere; }
.mu-wall-head p { max-width: 32ch; margin: 0; color: #494949; font-size: clamp(.95rem, 1.35cqi, 1.07rem); line-height: 1.45; }
.mu-wall-grid {
  --wall-columns: 10;
  display: grid;
  grid-template-columns: repeat(var(--wall-columns), minmax(0, 1fr));
  gap: var(--wall-gap);
  align-items: start;
  position: relative;
  isolation: isolate;
}
.mu-wall-grid details { min-width: 0; margin: 0; }
.mu-wall-grid summary {
  position: relative;
  display: block;
  list-style: none;
  max-width: 100%;
  aspect-ratio: 1;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--wall-radius);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.mu-wall-grid summary::-webkit-details-marker { display: none; }
.mu-wall-portrait {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: inherit;
  background: #e4e4e4;
  box-shadow: inset 0 0 0 1px #0001;
}
.mu-wall-portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.mu-wall-fallback { padding: .3rem; text-align: center; overflow-wrap: anywhere; font: 550 clamp(.75rem, 1.8cqi, 1.35rem)/1.1 ui-monospace, Consolas, monospace; }
.mu-wall-grid summary:focus-visible, .mu-wall .mu-wall-quote:focus-visible { outline: 2px solid var(--wall-ink); outline-offset: 3px; }
.mu-wall-quote {
  box-sizing: border-box;
  margin: 0;
  padding: 1rem 1.1rem;
  border: 1px solid #dedede;
  border-radius: .75rem;
  background: #fff;
  color: #171717;
  overflow-wrap: anywhere;
}
.mu-wall-quote blockquote { margin: 0; padding: 0; font: 490 1.04rem/1.43 Inter, "Helvetica Neue", Arial, sans-serif; letter-spacing: -.019em; }
.mu-wall-quote blockquote::before { content: "“"; }
.mu-wall-quote blockquote::after { content: "”"; }
.mu-wall-quote figcaption { margin-top: .85rem; padding-top: .6rem; border-top: 1px solid #e3e3e3; display: grid; gap: .14rem; }
.mu-wall-quote strong { font-size: .84rem; line-height: 1.25; }
.mu-wall-quote figcaption span { color: #535353; font: 500 .65rem/1.45 ui-monospace, Consolas, monospace; letter-spacing: .035em; text-transform: uppercase; }
.mu-wall-empty { padding-block: 1.5rem; color: #535353; }
/* With native disclosure alone, the open quote takes a full row in reading order. */
.mu-wall:not([data-wall-ready]) details[open] { grid-column: 1 / -1; }
.mu-wall:not([data-wall-ready]) details[open] summary { width: 5rem; margin-bottom: .5rem; }
.mu-wall[data-wall-ready] details[open] summary { z-index: 2; }
.mu-wall[data-wall-ready] details[open] summary::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 10px;
  height: 10px;
  background: #fff;
  border-color: #dedede;
  border-style: solid;
  transform: translateX(-50%) rotate(45deg);
  pointer-events: none;
}
.mu-wall details:has([data-wall-side="below"]) summary::after { top: calc(100% + 5px); border-width: 1px 0 0 1px; }
.mu-wall details:has([data-wall-side="above"]) summary::after { bottom: calc(100% + 5px); border-width: 0 1px 1px 0; }
.mu-wall[data-wall-ready] .mu-wall-grid:has(details[open]) details:not([open]) .mu-wall-portrait { opacity: .32; filter: blur(1.3px); }
.mu-wall[data-wall-ready] .mu-wall-quote {
  position: absolute;
  z-index: 3;
  left: var(--wall-x, 0px);
  top: var(--wall-y, 0px);
  width: min(16.5rem, 100%);
  max-height: var(--wall-room, 80vh);
  overflow: auto;
  box-shadow: 0 .6rem 1.7rem #0002, 0 1px 3px #0001;
}
@media (prefers-reduced-motion: no-preference) {
  .mu-wall-portrait { transition: opacity 140ms ease-out, filter 140ms ease-out; }
}
@container mono-wall (max-width: 51rem) { .mu-wall-grid { --wall-columns: 6; } }
@container mono-wall (max-width: 35rem) { .mu-wall-grid { --wall-columns: 5; } }
@container mono-wall (max-width: 25rem) { .mu-wall-grid { --wall-columns: 4; } }
@container mono-wall (max-width: 17rem) { .mu-wall-grid { --wall-columns: 3; } }
@media (forced-colors: active) {
  .mu-wall-portrait, .mu-wall-quote { border: 1px solid CanvasText; }
  .mu-wall[data-wall-ready] .mu-wall-grid:has(details[open]) details:not([open]) .mu-wall-portrait { filter: none; opacity: 1; }
  .mu-wall details[open] summary { outline: 2px solid Highlight; outline-offset: 2px; }
}
