#gallery {
  --mg-blue: #1648ed;
  --mg-ink: #111e38;
  --mg-muted: #536078;
  width: 100%;
  color: var(--mg-ink);
}
#gallery *, #gallery *::before, #gallery *::after { box-sizing: border-box; }
#gallery .mg-layout {
  display: grid;
  grid-template-columns: minmax(220px, .78fr) minmax(0, 1.6fr);
  align-items: start;
  gap: clamp(28px, 5vw, 82px);
}
#gallery .mg-choices { border-top: 1px solid var(--mg-ink); }
#gallery .mg-choice {
  width: 100%;
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr) 1.25rem;
  align-items: baseline;
  gap: .35rem;
  margin: 0;
  padding: clamp(20px, 2.4vw, 38px) 0;
  color: var(--mg-ink);
  background: none;
  border: 0;
  border-bottom: 1px solid #d0d6e0;
  border-radius: 0;
  box-shadow: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
#gallery .mg-choice:focus-visible, #gallery .mg-full:focus-visible { outline: 2px solid var(--mg-blue); outline-offset: 4px; }
#gallery .mg-no, #gallery .mg-frame { font: 600 11px/1.25 Consolas, ui-monospace, monospace; letter-spacing: .065em; }
#gallery .mg-no { color: var(--mg-muted); }
#gallery .mg-choice-name {
  display: block;
  font-size: clamp(22px, 2vw, 36px);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.25;
}
#gallery .mg-choice-note {
  display: block;
  margin-top: .55rem;
  max-width: 24em;
  color: var(--mg-muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0;
}
#gallery .mg-pointer { opacity: 0; font-size: 1.25rem; line-height: 1; }
#gallery .mg-choice[aria-pressed="true"] .mg-pointer { opacity: 1; }
#gallery .mg-choice[aria-pressed="true"] :is(.mg-choice-name, .mg-no, .mg-pointer),
#gallery .mg-choice:hover .mg-choice-name { color: var(--mg-blue); }
#gallery .mg-figure { min-width: 0; margin: 0; }
#gallery .mg-matte {
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 1.62;
  background: #e9eeff;
}
#gallery .mg-matte::before, #gallery .mg-matte::after {
  position: absolute;
  width: 12px;
  height: 12px;
  content: "";
  border: solid #8195ce;
  pointer-events: none;
}
#gallery .mg-matte::before { top: 15px; left: 15px; border-width: 1px 0 0 1px; }
#gallery .mg-matte::after { bottom: 15px; right: 15px; border-width: 0 1px 1px 0; }
#gallery .mg-crop {
  position: relative;
  width: 60%;
  overflow: hidden;
  border-radius: 4.75% / 7.8%;
  background: white;
  box-shadow: 0 10px 32px rgb(35 61 127 / 9%);
}
#gallery .mg-crop[hidden] { display: none; }
#gallery .mg-crop img { position: absolute; display: block; height: auto; max-width: none; margin: 0; border: 0; }
/* Percentages expose just the selector at its native aspect ratio in each unmodified capture. */
#gallery .mg-crop-avd { aspect-ratio: 484 / 289; }
#gallery .mg-crop-avd img { width: 442.769%; left: -5.785%; top: -62.976%; }
#gallery .mg-crop-ld { aspect-ratio: 467 / 391; border-radius: 4.9% / 5.92%; }
#gallery .mg-crop-ld img { width: 457.602%; left: -5.353%; top: -45.780%; }
#gallery .mg-caption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 16px;
  padding: 13px 0 0;
  color: var(--mg-muted);
  font-size: 12px;
  line-height: 1.5;
}
#gallery .mg-caption-text, #gallery .mg-full { display: inline-flex; align-items: center; gap: .6em; }
#gallery .mg-frame { color: var(--mg-blue); }
#gallery .mg-caption-name { white-space: nowrap; }
#gallery .mg-full {
  padding: 4px 0;
  color: var(--mg-ink);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
#gallery .mg-full svg { width: 12px; height: 12px; }
#gallery .mg-full:hover { color: var(--mg-blue); text-decoration: underline; text-underline-offset: .2em; }
@media (max-width: 780px) {
  #gallery .mg-layout { grid-template-columns: 1fr; gap: 24px; }
  #gallery .mg-choice { padding: 15px 0; grid-template-columns: 1.75rem minmax(0, 1fr) 1.25rem; }
  #gallery .mg-choice-name { font-size: 23px; }
  #gallery .mg-choice-note { margin-top: 4px; max-width: none; }
  #gallery .mg-matte { aspect-ratio: 1.36; }
  #gallery .mg-crop { width: 74%; }
}
@media (max-width: 440px) {
  #gallery .mg-matte { aspect-ratio: 1.2; }
  #gallery .mg-crop { width: 84%; }
  #gallery .mg-caption-text { gap: .35em; }
  #gallery .mg-caption { gap: 4px 6px; }
}
