.rmh-gallery-page {
  --navy: var(--rmh-navy);
  --navy-2: var(--rmh-navy-deep);
  --red: var(--rmh-red);
  --green: var(--rmh-navy);
  --soft: var(--rmh-soft);
  --line: var(--rmh-line);
  --shadow: var(--rmh-shadow);
  background: #fff;
  color: #40505f;
}
.rmh-gallery-page *, .rmh-gallery-page *::before, .rmh-gallery-page *::after { box-sizing: border-box; }
.rmh-gallery-page .container { margin: 0 auto; width: min(var(--wp--style--global--wide-size), calc(100% - 48px)); }
.rmh-gallery-page .section { padding: 96px 0; position: relative; scroll-margin-top: calc(var(--rmh-header-height) + 1rem); }
.rmh-gallery-page .section.tight { background: #f8fafb; padding: 80px 0; }
.rmh-gallery-page .section.dark { background: var(--rmh-navy-deep); color: #fff; }
.rmh-gallery-page .section-head { align-items: end; display: flex; gap: 28px; justify-content: space-between; margin-bottom: 36px; }
.rmh-gallery-page .section-head .copy { display: grid; gap: 14px; max-width: 780px; }
.rmh-gallery-page .section h2 { color: var(--rmh-navy-deep); font-size: clamp(2.25rem,4.6vw,4.6rem); letter-spacing: -.055em; line-height: 1.02; margin: 0; }
.rmh-gallery-page .dark h2, .rmh-gallery-page .dark h3 { color: #fff; }
.rmh-gallery-page .eyebrow { color: var(--rmh-red); font-size: .78rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.rmh-gallery-page .lead { color: #536476; font-size: clamp(1.03rem,1.35vw,1.25rem); line-height: 1.62; margin: 0; }
.rmh-gallery-page .dark .lead, .rmh-gallery-page .dark p { color: rgba(255,255,255,.76); }
.rmh-gallery-page .small { color: #617184; font-size: .92rem; line-height: 1.55; margin: 0; }
.rmh-gallery-page .section-number { color: rgba(22,58,95,.11); font-size: clamp(4rem,9vw,8rem); font-weight: 950; letter-spacing: -.07em; line-height: .72; }
.rmh-gallery-page .dark .section-number { color: rgba(255,255,255,.13); }

.inspiration-gallery-wrap { background: radial-gradient(circle at 12% 6%,rgba(196,164,106,.2),transparent 28%),linear-gradient(135deg,rgba(247,243,234,.96),rgba(255,255,255,.98)); border: 1px solid rgba(220,226,232,.92); border-radius: 34px; box-shadow: 0 22px 60px rgba(20,43,66,.08); overflow: hidden; padding: 28px; }
.gallery-intro-row { align-items: flex-end; display: flex; gap: 22px; justify-content: space-between; margin-bottom: 22px; }
.gallery-intro-row > p { max-width: 650px; }
.gallery-filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.gallery-filter { background: rgba(255,255,255,.78); border: 1px solid rgba(22,58,95,.14); border-radius: 999px; color: var(--rmh-navy); cursor: pointer; font: inherit; font-size: .82rem; font-weight: 850; padding: 9px 12px; transition: 180ms ease; }
.gallery-filter:hover, .gallery-filter.active { background: var(--rmh-navy); color: #fff; transform: translateY(-1px); }
.inspiration-grid { display: grid; gap: 22px; grid-template-columns: repeat(2,minmax(0,1fr)); }
.inspiration-card { background: #fff; border: 1px solid rgba(220,226,232,.95); border-radius: 28px; box-shadow: 0 14px 34px rgba(20,43,66,.08); cursor: pointer; display: grid; grid-template-rows: minmax(300px,1fr) auto; overflow: hidden; transition: transform 220ms ease,box-shadow 220ms ease,border-color 220ms ease; }
.inspiration-card[id] { scroll-margin-top: 120px; }
.inspiration-card:hover { border-color: rgba(22,58,95,.24); box-shadow: 0 24px 54px rgba(20,43,66,.14); transform: translateY(-5px); }
.inspiration-card.is-hidden { display: none; }
.scenario-visual { background: #edf1f4; isolation: isolate; min-height: 300px; overflow: hidden; position: relative; }
.scenario-visual::after { background: linear-gradient(180deg,rgba(10,23,33,0) 35%,rgba(10,23,33,.7) 100%); content: ""; inset: 0; pointer-events: none; position: absolute; z-index: 2; }
.scenario-visual img.scenario-slide { height: 100%; inset: 0; object-fit: cover; opacity: 0; position: absolute; transform: scale(1.04); transition: opacity 950ms ease,transform 5000ms ease; width: 100%; z-index: 1; }
.scenario-visual img.scenario-slide.active { opacity: 1; transform: scale(1.12) translate3d(-1.5%,-1.2%,0); }
.scenario-badge-row { align-items: center; display: flex; gap: 10px; justify-content: space-between; left: 16px; position: absolute; right: 16px; top: 16px; z-index: 4; }
.scenario-badge, .scenario-view-count { backdrop-filter: blur(8px); background: rgba(255,255,255,.88); border-radius: 999px; box-shadow: 0 8px 18px rgba(0,0,0,.08); color: var(--rmh-navy-deep); display: inline-flex; font-size: .75rem; font-weight: 900; letter-spacing: .06em; padding: 7px 10px; text-transform: uppercase; }
.scenario-view-count { background: rgba(15,41,68,.76); color: #fff; }
.scenario-footer-strip { align-items: flex-end; bottom: 16px; display: flex; gap: 16px; justify-content: space-between; left: 16px; position: absolute; right: 16px; z-index: 4; }
.scenario-mini-thumbs { backdrop-filter: blur(10px); background: rgba(255,255,255,.76); border-radius: 15px; box-shadow: 0 10px 24px rgba(0,0,0,.13); display: flex; gap: 8px; padding: 7px; }
.scenario-mini-thumbs img { border: 2px solid rgba(255,255,255,.9); border-radius: 10px; height: 54px; object-fit: cover; opacity: .74; transition: 180ms ease; width: 54px; }
.scenario-mini-thumbs img.active { border-color: var(--rmh-red); opacity: 1; transform: translateY(-2px); }
.scenario-dots { align-items: center; display: flex; gap: 7px; }
.scenario-dots span { background: rgba(255,255,255,.58); border-radius: 999px; box-shadow: 0 1px 5px rgba(0,0,0,.18); height: 8px; width: 8px; }
.scenario-dots span.active { background: #fff; width: 26px; }
.scenario-copy { display: grid; gap: 14px; padding: 22px; }
.scenario-copy h3 { color: var(--rmh-navy-deep); font-size: clamp(1.32rem,2vw,1.9rem); margin: 0; }
.scenario-kicker, .scenario-material-chips, .scenario-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 8px; }
.scenario-kicker span { background: var(--rmh-soft); border-radius: 999px; color: var(--rmh-navy); font-size: .75rem; font-weight: 900; letter-spacing: .05em; padding: 6px 9px; text-transform: uppercase; }
.scenario-material-chips span { background: #fff; border: 1px solid var(--rmh-line); border-radius: 999px; color: #40505f; font-size: .78rem; font-weight: 820; padding: 7px 10px; }
.mini-btn { align-items: center; background: #fff; border: 1px solid var(--rmh-line); border-radius: 999px; color: var(--rmh-navy); cursor: pointer; display: inline-flex; font: inherit; font-size: .84rem; font-weight: 900; justify-content: center; padding: 10px 13px; }
.mini-btn.primary { background: var(--rmh-navy); border-color: var(--rmh-navy); color: #fff; }
.mini-btn.disabled { cursor: not-allowed; opacity: .5; }

.inspiration-modal { backdrop-filter: blur(12px); background: rgba(9,18,28,.72); display: none; inset: 0; overflow: auto; padding: 28px; position: fixed; z-index: 5000; }
.inspiration-modal.active { display: block; }
.inspiration-modal-shell { background: #edf2f5; border-radius: 22px; box-shadow: 0 34px 90px rgba(0,0,0,.34); margin: 0 auto; max-width: 1420px; min-height: calc(100vh - 56px); overflow: hidden; }
.modal-topbar { align-items: center; background: var(--rmh-navy-deep); color: #fff; display: grid; gap: 18px; grid-template-columns: 1fr auto 1fr; min-height: 68px; padding: 12px 22px; }
.modal-brand { align-items: center; display: flex; min-width: 0; }
.modal-brand img { display: block; height: auto; max-height: 46px; max-width: min(100%,330px); object-fit: contain; object-position: left center; width: auto; }
.modal-title { font-size: 1.1rem; font-weight: 900; text-align: center; }
.modal-close { background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.25); border-radius: 50%; color: #fff; cursor: pointer; font-size: 1.5rem; height: 42px; justify-self: end; width: 42px; }
.inspiration-viewer { display: grid; gap: 18px; grid-template-columns: 310px minmax(0,1fr) 118px; min-height: calc(100vh - 124px); padding: 18px; }
.viewer-panel { background: #fff; border: 1px solid var(--rmh-line); border-radius: 18px; box-shadow: 0 10px 28px rgba(20,43,66,.08); }
.material-panel { overflow-y: auto; padding: 16px; }
.viewer-material-card { border-bottom: 1px solid var(--rmh-line); display: grid; gap: 10px; grid-template-columns: 72px minmax(0,1fr); padding: 12px 0; }
.viewer-material-image { border-radius: 10px; height: 72px; object-fit: cover; width: 72px; }
.viewer-material-copy { display: grid; gap: 3px; min-width: 0; }
.viewer-material-copy .surface { color: var(--rmh-red); font-size: .67rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.viewer-material-copy strong { color: var(--rmh-navy-deep); font-size: .84rem; line-height: 1.2; }
.viewer-material-copy small { color: #617184; font-size: .7rem; line-height: 1.25; }
.main-viewer { display: grid; gap: 16px; grid-template-rows: minmax(420px,1fr) auto; min-width: 0; }
.viewer-stage { background: #e9eef2; cursor: ew-resize; isolation: isolate; min-height: 500px; overflow: hidden; position: relative; touch-action: none; user-select: none; }
.viewer-stage.is-zoomed { cursor: grab; }
.viewer-stage.is-panning { cursor: grabbing; }
.viewer-after-layer, .viewer-before-layer { inset: 0; overflow: hidden; position: absolute; }
.viewer-after-layer { z-index: 1; }
.viewer-before-layer { clip-path: inset(0 42% 0 0); pointer-events: none; z-index: 2; }
.viewer-stage img { height: 100%; inset: 0; object-fit: cover; object-position: center center; pointer-events: none; position: absolute; transform-origin: center center; transition: transform 140ms ease; user-select: none; width: 100%; }
.viewer-before-layer img { filter: grayscale(.82) saturate(.82) contrast(1.02); }
.viewer-divider { background: rgba(255,255,255,.98); bottom: 0; box-shadow: 0 0 18px rgba(255,255,255,.7),0 0 36px rgba(0,0,0,.24); cursor: ew-resize; left: 58%; position: absolute; top: 0; transform: translateX(-50%); width: 4px; z-index: 8; }
.viewer-divider span { align-items: center; background: #fff; border: 2px solid var(--rmh-navy); border-radius: 50%; box-shadow: 0 14px 34px rgba(0,0,0,.26); color: var(--rmh-navy); display: flex; font-size: 1.2rem; font-weight: 950; height: 48px; justify-content: center; left: 50%; position: absolute; top: 50%; transform: translate(-50%,-50%); width: 48px; }
.viewer-state-label { backdrop-filter: blur(9px); border-radius: 999px; color: #fff; font-size: .65rem; font-weight: 900; letter-spacing: .08em; padding: 7px 10px; position: absolute; text-transform: uppercase; top: 18px; z-index: 7; }
.viewer-state-label.before { background: rgba(12,20,28,.58); left: 18px; }
.viewer-state-label.after { background: rgba(15,41,68,.82); right: 18px; }
.viewer-label { background: rgba(15,41,68,.82); border-radius: 999px; color: #fff; font-size: .72rem; font-weight: 900; left: 18px; letter-spacing: .06em; padding: 8px 11px; position: absolute; text-transform: uppercase; top: 18px; z-index: 2; }
.viewer-stage .viewer-label { bottom: 18px; max-width: calc(100% - 120px); overflow: hidden; text-overflow: ellipsis; top: auto; white-space: nowrap; z-index: 7; }
.viewer-zoom-controls { align-items: center; bottom: 18px; display: flex; flex-direction: column; gap: 7px; position: absolute; right: 18px; z-index: 9; }
.viewer-zoom-btn { align-items: center; backdrop-filter: blur(10px); background: rgba(15,41,68,.78); border: 1px solid rgba(255,255,255,.32); border-radius: 50%; color: #fff; cursor: pointer; display: flex; font: inherit; font-size: 1rem; font-weight: 900; height: 42px; justify-content: center; width: 42px; }
.viewer-zoom-btn:hover { background: var(--rmh-navy); transform: translateY(-1px); }
.viewer-zoom-level { color: #fff; font-size: .7rem; font-weight: 900; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.description-panel { padding: 18px; }
.description-panel h4 { color: var(--rmh-navy-deep); margin: 0 0 8px; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.viewer-side-thumbs { display: flex; flex-direction: column; gap: 12px; padding: 12px; }
.viewer-thumb { background: #fff; border: 2px solid transparent; border-radius: 12px; cursor: pointer; overflow: hidden; padding: 0; }
.viewer-thumb.active { border-color: var(--rmh-red); }
.viewer-thumb img { aspect-ratio: 1; display: block; object-fit: cover; width: 100%; }
.viewer-thumb span { display: block; font-size: .62rem; font-weight: 800; line-height: 1.15; padding: 5px; }
body.rmh-modal-open { overflow: hidden; }

.inspiration-reel-modal { align-items: center; backdrop-filter: blur(12px); background: rgba(9,18,28,.78); display: none; inset: 0; justify-content: center; padding: 24px; position: fixed; z-index: 5200; }
.inspiration-reel-modal.active { display: flex; }
.inspiration-reel-shell { background: #071727; border: 1px solid rgba(255,255,255,.2); border-radius: 22px; box-shadow: 0 34px 90px rgba(0,0,0,.48); max-height: calc(100vh - 48px); overflow: hidden; width: min(100%,480px,calc((100vh - 112px) * 9 / 16)); }
.inspiration-reel-header { align-items: center; background: var(--rmh-navy-deep); color: #fff; display: flex; gap: 18px; justify-content: space-between; min-height: 64px; padding: 11px 16px 11px 20px; }
.inspiration-reel-header h3 { color: #fff; font-size: 1rem; line-height: 1.25; margin: 0; }
.inspiration-reel-close { background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.25); border-radius: 50%; color: #fff; cursor: pointer; flex: 0 0 auto; font-size: 1.45rem; height: 40px; width: 40px; }
.inspiration-reel-stage { align-items: center; aspect-ratio: 9/16; background: #000; display: flex; justify-content: center; max-height: calc(100vh - 112px); }
.inspiration-reel-stage video { display: block; height: 100%; object-fit: contain; width: 100%; }

.materials-collage-modal { align-items: center; backdrop-filter: blur(12px); background: rgba(9,18,28,.72); display: none; inset: 0; justify-content: center; padding: 28px; position: fixed; z-index: 5100; }
.materials-collage-modal.active { display: flex; }
.materials-collage-shell { background: #fff; border-radius: 20px; box-shadow: 0 34px 90px rgba(0,0,0,.34); max-height: calc(100vh - 56px); max-width: 1120px; overflow: auto; width: min(100%,1120px); }
.materials-collage-header { align-items: center; background: var(--rmh-navy-deep); color: #fff; display: flex; gap: 18px; justify-content: space-between; padding: 14px 18px; position: sticky; top: 0; z-index: 2; }
.materials-collage-header h3 { color: #fff; font-size: 1.1rem; margin: 0; }
.materials-collage-close { background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.25); border-radius: 50%; color: #fff; cursor: pointer; font-size: 1.45rem; height: 40px; width: 40px; }
.materials-collage-shell > img { display: block; height: auto; width: 100%; }

.materials-ui { align-items: center; display: grid; gap: 24px; grid-template-columns: .88fr 1.12fr; }
.proof-chips, .filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip, .pill { align-items: center; background: #fff; border: 1px solid var(--rmh-line); border-radius: 999px; color: var(--rmh-navy); display: inline-flex; font-size: .8rem; font-weight: 800; padding: 8px 11px; }
.chip .dot { background: var(--rmh-red); border-radius: 50%; height: 7px; margin-right: 7px; width: 7px; }
.rmh-brand-showcase { display: grid; gap: 22px; margin-top: 30px; max-width: 100%; }
.brand-group { min-width: 0; }
.brand-group h3 { color: var(--rmh-navy-deep); font-size: .82rem; font-weight: 900; letter-spacing: .065em; margin: 0 0 11px; text-transform: uppercase; }
.brand-group-heading { align-items: center; display: flex; gap: 12px; justify-content: space-between; }
.brand-motion-toggle { background: transparent; border: 0; color: var(--rmh-navy); cursor: pointer; font: inherit; font-size: .72rem; font-weight: 850; padding: 3px 0; text-decoration: underline; text-underline-offset: 3px; }
.brand-marquee { overflow: hidden; width: 100%; }
.brand-marquee-track { animation: rmh-brand-marquee 36s linear infinite; display: flex; gap: 10px; width: max-content; }
.brand-marquee:hover .brand-marquee-track, .brand-marquee:focus-within .brand-marquee-track, .brand-marquee.is-paused .brand-marquee-track { animation-play-state: paused; }
.brand-logo-card { align-items: center; background: #fff; border: 1px solid var(--rmh-line); border-radius: 13px; display: flex; flex: 0 0 152px; height: 72px; justify-content: center; overflow: hidden; padding: 12px 14px; }
.brand-logo-card img { display: block; max-height: 44px; max-width: 100%; object-fit: contain; width: auto; }
.brand-logo-card img[src*="armstrong-flooring"] { filter: invert(1); }
.brand-logo-card img[src*="jeffrey-court"] { filter: invert(1); }
.brand-logo-card.brand-logo-shaw-floors { background: var(--rmh-navy-deep); border-color: var(--rmh-navy-deep); }
.brand-logo-card.brand-logo-the-tile-shop img { transform: translateX(40px) scale(1.55); }
.brand-logo-card span { color: var(--rmh-navy-deep); display: none; font-size: .78rem; font-weight: 850; text-align: center; }
.brand-logo-card.is-image-missing img { display: none; }
.brand-logo-card.is-image-missing span { display: block; }
.brand-retailer-row { display: grid; gap: 10px; grid-template-columns: repeat(3,minmax(0,1fr)); }
.brand-retailer-row .brand-logo-card { min-width: 0; width: 100%; }
.brand-disclaimer { color: #68788a; font-size: .69rem; line-height: 1.45; margin: -8px 0 0; }
@keyframes rmh-brand-marquee { to { transform: translateX(calc(-50% - 5px)); } }
.search-box { background: #fff; border: 1px solid var(--rmh-line); border-radius: 24px; box-shadow: var(--rmh-shadow); padding: 24px; }
.query { background: var(--rmh-soft); border: 1px solid var(--rmh-line); border-radius: 14px; color: var(--rmh-navy-deep); font-weight: 750; margin-bottom: 12px; padding: 13px 15px; }
.material-grid { display: grid; gap: 14px; grid-template-columns: repeat(2,1fr); }
.material-card { background: #fff; border: 1px solid var(--rmh-line); border-radius: 18px; box-shadow: 0 10px 24px rgba(20,43,66,.04); display: flex; flex-direction: column; overflow: hidden; position: relative; }
.mat-stage { aspect-ratio: 49/60; background: #fff; overflow: hidden; position: relative; width: 100%; }
.material-image { height: 100%; inset: 0; object-fit: contain; opacity: 0; position: absolute; transition: opacity 500ms ease; width: 100%; }
.material-image.is-active { opacity: 1; }
.mat-dots { align-items: center; display: flex; gap: 6px; justify-content: center; min-height: 30px; padding: 8px; }
.mat-dots span { background: #cbd3db; border-radius: 999px; height: 7px; transition: width 160ms ease; width: 7px; }
.mat-dots span.active { background: var(--rmh-navy); width: 20px; }
.mat-nav { align-items: center; background: rgba(255,255,255,.88); border: 1px solid var(--rmh-line); border-radius: 50%; color: var(--rmh-navy); cursor: pointer; display: flex; font-size: 1.2rem; height: 36px; justify-content: center; opacity: 0; position: absolute; top: 50%; transform: translateY(-50%); transition: opacity 160ms ease; width: 36px; z-index: 3; }
.material-card:hover .mat-nav, .material-card:focus-within .mat-nav { opacity: 1; }
.mat-nav.prev { left: 8px; } .mat-nav.next { right: 8px; }

.screenshot-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.screenshot-tabs .tab { background: #fff; border: 1px solid var(--rmh-line); border-radius: 999px; color: var(--rmh-navy); cursor: pointer; font: inherit; font-size: .84rem; font-weight: 850; padding: 10px 14px; transition: 160ms ease; }
.screenshot-tabs .tab:hover, .screenshot-tabs .tab.active { background: var(--rmh-navy); border-color: var(--rmh-navy); color: #fff; }
.mock-window { background: #fff; border: 1px solid var(--rmh-line); border-radius: 24px; box-shadow: var(--rmh-shadow); overflow: hidden; }
.mock-bar { align-items: center; background: var(--rmh-navy-deep); color: #fff; display: flex; font-size: .83rem; font-weight: 850; gap: 8px; padding: 14px 16px; }
.mock-bar .lights { display: flex; gap: 6px; margin-right: 8px; }
.mock-bar .lights span { background: rgba(255,255,255,.45); border-radius: 50%; height: 10px; width: 10px; }
.screenshot-panel { background: #eef2f5; outline: none; }
.screenshot-stage { aspect-ratio: 16/9; min-height: 520px; overflow: hidden; position: relative; }
.screenshot-slide { align-items: center; display: flex; inset: 0; justify-content: center; margin: 0; opacity: 0; padding: 20px; position: absolute; transition: opacity 320ms ease; }
.screenshot-slide.active { opacity: 1; z-index: 2; }
.screenshot-slide img { border-radius: 10px; box-shadow: 0 12px 30px rgba(20,43,66,.14); height: 100%; object-fit: contain; width: 100%; }
.screenshot-meta { align-items: center; background: #fff; border-top: 1px solid var(--rmh-line); display: flex; gap: 20px; justify-content: space-between; min-height: 92px; padding: 18px 22px; }
.screenshot-copy strong { color: var(--rmh-navy-deep); display: block; font-size: 1rem; margin-bottom: 5px; }
.screenshot-copy p { color: #617184; font-size: .85rem; line-height: 1.45; margin: 0; }
.screenshot-controls { align-items: center; display: flex; flex: 0 0 auto; gap: 10px; }
.carousel-btn { background: #fff; border: 1px solid var(--rmh-line); border-radius: 50%; color: var(--rmh-navy); cursor: pointer; font-size: 1.35rem; font-weight: 900; height: 40px; width: 40px; }
.screenshot-dots { align-items: center; display: inline-flex; gap: 7px; justify-content: center; min-width: 70px; }
.screenshot-dot { background: #cbd3db; border: 0; border-radius: 999px; cursor: pointer; height: 8px; padding: 0; transition: width 160ms ease,background 160ms ease; width: 8px; }
.screenshot-dot.active { background: var(--rmh-red); width: 24px; }

.grid-2 { display: grid; gap: 22px; grid-template-columns: repeat(2,1fr); }
.rmh-gallery-page .card { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 22px; padding: 26px; }
.rmh-gallery-page .card h3 { font-size: 1.35rem; margin: 0 0 10px; }
.rmh-gallery-page .card p { margin: 0; }

@media (max-width: 960px) {
  .inspiration-grid, .materials-ui { grid-template-columns: 1fr; }
  .inspiration-viewer { grid-template-columns: 250px minmax(0,1fr); }
  .viewer-side-thumbs { flex-direction: row; grid-column: 1/-1; }
  .viewer-thumb { max-width: 100px; }
}
@media (max-width: 760px) {
  .rmh-gallery-page .container { width: min(100% - 30px,var(--wp--style--global--wide-size)); }
  .rmh-gallery-page .section { padding: 70px 0; }
  .rmh-gallery-page .section-head { align-items: start; }
  .rmh-gallery-page .section-number { display: none; }
  .gallery-intro-row { align-items: flex-start; flex-direction: column; }
  .gallery-filters { justify-content: flex-start; }
  .inspiration-grid, .material-grid, .grid-2 { grid-template-columns: 1fr; }
  .inspiration-gallery-wrap { border-radius: 22px; padding: 16px; }
  .inspiration-card { grid-template-rows: minmax(260px,1fr) auto; }
  .scenario-mini-thumbs img { height: 42px; width: 42px; }
  .inspiration-modal { padding: 0; }
  .inspiration-modal-shell { border-radius: 0; min-height: 100vh; }
  .modal-topbar { grid-template-columns: 1fr auto; }
  .modal-brand img { max-height: 38px; max-width: min(100%,250px); }
  .modal-title { display: none; }
  .inspiration-viewer { display: flex; flex-direction: column; }
  .main-viewer { order: 1; }
  .viewer-side-thumbs { order: 2; }
  .material-panel { order: 3; }
  .viewer-stage { min-height: 360px; }
  .viewer-state-label { top: 12px; }
  .viewer-state-label.before { left: 12px; }
  .viewer-state-label.after { right: 12px; }
  .viewer-stage .viewer-label { bottom: 12px; left: 12px; }
  .viewer-zoom-controls { bottom: 12px; right: 12px; }
  .materials-collage-modal { padding: 0; }
  .materials-collage-shell { border-radius: 0; max-height: 100vh; }
  .inspiration-reel-modal { padding: 0; }
  .inspiration-reel-shell { border-radius: 0; max-height: 100vh; width: min(100%,480px,calc((100vh - 64px) * 9 / 16)); }
  .inspiration-reel-stage { max-height: calc(100vh - 64px); }
  .screenshot-stage { aspect-ratio: 16/10; min-height: 280px; }
  .screenshot-meta { align-items: flex-start; flex-direction: column; }
  .screenshot-controls { justify-content: space-between; width: 100%; }
  .brand-motion-toggle { display: none; }
  .brand-marquee { margin-right: -15px; overflow-x: auto; padding-bottom: 7px; scroll-snap-type: x proximity; }
  .brand-marquee-track { animation: none; }
  .brand-marquee-track .brand-logo-card[aria-hidden="true"] { display: none; }
  .brand-logo-card { flex-basis: 142px; scroll-snap-align: start; }
  .brand-retailer-row { display: flex; margin-right: -15px; overflow-x: auto; padding-bottom: 7px; scroll-snap-type: x proximity; }
  .brand-retailer-row .brand-logo-card { flex: 0 0 142px; }
}
@media (hover: none) { .mat-nav { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .scenario-visual img.scenario-slide, .screenshot-slide, .material-image { transition: none; }
  .brand-marquee { overflow-x: auto; }
  .brand-marquee-track { animation: none; }
  .brand-marquee-track .brand-logo-card[aria-hidden="true"] { display: none; }
  .brand-motion-toggle { display: none; }
}
