.selected-site .wall-toolbar {
  position: sticky; top: 0; z-index: 6; background: var(--paper);
  padding: 20px 0; border-bottom: 1px solid var(--paper);
}
.wall-views { display: flex; padding: 4px; gap: 3px; background: #fff7d780; border-radius: 30px; flex-shrink: 0; }
.wall-views button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 44px; padding: 10px 16px; border: 0; border-radius: 24px; background: transparent; color: var(--ink); font: 500 14px/1.2 var(--body); transition: background .2s, color .2s; }
.wall-views button[aria-pressed='true'] { background: var(--ink); color: var(--paper); }
.wall-views button:not([aria-pressed='true']):hover { background: #c82e3610; }
.wall-views button:disabled { opacity: .6; cursor: wait; }
.wall-views svg { width: 17px; height: 17px; fill: currentColor; flex-shrink: 0; }
.wall-views button:focus-visible { outline-offset: 2px; }
[data-living-wall] { overflow-anchor: none; isolation: isolate; }
[data-living-wall] .gallery-tile { cursor: zoom-in; contain: layout paint; }
[data-living-wall] .tile-surface { position: absolute; inset: 0; overflow: hidden; }
[data-living-wall] .tile-surface > img { width: 100%; height: 100%; object-fit: cover; display: block; }
[data-living-wall] .gallery-tile .expand { color: var(--ink); background: #fff7d7; width: 38px; height: 38px; bottom: 14px; right: 14px; }
[data-living-wall] .expand svg { width: 19px; }
[data-living-wall] .gallery-tile:focus-visible { outline: 3px solid var(--cream); outline-offset: -6px; z-index: 2; }
[data-living-wall] .gallery-tile.is-featured .expand { width: 44px; height: 44px; }
.living-viewer {
  position: fixed; inset: 0; margin: 0; width: 100%; height: 100dvh;
  max-width: none; max-height: none; padding: 0; overflow: hidden; background: transparent;
}
.living-viewer::backdrop { width: 100vw; height: 100dvh; background: #28191ded; backdrop-filter: blur(10px); }
.living-viewer[data-state='opening']::backdrop { animation: wall-backdrop-in 420ms ease both; }
.living-viewer[data-state='closing']::backdrop { animation: wall-backdrop-out 320ms ease both; }
.living-viewer .lightbox-shell { width: min(1300px, calc(100% - 64px)); height: 100%; max-height: none; margin: auto; padding: 18px 0; display: grid; grid-template-rows: 56px minmax(0, 1fr) 54px; }
.living-viewer .lightbox-top { padding: 0 0 12px; min-height: 0; }
.living-viewer .lightbox-top h2 { font-size: 25px; }
.living-viewer .lightbox-stage { width: 100%; height: 100%; min-height: 0; }
.living-viewer .lightbox-stage > img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; background: transparent; user-select: none; }
.living-viewer .lightbox-bottom { min-height: 0; padding-top: 12px; font-size: 14px; color: #fff7d7; }
.living-viewer .viewer-nav, .living-viewer .icon-button { width: 48px; height: 48px; color: #fff7d7; border-color: #fff7d760; background: #28191d90; }
.living-viewer .viewer-nav:hover, .living-viewer .icon-button:hover { background: #c82e36; }
.living-viewer .previous { left: 0; }
.living-viewer .next { right: 0; }
.living-viewer .lightbox-top, .living-viewer .lightbox-bottom, .living-viewer .viewer-nav { transition: opacity .2s ease; }
.living-viewer[data-state='opening'] .lightbox-top, .living-viewer[data-state='opening'] .lightbox-bottom, .living-viewer[data-state='opening'] .viewer-nav,
.living-viewer[data-state='closing'] .lightbox-top, .living-viewer[data-state='closing'] .lightbox-bottom, .living-viewer[data-state='closing'] .viewer-nav { opacity: 0; }
.photo-flight { position: fixed; z-index: 10; overflow: hidden; pointer-events: none; margin: 0; }
.photo-flight img { display: block; width: 100%; height: 100%; object-fit: cover; }
@keyframes wall-backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes wall-backdrop-out { from { opacity: 1; } to { opacity: 0; } }
@media (max-width: 700px) {
  .selected-site .wall-toolbar { align-items: stretch; flex-direction: column; gap: 12px; padding: 17px 0 13px; }
  .wall-views { width: 100%; }
  .wall-views button { flex: 1; font-size: 14px; padding: 10px 9px; }
  [data-living-wall] .gallery-tile .expand { width: 28px; height: 28px; bottom: 9px; right: 9px; opacity: 0; }
  [data-living-wall] .gallery-tile.is-featured .expand { width: 38px; height: 38px; opacity: 1; }
  [data-living-wall] .gallery-tile:focus-visible .expand { opacity: 1; }
  [data-living-wall] .expand svg { width: 16px; }
  .living-viewer .lightbox-shell { width: calc(100% - 24px); padding: max(12px, env(safe-area-inset-top)) 0 max(12px, env(safe-area-inset-bottom)); grid-template-rows: 56px minmax(0, 1fr) 50px; }
  .living-viewer .lightbox-stage > img { max-width: 100%; max-height: 100%; }
  .living-viewer .viewer-nav { width: 44px; height: 44px; }
  .living-viewer .previous { left: 6px; }
  .living-viewer .next { right: 6px; }
  .living-viewer .lightbox-bottom { font-size: 13px; }
}
@media (hover: none) { [data-living-wall] .gallery-tile:hover img { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .living-viewer::backdrop { animation: none !important; }
  [data-living-wall] *, .living-viewer * { animation-duration: 0s !important; transition: none !important; }
}
