#gallery-memory { container-type: inline-size; border-top: 1px solid #3a5367; padding-inline: 14px; color: #e6f2f6; }
#gallery-memory summary { width: fit-content; cursor: pointer; padding: 11px 0; color: #a9eadb; font: 600 12px/1.35 var(--sans); }
#gallery-memory .gm-inspector { display: grid; gap: 13px; padding: 4px 0 14px; align-items: start; }
#gallery-memory .gm-choices { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 5px; }
#gallery-memory .gm-choices button { display: grid; min-width: 0; padding: 2px; gap: 3px; border-radius: 4px; border: 1px solid #53687b; background: #203345; color: #dbe7ee; }
#gallery-memory .gm-choices button[aria-pressed='true'] { border-color: #a3edda; box-shadow: inset 0 0 0 1px #a3edda; color: #acf1de; }
#gallery-memory .gm-choices button:focus-visible, #gallery-memory summary:focus-visible { outline: 2px solid white; outline-offset: 2px; }
#gallery-memory .gm-choices button span { font: 600 13px/1.35 var(--mono); }
#gallery-memory img { width: 100%; height: auto; display: block; border-radius: 2px; }
#gallery-memory .gm-viewer { margin: 0; min-width: 0; }
#gallery-memory .gm-frame { position: relative; }
#gallery-memory .gm-frame i { position: absolute; box-sizing: border-box; border: 2px solid #ffda79; box-shadow: 0 0 0 1px #253546; }
#gallery-memory figcaption { display: grid; gap: 3px; padding-top: 6px; color: #c3d6e0; font: 14px/1.45 var(--sans); }
#gallery-memory figcaption strong { color: #e7f7f7; font: 600 14px/1.5 var(--mono); }
@container (min-width: 520px) {
  #gallery-memory .gm-inspector { grid-template-columns: .95fr 1.05fr; }
  #gallery-memory .gm-choices { grid-template-columns: repeat(4,minmax(0,1fr)); }
}
