/* "See it on your wall" window: the room picture on the left, the controls beside it. */
.wall { border: 0; padding: 0; width: min(72rem, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); background: var(--sc-canvas); color: var(--sc-ink); }
.wall::backdrop { background: rgb(0 0 0 / 0.75); }
.wall[open] { display: grid; grid-template-columns: minmax(0, 1fr) 18rem; }
.wall__stage { position: relative; overflow: hidden; min-height: min(70dvh, 40rem); background: #D8D2C8; touch-action: none; }
.wall__room { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wall__art {
  position: absolute; translate: -50% -50%; cursor: grab;
  box-shadow: 0 2px 3px rgb(0 0 0 / 0.25), 0 18px 30px -8px rgb(0 0 0 / 0.45);
}
.wall__art:active { cursor: grabbing; }
.wall__art:focus-visible { outline: 3px solid var(--sc-accent); outline-offset: 4px; }
.wall__art img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.wall__controls { display: grid; align-content: start; gap: var(--sc-4); padding: var(--sc-5); overflow-y: auto; }
.wall__controls h2 { margin: 0; font: 600 var(--sc-t-lg) var(--sc-font-text); }
.wall__controls p { margin: 0; color: var(--sc-ink-soft); font-size: var(--sc-t-sm); }
.wall__controls label { display: grid; gap: var(--sc-2); font: 500 var(--sc-t-xs) var(--sc-font-mono); text-transform: uppercase; letter-spacing: 0.04em; }
.wall__upload input { font: 400 var(--sc-t-sm) var(--sc-font-text); text-transform: none; color: var(--sc-ink); }
.wall__controls input[type="range"] { accent-color: var(--sc-accent); min-height: 44px; }
.wall__controls input[type="color"] { width: 4rem; height: 44px; padding: 2px; border: 2px solid var(--sc-ink); background: transparent; }
.wall__close { justify-self: start; }

@media (max-width: 760px) {
  .wall[open] { grid-template-columns: 1fr; }
  .wall__stage { min-height: 52dvh; }
}

/* The small "See on your wall" button under every painting. */
.wall-btn {
  min-height: 36px; padding: 0 0.8em; border: 1.5px solid var(--sc-ink); background: transparent; color: var(--sc-ink);
  font: 500 var(--sc-t-xs) var(--sc-font-mono); letter-spacing: 0.04em; text-transform: uppercase; cursor: pointer;
}
.wall-btn:hover { background: var(--sc-ink); color: var(--sc-canvas); }
