.gx { position: relative; margin-top: clamp(2rem, 5vw, 3.5rem); }
.js .g-grid[data-gx-source] { display: none; }
.js .gx:not([data-ready]) { min-height: clamp(520px, 80svh, 780px); }
.gx-stage { position: relative; }
html.lb-open { overflow: hidden; }
.lightbox { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(8, 8, 9, 0.97); color: var(--text); }
.lightbox::backdrop { background: #080809; }
.lightbox[open] { display: grid; grid-template-rows: minmax(0, 1fr) auto; justify-items: center; }
@media (prefers-reduced-motion: no-preference) {
  .lightbox[open] { animation: lb-in 0.3s ease both; }
  @keyframes lb-in {
    from { opacity: 0; }
  }
}
.lb-figure { grid-template-rows: minmax(0, 1fr) auto; justify-items: center; margin: 0; padding: 3.5rem var(--gutter) 0.5rem; width: 100%; touch-action: pan-y; }
.lightbox:not([data-shape=""]) .lb-img { object-fit: cover; }
.lb-figure figcaption { padding-top: 0.75rem; text-align: center; }
.lb-name { font-size: 1.6rem; }
.lb-name:empty { display: none; }
.lb-alt, .lb-count { margin: 0.25rem 0 0; color: var(--muted); font-size: 0.9rem; }
.lb-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; padding: 0.75rem var(--gutter) calc(1rem + env(safe-area-inset-bottom, 0px)); }
.lb-close { position: absolute; top: calc(0.75rem + env(safe-area-inset-top, 0px)); right: var(--gutter); z-index: 2; width: 3rem; padding: 0; }
.wall { display: grid; gap: 1rem; }
.room { position: absolute; inset: 0; }
.room { opacity: 0; transition: opacity 0.7s ease; }
.room.is-on { opacity: 1; }
.room::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 100% at 50% 40%, transparent 55%, rgba(0, 0, 0, 0.28) 100%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .38 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); background-size: auto, 180px 180px; opacity: 0.55; pointer-events: none; }
.room .f1 { fill: var(--f1); }
.room .f2 { fill: var(--f2); }
.room .f3 { fill: var(--f3); }
.wm { position: absolute; left: 0; top: 0; padding: 0; border: 0; background: none; cursor: pointer; transform-origin: 50% 50%; will-change: transform, opacity; transition: transform 0.85s cubic-bezier(0.22, 0.9, 0.2, 1), opacity 0.5s ease; -webkit-tap-highlight-color: transparent; }
.wm:focus-visible { outline: none; }
@media (prefers-reduced-motion: no-preference) {
    }
@media (prefers-reduced-motion: reduce) {
  .wm, .room { transition: none; }
}
.ix { position: relative; }
.sl-grid { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: clamp(1.5rem, 4vw, 3.5rem) clamp(1rem, 3vw, 2.5rem); margin: 0; padding: 0; list-style: none; }
.sl-li { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; width: var(--cell, 45%); min-height: calc(var(--cell, 160px) * 1.2); }
.sl-item { display: block; width: var(--w, 40vw); height: var(--h, 50vw); padding: 0; border: 0; background: none; color: inherit; cursor: zoom-in; filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.55)); transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.35s; }
.sl-item img { display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; user-select: none; }
.sl-item:hover, .sl-item:focus-visible { transform: translateY(-6px) scale(1.04); filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.65)) drop-shadow(0 0 14px rgba(255, 255, 255, 0.18)); }
.sl-item:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
.sl-name { margin-top: 0.9rem; color: var(--muted); text-transform: uppercase; }
@media (prefers-reduced-motion: reduce) {
  .sl-item { transition: none; }
}
