/* Scoped to the new, closed-by-default gallery. No existing site styles change. */
#st-garage-gallery {
  box-sizing: border-box;
  width: min(520px, calc(100% - 28px));
  max-height: calc(100vh - 28px);
  max-height: calc(100dvh - 28px);
  margin: auto;
  padding: 18px;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--gold, #efc472);
  border-radius: 16px;
  background: var(--bg, #03141d);
  color: var(--cream, #faf7f0);
  font-family: var(--body, Arial, Helvetica, sans-serif);
}
#st-garage-gallery:not([open]) { display: none; }
#st-garage-gallery::backdrop { background: rgba(0, 8, 15, .84); }
#st-garage-gallery .st-garage-gallery-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
#st-garage-gallery h2 {
  margin: 0;
  color: var(--gold, #efc472);
  font: 400 25px/1.15 var(--display, Georgia, serif);
}
#st-garage-gallery button { color: inherit; font: inherit; cursor: pointer; }
#st-garage-gallery .st-garage-gallery-close {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line, #efc472);
  border-radius: 50%;
  background: transparent;
  color: var(--gold, #efc472);
  font-size: 26px;
  line-height: 1;
}
#st-garage-gallery-note {
  margin: 8px 0 14px;
  color: var(--muted, #e0e2e3);
  font-size: 12px;
  line-height: 1.5;
}
#st-garage-gallery .st-garage-gallery-main { margin: 0 0 14px; }
#st-garage-gallery-photo {
  display: block;
  width: 100%;
  height: 230px;
  height: min(230px, 32dvh);
  max-width: 100%;
  object-fit: contain;
  object-position: center;
}
#st-garage-gallery-caption { margin: 8px 0 0; font-size: 13px; text-align: center; }
#st-garage-gallery .st-garage-gallery-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
#st-garage-gallery [data-st-garage-photo] {
  min-width: 0;
  min-height: 44px;
  padding: 6px 4px;
  border: 1px solid var(--line, #efc472);
  border-radius: 8px;
  background: transparent;
}
#st-garage-gallery [data-st-garage-photo][aria-pressed="true"] {
  border-color: var(--gold, #efc472);
  box-shadow: inset 0 0 0 1px var(--gold, #efc472);
}
#st-garage-gallery .st-garage-gallery-choices img {
  display: block;
  width: 100%;
  height: 54px;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
}
#st-garage-gallery .st-garage-gallery-choices span {
  display: block;
  margin-top: 5px;
  font-size: 10px;
  line-height: 1.3;
}
