/* Codex presentation-only patch. Do not apply image-card cropping to videos. */
#vsGen {
  min-width: 0;
  max-width: 100%;
}

#vsGen .is-gen-wrap {
  display: block;
  width: 100%;
  max-width: 100%;
}

#vsGenGrid {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0;
  gap: 10px;
}

#vsGenGrid .is-gen-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 1 auto;
  width: fit-content;
  max-width: 100%;
  min-width: 0;
  aspect-ratio: auto !important;
  background: #111;
}

#vsGenGrid .is-gen-cell video {
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: 100%;
  max-height: 65vh;
  max-height: min(65vh, 680px);
  object-fit: contain;
  object-position: center;
}

#vsGenTip {
  max-width: 100%;
  overflow-wrap: anywhere;
}

/* Keep the data anchors for existing rendering/export code, remove the cards
   from the visible layout and accessibility tree. */
#vsHookCard[hidden],
#vsShotBreakdownCard[hidden] {
  display: none !important;
}
