.room-dialog {
  --gallery-photo-fit:cover;
  width:min(1440px,calc(100vw - 48px));
  height:min(960px,calc((100vw - 48px) * 2 / 3),calc(100dvh - 48px));
  max-width:none;
  max-height:none;
  margin:auto;
  padding:0;
  overflow:hidden;
  border:1px solid #fff7e4a6;
  border-radius:clamp(20px,2.7vw,36px);
  background:#4a3b2a;
  color:#fff9ed;
  box-shadow:0 30px 90px #130f0b85;
}
.room-dialog[open] { display:block; animation:gallery-open .38s cubic-bezier(.2,.65,.25,1) both; }
.room-dialog::backdrop { background:#20170eb5; backdrop-filter:blur(9px); animation:gallery-backdrop .3s ease both; }
.room-dialog.is-closing { animation:gallery-close .18s ease both; }
.room-dialog.is-closing::backdrop { opacity:0; transition:opacity .18s; }
.room-dialog-body { position:absolute; inset:0; overflow:hidden; }
.room-dialog .room-stage:not(:fullscreen) { height:100%; min-height:0; max-height:none; }
.room-dialog .room-image { inset:0; }
.room-dialog .room-artwork { width:100%; height:100%; }
.room-dialog .room-initial-photo, .room-dialog .room-transition-photo { width:100%; height:100%; object-fit:var(--gallery-photo-fit); background:transparent; }
.room-dialog .room-stage::after { content:''; position:absolute; inset:56% 0 0; z-index:2; pointer-events:none; background:linear-gradient(transparent,#2b1c0d88 80%,#2b1c0dbd); }
.room-dialog .room-caption { left:clamp(22px,3vw,42px); right:clamp(22px,3vw,42px); bottom:30px; align-items:end; gap:25px; }
.room-dialog .room-caption::before { content:none; }
.room-dialog .room-caption p { margin:0 0 9px; font-size:10px; font-weight:600; letter-spacing:.18em; color:#fff9ee; }
.room-dialog .room-caption h2 { margin:0; color:#fffaf1; font:clamp(31px,3.2vw,53px)/1.05 var(--serif); letter-spacing:-.045em; }
.room-dialog .room-caption h2::after { content:''; display:block; margin-top:14px; width:65px; height:2px; background:#f3ce87; }
.room-dialog .room-caption .room-shop-link { min-height:51px; padding:13px 25px; margin:0 0 4px; gap:24px; border:1px solid #ffe1a7; border-radius:40px; background:#f3ce87; color:#332719; backdrop-filter:none; box-shadow:0 9px 28px #49301329; font-size:13px; font-weight:600; transition:background .2s,translate .2s; }
.room-dialog .room-shop-link svg { width:21px; height:21px; }
.room-dialog .room-caption .room-shop-link:hover { background:#ffe0a5; translate:0 -2px; }
.room-gallery-actions { position:absolute; right:20px; top:20px; z-index:8; display:flex; gap:10px; }
.gallery-circle { display:grid; place-items:center; width:50px; height:50px; padding:0; border:1px solid #fff4e81c; border-radius:50%; background:#5749368f; color:#fffaf0; backdrop-filter:blur(9px); box-shadow:0 4px 14px #30211112; transition:background .2s,scale .2s; }
.gallery-circle:hover { background:#4f3e2ac4; scale:1.06; }
.gallery-circle:focus-visible { outline:2px solid #f6d18a; outline-offset:3px; border-radius:50%; }
.gallery-circle svg { width:22px; height:22px; stroke-width:1.7; }
.gallery-close svg { width:25px; height:25px; stroke-width:2; }
.room-favorite[aria-pressed="true"] svg { fill:#f3ce87; stroke:#f3ce87; }
.gallery-fullscreen { position:absolute; z-index:8; top:84px; right:20px; background:#fffaf0e8; color:#4b3b28; }
.gallery-fullscreen:hover { background:#fffaf0; }
.gallery-previous, .gallery-next { position:absolute; z-index:7; top:50%; transform:translateY(-50%); }
.gallery-previous { left:20px; }
.gallery-previous svg { transform:rotate(180deg); }
.gallery-next { right:20px; }
.room-dialog-back { position:absolute; top:20px; left:20px; z-index:8; display:flex; align-items:center; gap:9px; min-height:41px; padding:9px 16px; border:1px solid #fff8ed38; border-radius:30px; background:#554430a3; color:#fff9ed; backdrop-filter:blur(9px); font-size:12px; }
.room-dialog-back span { font-size:20px; line-height:1; }
.room-dialog-back:hover { background:#4b3926d1; }
.room-dialog-back[hidden] { display:none; }
.room-gallery-dots { position:absolute; z-index:7; bottom:28px; left:50%; transform:translateX(-50%); display:flex; gap:1px; align-items:center; }
.room-gallery-dots button { width:23px; height:26px; padding:0; display:grid; place-items:center; border-radius:50%; }
.room-gallery-dots span { width:8px; height:8px; border-radius:50%; background:#fff5e38c; box-shadow:0 1px 3px #30201120; transition:background .2s,scale .2s; }
.room-gallery-dots button:hover span { background:#fff5e3; }
.room-gallery-dots [aria-current="true"] span { background:#f3ce87; scale:1.4; }
.room-gallery-curtain { position:absolute; inset:0; z-index:2; width:100%; height:100%; object-fit:var(--gallery-photo-fit); pointer-events:none; }
.room-gallery-feedback { position:absolute; z-index:9; top:23px; left:50%; transform:translateX(-50%); max-width:50%; margin:0; padding:9px 16px; border:1px solid #fff7e442; border-radius:25px; background:#382817cf; color:#fff7e8; font-size:11px; text-align:center; backdrop-filter:blur(8px); }
.room-gallery-feedback:empty { display:none; }
.room-gallery-modals { display:contents; }
.room-dialog[aria-busy="true"] .room-gallery-dots { opacity:.6; }
.room-dialog .room-hover-card { border-radius:13px; }
.room-dialog .room-touch-labels span { background:#4b3929a1; }
.room-share-link { width:100%; padding:12px; border:1px solid var(--line); border-radius:8px; background:var(--paper); color:var(--ink); font-size:12px; }
.collection-dialog { border-radius:22px; }
.room-dialog:is(:fullscreen,.is-expanded) { width:100vw; height:100dvh; max-width:none; max-height:none; margin:0; border:0; border-radius:0; }
.room-dialog:is(:fullscreen,.is-expanded) .room-stage { height:100%; }

.room-status-tag { display:inline-block; padding:3px 8px; border-radius:20px; background:#bda17d24; color:#96744c; font-size:9px; line-height:1.4; white-space:nowrap; }
.room-card.room-card--soon { width:100%; text-align:left; }
.room-card.room-card--soon:disabled { opacity:1; cursor:default; }
.room-card--soon .room-card-link { padding:4px 9px; border:1px solid #fff2d759; border-radius:20px; background:#45321d2b; }
.room-card--soon:hover .room-card-photo { transform:none; }
.room-card--soon:hover { box-shadow:0 16px 36px #583e2329,inset 0 1px 0 #fff8eeb8; }
.home-room-grid[data-room-count="1"] { grid-template-columns:minmax(0,1fr); max-width:330px; margin-inline:auto; }
.home-room-grid[data-room-count="2"] { grid-template-columns:repeat(2,minmax(0,1fr)); max-width:700px; margin-inline:auto; }
.home-room-grid[data-room-count="3"] { grid-template-columns:repeat(3,minmax(0,1fr)); max-width:1070px; margin-inline:auto; }
.home-intro-blend--static { transform:translateY(calc(100svh - 180px)); }
.saved-rooms { padding-bottom:45px; }
.saved-rooms h2 { font-size:29px; margin-bottom:24px; }
.saved-rooms .home-room-grid { margin-left:0; }
.room-coming-soon { display:grid; grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr); align-items:center; gap:70px; min-height:calc(100svh - 76px); padding-block:60px; }
.room-coming-soon > img { width:100%; max-height:540px; aspect-ratio:1; object-fit:cover; border-radius:26px; }
.room-coming-soon h1 { font-size:clamp(38px,4.5vw,68px); margin:20px 0; }
.room-coming-soon p:not(.eyebrow) { font-size:14px; line-height:1.9; max-width:38ch; margin-bottom:28px; }
.room-visibility-panel { margin-bottom:60px; }
.admin-room-list { margin:15px 0 28px; }
.admin-room-row { display:grid; grid-template-columns:76px minmax(0,1fr) 170px 140px; align-items:center; gap:23px; padding:22px 0; border-bottom:1px solid var(--line); }
.admin-room-row > img { width:76px; height:84px; border-radius:13px; object-fit:cover; }
.admin-room-row h3 { font:23px var(--serif); margin:0 0 8px; }
.admin-room-row small { font-size:11px; color:var(--muted); }
.admin-room-row label { display:grid; gap:6px; font-size:10px; color:var(--muted); }
.admin-room-row select { width:100%; min-height:43px; padding:9px; border:1px solid var(--line); border-radius:8px; color:var(--ink); background:#fffaf4; font-size:12px; }
.admin-room-row .text-link { justify-self:end; font-size:11px; }
.footer .room-status-tag { margin-left:6px; font-size:8px; }
.footer a>svg { width:14px; height:14px; margin-left:4px; }

@keyframes gallery-open { from { opacity:0; transform:translateY(20px) scale(.975); } to { opacity:1; transform:translateY(0) scale(1); } }
@keyframes gallery-close { to { opacity:0; transform:translateY(10px) scale(.985); } }
@keyframes gallery-backdrop { from { opacity:0; } to { opacity:1; } }

@media (max-width:850px) {
  .home-room-grid[data-room-count="3"], .home-room-grid[data-room-count="4"] { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .home-room-grid[data-room-count="3"] > :last-child { grid-column:1/-1; justify-self:center; width:calc((100% - 18px)/2); }
  .room-coming-soon { gap:35px; }
  .admin-room-row { grid-template-columns:66px minmax(0,1fr) 150px; gap:18px; }
  .admin-room-row .text-link { grid-column:3; justify-self:start; }
}
@media (max-width:600px) {
  .room-dialog { width:calc(100vw - 16px); height:min(calc((100vw - 18px) * 2 / 3),calc(100dvh - 24px)); border-radius:20px; }
  .room-gallery-actions { top:10px; right:10px; gap:7px; }
  .gallery-circle { width:33px; height:33px; }
  .gallery-circle svg { width:17px; height:17px; }
  .gallery-close svg { width:19px; height:19px; }
  .gallery-fullscreen { top:52px; right:10px; }
  .gallery-previous { left:10px; }
  .gallery-next { right:10px; }
  .room-dialog-back { top:10px; left:10px; gap:6px; min-height:33px; padding:7px 11px; font-size:10px; }
  .room-dialog-back span { font-size:17px; }
  .room-dialog .room-caption { left:16px; right:16px; bottom:37px; gap:12px; }
  .room-dialog .room-caption p { font-size:7px; letter-spacing:.13em; margin-bottom:6px; }
  .room-dialog .room-caption h2 { font-size:clamp(22px,6.3vw,29px); }
  .room-dialog .room-caption h2::after { height:1px; width:40px; margin-top:8px; }
  .room-dialog .room-caption .room-shop-link { min-height:35px; padding:8px 12px; margin-bottom:0; gap:10px; font-size:10px; }
  .room-dialog .room-shop-link svg { width:16px; height:16px; }
  .room-gallery-dots { bottom:6px; }
  .room-gallery-dots button { width:21px; height:24px; }
  .room-gallery-dots span { width:6px; height:6px; }
  .room-gallery-feedback { top:50px; left:50%; max-width:65%; font-size:10px; padding:7px 11px; }
  .room-dialog .room-hover-card { min-width:140px; padding:8px 11px; }
  .room-dialog .room-hover-name { font-size:16px; }
  .home-room-grid[data-room-count="3"] > :last-child { width:calc((100% - 12px)/2); }
  .room-coming-soon { grid-template-columns:1fr; gap:30px; padding-block:30px 55px; }
  .room-coming-soon > img { max-height:300px; }
  .room-coming-soon h1 { font-size:40px; }
  .admin-room-row { grid-template-columns:64px minmax(0,1fr); gap:13px 17px; }
  .admin-room-row > img { width:64px; height:74px; }
  .admin-room-row label, .admin-room-row .text-link { grid-column:2; }
}
@media (max-height:650px) and (min-width:681px) {
  .home-intro .home-room-grid[data-room-count="4"] { grid-template-columns:repeat(4,minmax(0,1fr)); }
  .home-intro .home-room-grid[data-room-count="3"] { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .home-intro .home-room-grid[data-room-count="3"] > :last-child { grid-column:auto; width:auto; }
}
@media (max-height:500px) and (min-width:601px) {
  .room-dialog { width:min(calc(100vw - 24px),calc((100dvh - 24px) * 1.5)); height:calc(100dvh - 24px); }
  .gallery-circle { width:37px; height:37px; }
  .room-gallery-actions { top:12px; right:12px; gap:8px; }
  .gallery-fullscreen { top:59px; right:12px; }
  .gallery-previous { left:12px; }
  .gallery-next { right:12px; }
  .room-dialog .room-caption { left:23px; right:23px; bottom:23px; }
  .room-dialog .room-caption h2 { font-size:31px; }
  .room-dialog .room-caption p { font-size:8px; }
  .room-dialog .room-caption .room-shop-link { min-height:40px; padding:9px 17px; font-size:11px; }
  .room-dialog .room-caption h2::after { margin-top:8px; }
  .room-gallery-dots { bottom:19px; }
}
@media (orientation:portrait) {
  .room-dialog:is(:fullscreen,.is-expanded) { --gallery-photo-fit:contain; }
}
@media (prefers-reduced-motion:reduce) {
  .room-dialog[open], .room-dialog.is-closing, .room-dialog::backdrop { animation:none; transition:none; }
  .gallery-circle, .room-gallery-dots span, .room-dialog .room-shop-link { transition:none; }
}
