/* Gia An — shared room panel + lightbox. Each version themes it through the --gr-* variables on :root.
   Defaults are neutral; set in the version's own CSS:
   --gr-overlay (backdrop), --gr-bg (panel), --gr-fg, --gr-mute, --gr-accent, --gr-accent-fg, --gr-line,
   --gr-radius (panel), --gr-radius-img (cover), --gr-radius-thumb, --gr-display (heading font), --gr-body (text font),
   --gr-shadow, --gr-cover-ratio */
:root{
  --gr-overlay:rgba(0,0,0,.82);--gr-bg:#fff;--gr-fg:#1d1a17;--gr-mute:rgba(29,26,23,.65);--gr-accent:#8a6e3c;--gr-accent-fg:#fff;--gr-line:rgba(29,26,23,.14);
  --gr-radius:16px;--gr-radius-img:12px;--gr-radius-thumb:6px;--gr-display:Georgia,serif;--gr-body:system-ui,sans-serif;--gr-shadow:0 30px 80px rgba(0,0,0,.4);--gr-cover-ratio:4/3;
}
html.gr-lock{overflow:hidden}
.gr-modal,.gr-lb{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;padding:20px;background:var(--gr-overlay);animation:gr-fade .3s;overflow:auto;-webkit-font-smoothing:antialiased}
.gr-modal[hidden],.gr-lb[hidden]{display:none}
@keyframes gr-fade{from{opacity:0}to{opacity:1}}
.gr-panel{position:relative;width:min(1060px,100%);max-height:calc(100vh - 40px);overflow:auto;background:var(--gr-bg);color:var(--gr-fg);font-family:var(--gr-body);border-radius:var(--gr-radius);box-shadow:var(--gr-shadow);display:grid;grid-template-columns:.95fr 1.05fr;gap:clamp(18px,3vw,40px);padding:clamp(20px,3vw,38px);line-height:1.6}
.gr-x{position:absolute;top:8px;right:12px;width:44px;height:44px;font:28px/1 var(--gr-body);color:var(--gr-fg);background:none;border:0;cursor:pointer;opacity:.7;z-index:2}
.gr-x:hover{opacity:1}
.gr-cover{margin:0;aspect-ratio:var(--gr-cover-ratio);overflow:hidden;border-radius:var(--gr-radius-img);cursor:zoom-in;background:var(--gr-line)}
.gr-cover img{width:100%;height:100%;object-fit:cover;display:block;transition:transform 1s cubic-bezier(.22,1,.36,1)}
.gr-cover:hover img{transform:scale(1.04)}
.gr-thumbs{display:grid;grid-template-columns:repeat(6,1fr);gap:6px;margin-top:8px;max-height:168px;overflow:auto;padding-right:2px}
.gr-thumbs button{aspect-ratio:1;overflow:hidden;border:0;padding:0;border-radius:var(--gr-radius-thumb);background:var(--gr-line);cursor:zoom-in}
.gr-thumbs img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .6s}
.gr-thumbs button:hover img{transform:scale(1.08)}
.gr-thumbs button:focus-visible,.gr-x:focus-visible,.gr-btn:focus-visible,.gr-lb button:focus-visible{outline:2px solid var(--gr-accent);outline-offset:2px}
.gr-body{display:flex;flex-direction:column;gap:10px;min-width:0}
.gr-block{font-size:11px;letter-spacing:.22em;text-transform:uppercase;color:var(--gr-accent);margin:0}
.gr-title{font-family:var(--gr-display);font-weight:400;font-size:clamp(26px,3vw,38px);line-height:1.1;margin:0;color:var(--gr-fg)}
.gr-sub{font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:var(--gr-mute);margin:0 0 6px}
.gr-desc{margin:0;color:var(--gr-mute);font-size:15px;max-width:52ch}
.gr-spec{display:grid;grid-template-columns:repeat(3,auto);gap:12px 28px;justify-content:start;margin:10px 0 0;padding:14px 0;border-top:1px solid var(--gr-line);border-bottom:1px solid var(--gr-line)}
.gr-spec div{display:flex;flex-direction:column;gap:2px}
.gr-spec dt{font-family:var(--gr-display);font-size:clamp(22px,2.4vw,30px);line-height:1;color:var(--gr-fg)}
.gr-spec dd{margin:0;font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--gr-mute)}
.gr-chips{display:flex;flex-wrap:wrap;gap:6px;list-style:none;margin:4px 0 0;padding:0}
.gr-chips li{font-size:12px;padding:6px 12px;border:1px solid var(--gr-line);border-radius:999px;color:var(--gr-fg)}
.gr-chips li.hi{border-color:var(--gr-accent);color:var(--gr-accent)}
.gr-note{margin:4px 0 0;font-size:12.5px;color:var(--gr-mute)}
.gr-cta{display:flex;gap:10px;flex-wrap:wrap;margin-top:auto;padding-top:14px}
.gr-btn{display:inline-flex;align-items:center;justify-content:center;padding:13px 22px;font-size:12px;letter-spacing:.16em;text-transform:uppercase;text-decoration:none;border-radius:999px;border:1px solid var(--gr-accent);color:var(--gr-fg);transition:background .3s,color .3s,transform .3s}
.gr-btn--main{background:var(--gr-accent);color:var(--gr-accent-fg)}
.gr-btn:hover{transform:translateY(-1px)}
.gr-btn--line:hover{background:var(--gr-line)}
/* lightbox */
.gr-lb{grid-template-columns:56px 1fr 56px;padding:20px 0;place-items:center}
.gr-lb figure{margin:0;display:grid;justify-items:center;gap:12px;max-width:100%}
.gr-lb img{max-width:100%;max-height:82vh;object-fit:contain;border-radius:4px;box-shadow:0 30px 80px rgba(0,0,0,.6)}
.gr-lb figcaption{font-family:var(--gr-body);font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:rgba(255,255,255,.75)}
.gr-lb button{background:none;border:0;color:#fff;cursor:pointer}
.gr-lb__x{position:absolute;top:12px;right:16px;width:48px;height:48px;font-size:40px;line-height:1}
.gr-lb__nav{width:56px;height:100%;font-size:46px;line-height:1;opacity:.75}
.gr-lb__nav:hover{opacity:1}
@media (max-width:860px){
  .gr-panel{grid-template-columns:1fr;max-height:calc(100vh - 24px)}
  .gr-modal{padding:12px}
  .gr-thumbs{grid-template-columns:repeat(5,1fr);max-height:none}
  .gr-spec{gap:10px 18px}
  .gr-lb{grid-template-columns:40px 1fr 40px}
  .gr-lb__nav{width:40px;font-size:36px}
}
@media (prefers-reduced-motion:reduce){.gr-modal,.gr-lb,.gr-cover img,.gr-thumbs img,.gr-btn{animation:none;transition:none}}
