.asset-display { flex: 1 0 auto; display: block; justify-content: center; align-items: center; } .asset-image, .asset-video { max-width: 100%; max-height: 100%; margin : 0; } .asset-video { margin: 16px; padding: 6px; border: 1px solid #d0d0d0; }