.pcg {
  --gallery-gold: #c8a97e;
  --gallery-muted: #b8afa4;
  display: grid;
  grid-template-columns: minmax(210px, .93fr) minmax(290px, 1.07fr);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: center;
  margin: clamp(2rem, 5vw, 4rem) auto 0;
  max-width: 990px;
  scroll-margin-top: 20px;
}
.pcg *, .pcg *::before, .pcg *::after { box-sizing: border-box; }
.pcg-menu, .pcg-stage, .pcg-panel { min-width: 0; }
.pcg-picker { display: grid; border-top: 1px solid var(--line, #473c31); }
.pcg-tab {
  position: relative;
  display: grid;
  gap: 3px;
  padding: 17px 20px;
  color: var(--cream, #eee7dc);
  text-decoration: none;
  border-bottom: 1px solid var(--line, #473c31);
}
.pcg-tab-name { font-family: var(--serif, Georgia, serif); font-size: clamp(24px, 2.2vw, 34px); line-height: 1.12; }
.pcg-tab-copy, .pcg-caption span { color: var(--gallery-muted); font: 400 14px/1.55 var(--sans, Arial, sans-serif); }
.pcg-tab:focus-visible, .pcg-enlarge:focus-visible { outline: 2px solid var(--gallery-gold); outline-offset: 3px; z-index: 1; }
.pcg-tab:hover, .pcg-tab[aria-selected="true"] { background: rgba(200, 169, 126, .065); }
.pcg-tab[aria-selected="true"]::before { content: ""; position: absolute; inset: 16px auto 16px 0; width: 2px; background: var(--gallery-gold); }
.pcg-tab[aria-selected="true"] .pcg-tab-name { color: #e2c596; }
.pcg .pcg-note { margin: 15px 0 0; color: var(--gallery-muted); font: 400 12px/1.5 var(--sans, Arial, sans-serif); }
.pcg-stage { position: relative; }
.pcg-panel { margin: 0; text-align: center; }
.pcg-panel + .pcg-panel { margin-top: 3rem; }
.pcg[data-interactive] .pcg-panel { margin: 0; }
.pcg-panel[hidden] { display: none !important; }
.pcg-caption { display: grid; gap: 3px; max-width: 34em; margin: 0 auto 16px; text-align: left; }
.pcg-caption strong { font-family: var(--serif, Georgia, serif); font-weight: 500; color: var(--cream, #eee7dc); font-size: 27px; line-height: 1.2; }
.pcg[data-interactive] .pcg-caption { display: none; }
.pcg-enlarge { display: inline-flex; max-width: 100%; flex-direction: column; align-items: center; gap: 8px; border-radius: 30px; text-decoration: none; color: var(--gallery-muted); }
.pcg-device {
  display: block;
  width: clamp(300px, 26vw, 363px);
  max-width: 100%;
  padding: 4px;
  overflow: hidden;
  border-radius: 37px;
  border: 1px solid #796c5f;
  background: #24211e;
  box-shadow: 0 20px 44px rgba(0, 0, 0, .42);
}
.pcg-device img { display: block; width: 100%; height: auto; border-radius: 32px; background: #080808; }
.pcg-image-link { font: 400 12px/1.5 var(--sans, Arial, sans-serif); text-underline-offset: 4px; }
.pcg-enlarge:hover .pcg-image-link { color: var(--gallery-gold); text-decoration: underline; }
.pcg-image-link span { margin-left: 3px; }
.pcg:not([data-interactive]) { align-items: start; }
@media (max-width: 750px) {
  .pcg { display: flex; flex-direction: column; align-items: stretch; gap: 14px; }
  .pcg-menu { display: contents; }
  .pcg-picker { order: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 5px; border: 0; }
  .pcg-tab { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: 7px 12px; border: 1px solid var(--line, #473c31); border-radius: 20px; }
  .pcg-tab-name { font: 500 13px/1.25 var(--sans, Arial, sans-serif); }
  .pcg-tab[aria-selected="true"] { border-color: var(--gallery-gold); background: rgba(200, 169, 126, .11); }
  .pcg-tab[aria-selected="true"]::before, .pcg-tab-copy { display: none; }
  .pcg-stage { order: 1; }
  .pcg .pcg-note { order: 2; margin: 0; text-align: center; }
  .pcg-caption { min-height: 3.1em; margin: 0 1px 12px; }
  .pcg[data-interactive] .pcg-caption { display: grid; }
  .pcg[data-interactive] .pcg-caption strong { position: absolute; width: 1px; height: 1px; clip-path: inset(100%); overflow: hidden; }
  .pcg-device { width: min(100%, 344px); }
  .pcg-enlarge { width: min(100%, 344px); }
}
