/* True-to-scale wall preview. Monochrome chrome — the room photo and the
   artwork carry all the colour. */
.wall-modal{
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: var(--s4);
}
/* `display: grid` above beats the browser default for [hidden], so the modal
   would render open on load without this. */
.wall-modal[hidden]{ display: none; }
.wall-modal__scrim{
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 20, .58);
}
.wall-modal__panel{
  position: relative;
  width: min(900px, 100%);
  background: var(--ground);
  padding: var(--s5);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .5);
}
.wall-modal__close{
  position: absolute;
  top: var(--s3);
  right: var(--s3);
  z-index: 2;
  width: 34px;
  height: 34px;
  border: 0;
  background: none;
  font-size: 26px;
  line-height: 1;
  color: var(--ink);
  cursor: pointer;
}

/* The room. The photo is bottom-anchored at full width — wall.js measures
   against that, so don't change the object-fit or anchoring without
   re-measuring SOFA_FRAC / PHOTO_AR / FLOOR_FRAC. */
.wall-room{
  position: relative;
  width: 100%;
  aspect-ratio: 1.115;   /* taller than the photo: the gap is hangable wall */
  overflow: hidden;
  background: var(--hair);
}
.wall-room__photo{
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;
}
.wall-room__art{
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  object-fit: contain;
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .55);
}

.wall-modal__bar{
  display: flex;
  flex-wrap: wrap;
  gap: var(--s4);
  align-items: flex-end;
  justify-content: space-between;
  padding-top: var(--s4);
}
.wall-modal__title{
  margin: 0 0 var(--s1);
  font: 700 var(--t-title)/1.1 var(--f-display);
  letter-spacing: -0.02em;
}
.wall-modal__bar p{ margin: 0; }

.wall-chips{ display: flex; flex-wrap: wrap; gap: var(--s2); }
.wall-chip{
  padding: var(--s2) var(--s3);
  border: 1px solid var(--hair);
  background: none;
  cursor: pointer;
  font: 600 var(--t-micro)/1 var(--f-mono);
  letter-spacing: var(--tracking-micro);
  text-transform: uppercase;
  color: var(--ink-2);
  transition: border-color .15s ease, color .15s ease;
}
.wall-chip:hover{ color: var(--ink); border-color: var(--ink-2); }
.wall-chip[aria-pressed="true"]{ color: var(--ground); background: var(--ink); border-color: var(--ink); }

@media (max-width: 620px){
  .wall-modal__panel{ padding: var(--s4); }
  .wall-modal__bar{ align-items: flex-start; }
}
