:root {
  --bg: #110f0d;
  --panel: #1c1712;
  --paper: #fbf7ef;
  --paper-soft: #f3eadb;
  --text: #231b14;
  --muted: #766959;
  --gold: #c59b53;
  --gold-soft: #ead3a2;
  --line: rgba(35, 27, 20, .14);
  --shadow: 0 28px 80px rgba(0,0,0,.2);
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: var(--paper); color: var(--text); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.site-header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px clamp(18px, 5vw, 72px); background: rgba(251,247,239,.88); backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: .03em; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 30% 25%, #f8e7b8, var(--gold) 60%, #60441d); color: #22180f; font-size: 13px; }
.brand-logo { width: 54px; height: 54px; border-radius: 999px; object-fit: contain; box-shadow: 0 8px 22px rgba(0,0,0,.12); }
nav { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
nav a:hover { color: var(--text); }
.hero { min-height: 78vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr); gap: clamp(28px, 6vw, 90px); align-items: center; padding: clamp(44px, 8vw, 110px) clamp(18px, 6vw, 90px); background: linear-gradient(135deg, #17120e 0%, #24190f 48%, #f2e5ce 48%, #fbf7ef 100%); color: var(--paper); }
.hero h1 { max-width: 780px; margin: 0; font-size: clamp(42px, 6vw, 88px); line-height: .92; letter-spacing: -.06em; }
.hero p { max-width: 620px; font-size: 18px; line-height: 1.7; color: rgba(251,247,239,.82); }
.eyebrow { color: var(--gold); text-transform: uppercase; letter-spacing: .18em; font-size: 12px; font-weight: 800; }
.actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.button { border: 1px solid var(--line); border-radius: 999px; padding: 12px 18px; font-weight: 800; cursor: pointer; background: transparent; }
.button.primary { background: var(--gold); color: #1a1209; border-color: var(--gold); }
.button.ghost { background: rgba(255,255,255,.06); color: inherit; }
.hero-board { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; transform: rotate(-2deg); }
.hero-card { min-height: 220px; border-radius: 28px; overflow: hidden; background: linear-gradient(135deg, #3a2a1d, #d9b66d); box-shadow: var(--shadow); position: relative; }
.hero-card img, .art-image img, .detail-image img { width: 100%; height: 100%; object-fit: cover; }
.hero-card .fallback, .art-image .fallback, .detail-image .fallback, .room-stage .fallback-room { width:100%; height:100%; display:grid; place-items:center; background:linear-gradient(135deg,#352318,#d0a45b); color:#fff7df; text-align:center; padding:18px; font-weight:800; }
.hero-card span { position: absolute; left: 16px; bottom: 16px; right: 16px; color: #fff; text-shadow: 0 2px 20px #000; font-weight: 800; }
.section, .page-head, .collection-page, .detail-shell, .wall-page, .contact-page { padding: clamp(34px, 6vw, 86px) clamp(18px, 6vw, 90px); }
.split { display: grid; grid-template-columns: .9fr 1fr; gap: 40px; align-items: start; }
h1, h2, h3 { letter-spacing: -.035em; }
h2 { font-size: clamp(32px, 4vw, 56px); margin: 0; }
.split p:last-child { font-size: 19px; line-height: 1.7; color: var(--muted); }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 0 clamp(18px, 6vw, 90px) 90px; }
.feature-grid article, .filters, .art-card, .tool-panel, .contact-form { background: #fffdf8; border: 1px solid var(--line); border-radius: 28px; box-shadow: 0 16px 40px rgba(80,50,20,.08); }
.feature-grid article { padding: 24px; }
.feature-grid p, .art-meta, .detail-meta, .form-note { color: var(--muted); line-height: 1.6; }
.page-head { padding-bottom: 24px; }
.page-head h1 { font-size: clamp(38px, 6vw, 78px); line-height: .95; margin: 0 0 18px; }
.page-head p { max-width: 760px; color: var(--muted); font-size: 18px; line-height: 1.65; }
.filters { margin: 0 clamp(18px, 6vw, 90px) 26px; padding: 16px; display: grid; grid-template-columns: 1.5fr repeat(4, minmax(120px, 1fr)) auto; gap: 10px; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; font: inherit; background: var(--paper); color: var(--text); }
.result-count { padding: 0 clamp(18px, 6vw, 90px); color: var(--muted); font-weight: 700; }
.art-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; padding: 0 clamp(18px, 6vw, 90px) 80px; }
.art-card { overflow: hidden; }
.art-image { aspect-ratio: 4 / 3; background: var(--panel); }
.art-body { padding: 18px; }
.art-body h3 { margin: 0 0 8px; font-size: 22px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 7px; margin: 14px 0; }
.tag { padding: 5px 9px; border-radius: 999px; background: var(--paper-soft); color: #654d2f; font-size: 12px; font-weight: 800; }
.card-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.more-link { color: #7b571d; font-weight: 900; }
.favorite { border: 0; background: transparent; font-size: 22px; cursor: pointer; }
.detail-shell { display: grid; grid-template-columns: minmax(280px, .9fr) minmax(320px, 1fr); gap: 48px; }
.detail-image { aspect-ratio: 1 / 1; border-radius: 34px; overflow: hidden; background: var(--panel); box-shadow: var(--shadow); }
.detail-copy h1 { font-size: clamp(38px, 5vw, 72px); margin: 0 0 14px; }
.detail-table { margin-top: 24px; display: grid; grid-template-columns: 160px 1fr; border-top: 1px solid var(--line); }
.detail-table div { padding: 13px 0; border-bottom: 1px solid var(--line); }
.detail-table div:nth-child(odd) { color: var(--muted); font-weight: 800; }
.wall-tool { display: grid; grid-template-columns: 310px 1fr; gap: 26px; padding: 0 clamp(18px, 6vw, 90px) 80px; }
.tool-panel { padding: 18px; display: grid; gap: 16px; align-content: start; }
.tool-panel label { display: grid; gap: 8px; font-weight: 800; color: var(--muted); }
.room-stage { min-height: 560px; position: relative; border-radius: 34px; overflow: hidden; background: #d8c8b2; box-shadow: var(--shadow); }
#room-image { width: 100%; height: 100%; min-height: 560px; object-fit: cover; }
.contact-form { max-width: 760px; margin: 0 clamp(18px, 6vw, 90px) 90px; padding: 24px; display: grid; gap: 16px; }
.contact-form label { display: grid; gap: 8px; font-weight: 800; color: var(--muted); }
.site-footer { padding: 34px clamp(18px, 6vw, 90px); background: var(--bg); color: rgba(251,247,239,.72); font-size: 14px; line-height: 1.6; }
@media (max-width: 900px) { .hero, .split, .detail-shell, .wall-tool { grid-template-columns: 1fr; } .feature-grid { grid-template-columns: repeat(2, 1fr); } .filters { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .site-header { align-items: flex-start; flex-direction: column; } .feature-grid, .filters { grid-template-columns: 1fr; } .hero-board { grid-template-columns: 1fr; transform: none; } }

/* Migration refinement: artwork overview must behave like a gallery, not a squared product grid. */
.art-grid {
  display: block;
  columns: 1;
  column-gap: 24px;
  padding-bottom: 96px;
}
@media (min-width: 720px) { .art-grid { columns: 2; } }
@media (min-width: 1080px) { .art-grid { columns: 3; } }
@media (min-width: 1480px) { .art-grid { columns: 4; } }
.art-card {
  display: inline-block;
  width: 100%;
  margin: 0 0 24px;
  break-inside: avoid;
  overflow: hidden;
}
.art-image-button,
.detail-image-button {
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  display: block;
}
.art-image-button img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  background: #fff;
}
.art-body h3 a:hover,
.more-link:hover {
  color: var(--gold);
}
.art-meta {
  display: grid;
  gap: 3px;
  margin: 0;
}
.more-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #7b571d;
  background: #fffaf0;
}
.palette-row {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin: 12px 0;
}
.palette-dot {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.16);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.28);
}
.palette-dot.large {
  width: 34px;
  height: 34px;
}
.detail-shell {
  align-items: start;
}
.detail-image-panel {
  position: sticky;
  top: 96px;
}
.detail-image-button {
  border-radius: 34px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.detail-image-button img {
  width: 100%;
  height: auto;
  max-height: calc(100vh - 140px);
  object-fit: contain;
  background: #fff;
}
.detail-palette h2 {
  margin: 20px 0 8px;
  font-size: 20px;
  letter-spacing: -.02em;
}
.legacy-link {
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
}
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 3vw, 42px);
  background: rgba(12, 10, 8, .88);
  backdrop-filter: blur(12px);
}
.lightbox.is-open {
  display: flex;
}
.has-lightbox {
  overflow: hidden;
}
.lightbox-figure {
  max-width: min(96vw, 1600px);
  max-height: 92vh;
  margin: 0;
  display: grid;
  gap: 12px;
  color: #fff7df;
  text-align: center;
}
.lightbox-figure img {
  max-width: 100%;
  max-height: 84vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 34px 90px rgba(0,0,0,.45);
}
.lightbox-close {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}
@media (max-width: 900px) {
  .detail-image-panel { position: static; }
  .detail-image-button img { max-height: none; }
}

/* Modern replacement for the old Drupal 7 Isotope filter bar. */
.gallery-controls {
  margin: 0 clamp(18px, 6vw, 90px) 30px;
  padding: clamp(18px, 3vw, 30px);
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 32px;
  box-shadow: 0 16px 40px rgba(80,50,20,.08);
}
.filter-intro {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
  color: var(--muted);
}
.filter-intro strong {
  display: block;
  color: var(--text);
  font-size: 18px;
}
.filter-intro p {
  margin: 4px 0 0;
  line-height: 1.5;
}
.filter-info {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #101010;
  color: #fff;
  font-weight: 900;
  font-family: Georgia, serif;
}
.filter-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(140px, 210px) auto;
  gap: 12px;
  margin-bottom: 26px;
}
.filter-block {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}
.filter-block h2 {
  margin: 0;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--muted);
}
.filter-button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.round-row {
  gap: clamp(10px, 2vw, 28px);
}
.filter-pill,
.sort-pill {
  border: 1px solid var(--line);
  background: #fffdf8;
  color: var(--text);
  font: inherit;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
.filter-pill:hover,
.sort-pill:hover {
  transform: translateY(-2px);
  border-color: rgba(197,155,83,.65);
  box-shadow: 0 12px 32px rgba(80,50,20,.10);
}
.filter-pill.is-active,
.sort-pill.is-active {
  background: #17120e;
  color: var(--paper);
  border-color: #17120e;
  box-shadow: 0 16px 36px rgba(0,0,0,.16);
}
.filter-pill.round {
  width: clamp(82px, 9vw, 108px);
  height: clamp(82px, 9vw, 108px);
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  text-align: center;
  padding: 10px;
}
.filter-pill.square,
.filter-pill.status,
.sort-pill {
  min-height: 56px;
  border-radius: 18px;
  padding: 10px 18px;
}
.filter-pill.status {
  border-radius: 999px;
}
.sort-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.sort-icon {
  position: relative;
  width: 18px;
  height: 22px;
  display: inline-block;
  opacity: .55;
}
.sort-icon::before {
  content: "↓";
  position: absolute;
  left: 0;
  top: -2px;
  font-size: 20px;
  line-height: 1;
}
.sort-icon::after {
  content: "≡";
  position: absolute;
  right: 0;
  bottom: -2px;
  font-size: 18px;
  line-height: 1;
}
.sort-pill[data-direction="desc"] .sort-icon::before {
  content: "↑";
}
.active-filters {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.empty-gallery {
  padding: 34px;
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 28px;
  color: var(--muted);
  font-weight: 800;
}
.muted-tag {
  background: #fff7e6;
  color: #8a672f;
}
@media (max-width: 820px) {
  .filter-toolbar {
    grid-template-columns: 1fr;
  }
  .filter-button-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x proximity;
  }
  .filter-pill,
  .sort-pill {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }
}

/* Art on the Wall manipulator. The room image stays fixed; only the artwork frame is interactive. */
.wall-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.room-stage {
  min-height: min(72vh, 760px);
  touch-action: none;
}
#room-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}
.placed-art-frame {
  position: absolute;
  left: 40%;
  top: 32%;
  width: 260px;
  height: 190px;
  cursor: grab;
  transform-origin: center center;
  user-select: none;
  touch-action: none;
  overflow: visible;
  filter: drop-shadow(0 18px 34px rgba(0,0,0,.28));
}
.placed-art-frame:active {
  cursor: grabbing;
}
#placed-art {
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  object-fit: fill;
  border: 8px solid #f8f0e1;
  background: #f8f0e1;
  pointer-events: none;
  transform-origin: 0 0;
  will-change: transform;
}
.shape-handle,
.resize-handle {
  position: absolute;
  z-index: 8;
  border: 2px solid #fff;
  background: var(--gold);
  box-shadow: 0 8px 18px rgba(0,0,0,.28);
  pointer-events: auto;
}
.shape-handle {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  cursor: crosshair;
}
.resize-handle {
  right: -42px;
  bottom: -42px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  cursor: nwse-resize;
}
.resize-handle::before {
  content: "";
  position: absolute;
  inset: 7px 5px 5px 7px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
}
/* These defaults are overwritten by JavaScript so the buttons always sit on the moved image corners. */
.shape-handle-tl { left: 0; top: 0; }
.shape-handle-tr { left: 100%; top: 0; }
.shape-handle-br { left: 100%; top: 100%; }
.shape-handle-bl { left: 0; top: 100%; }
@media (max-width: 900px) {
  .room-stage {
    min-height: 520px;
  }
  .placed-art-frame {
    max-width: 72vw;
  }
}
