/* Quiet exhibition materials. Ornament never sizes a painting or film. */
:root {
  --gp-frame-finish: #d7d2c8;
  --gp-frame-light: #dfdbd3;
  --gp-frame-dark: #b8b3a9;
  --gp-frame-edge: #c7c3b9;
  --gp-frame-grain: repeating-linear-gradient(174deg, transparent 0 3px, #766b5908 3px 3.4px, transparent 3.4px 8px), linear-gradient(115deg, var(--gp-frame-light), var(--gp-frame-finish) 48%, #d2cdc3);
  --gp-frame-shadow: 0 1px 2px #342b2010, 0 4px 8px #342b200c;
  --gp-wall: #fff;
  --gp-mat: #f8f6f0;
  --gp-mat-width: 4px;
  --gp-rule: #dedcd5;
  --gp-plaque-edge: rgba(65,59,49,.22);
  --gp-plaque-paper: rgba(255,253,247,.90);
  --gp-plaque-shadow: 0 1px 5px rgba(20,18,14,.08);
  --gp-focus: #304b32;
  --gp-pencil-finish: grayscale(1) sepia(.085);
  --rule: var(--gp-rule);
}
/* Keep the physical button's existing 1px border and exact content dimensions.
   The adjustable mat and fine edge are outside it; original and film stay put. */
#space .hung-art {
  overflow: visible;
  border-color: transparent;
  background: var(--gp-mat);
  box-shadow: none;
}
#space .hung-art::before {
  content: ''; position: absolute;
  inset: calc(-1px - var(--gp-mat-width));
  padding: var(--gp-mat-width); border: 1px solid transparent; box-sizing: border-box;
  background: linear-gradient(var(--gp-mat), var(--gp-mat)) padding-box, var(--gp-frame-grain) border-box;
  pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}
/* The shadow floats the mat off the wall without adding a dark second ring. */
#space .hung-art::after {
  content: ''; position: absolute;
  inset: calc(-1px - var(--gp-mat-width));
  border: 1px solid var(--gp-frame-edge);
  box-shadow: var(--gp-frame-shadow);
  pointer-events: none;
}
/* Existing detail padding and transparent border keep their dimensions.
   The former wood band is now cream mat; only the outermost 1px is an edge. */
#detail .study-frame {
  background: linear-gradient(var(--gp-mat), var(--gp-mat)) padding-box, repeating-linear-gradient(174deg, transparent 0 3px, #766b5905 3px 3.4px, transparent 3.4px 8px) border-box, linear-gradient(var(--gp-mat), var(--gp-mat)) border-box;
  border: 3px solid transparent;
  box-shadow: 0 0 0 1px var(--gp-frame-edge), var(--gp-frame-shadow);
}
#detail .study-reveal-layer { filter: var(--gp-pencil-finish); }
#detail .study-brush-inset {
  border: 1px solid #888477;
  box-shadow: var(--gp-frame-shadow);
}
#space .gp-label { background: var(--gp-mat); }
.gp-splash > .gp-splash__enter { border-color: var(--gp-plaque-edge); background: var(--gp-plaque-paper); box-shadow: var(--gp-plaque-shadow); }
#viewing-room :is(.viewer-pill, .room-thumbnail, .viewer-popover, .exhibition-tabs), #detail .study-toolbar .study-focus, #detail .study-zoom button { border-color: var(--gp-plaque-edge); }
#viewing-room .viewer-popover { box-shadow: var(--gp-frame-shadow); }
#detail .study-section + .study-section, #detail .detail-info, .site-footer { border-color: var(--gp-rule); }
#space :is(.hung-art, .wall-artwork-action):focus-visible, #detail :is(button, a, input):focus-visible {
  outline: 3px solid var(--gp-focus);
  outline-offset: 8px;
}
